Skip to content

Commit

Permalink
fix: from services to programs
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwjackson committed May 20, 2024
1 parent a37cd00 commit 2d85b2d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/nixos/tmesh/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ inputs: {
jsonConfig = builtins.toJSON cfg.settings;
jsonConfigFile = pkgs.writeText "config.json" jsonConfig;
in {
options.services.${pname} = {
options.programs.${pname} = {
enable = lib.mkEnableOption "${pname}";

settings = lib.mkOption {
Expand Down Expand Up @@ -42,10 +42,12 @@ in {

config = lib.mkIf cfg.enable {
environment.etc."${pname}/config.json".source = jsonConfigFile;

environment.etc."${pname}/tmesh-server.tmux.conf" = {
text = cfg.tmeshServerTmuxConfig;
mode = "0644";
};

environment.etc."${pname}/tmesh.tmux.conf" = {
text = cfg.tmeshTmuxConfig;
mode = "0644";
Expand Down

0 comments on commit 2d85b2d

Please sign in to comment.