Make syncthing optional
This commit is contained in:
@ -76,6 +76,7 @@
|
|||||||
username = "abby";
|
username = "abby";
|
||||||
inherit inputs;
|
inherit inputs;
|
||||||
system = system;
|
system = system;
|
||||||
|
use_syncthing = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
@ -99,6 +100,7 @@
|
|||||||
inherit system;
|
inherit system;
|
||||||
username = "abby";
|
username = "abby";
|
||||||
inherit inputs;
|
inherit inputs;
|
||||||
|
use_syncthing = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
homeConfigurations."pager@nicrosil" =
|
homeConfigurations."pager@nicrosil" =
|
||||||
@ -122,6 +124,7 @@
|
|||||||
inherit system;
|
inherit system;
|
||||||
username = "pager";
|
username = "pager";
|
||||||
inherit inputs;
|
inherit inputs;
|
||||||
|
use_syncthing = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
5
home.nix
5
home.nix
@ -1,4 +1,4 @@
|
|||||||
{ config, pkgs, inputs, system ? "x86_64-linux", username ? "abby", ... }:
|
{ config, pkgs, inputs, system ? "x86_64-linux", username ? "abby", use_syncthing ? false , ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
# Home Manager needs a bit of information about you and the
|
# Home Manager needs a bit of information about you and the
|
||||||
@ -30,6 +30,7 @@
|
|||||||
mpv
|
mpv
|
||||||
vlc
|
vlc
|
||||||
moonlight-qt
|
moonlight-qt
|
||||||
|
starship
|
||||||
#inputs.ragenix.packges.${system}.default
|
#inputs.ragenix.packges.${system}.default
|
||||||
|
|
||||||
# htop
|
# htop
|
||||||
@ -130,5 +131,5 @@ dashboard:
|
|||||||
xdg.configFile."kitty/kitty.conf".source = ./xdg/kitty/kitty.conf;
|
xdg.configFile."kitty/kitty.conf".source = ./xdg/kitty/kitty.conf;
|
||||||
home.file.".zshrc".source = xdg/zshrc;
|
home.file.".zshrc".source = xdg/zshrc;
|
||||||
|
|
||||||
services.syncthing = import ./syncthing.nix { config = config; };
|
services.syncthing = pkgs.lib.optionals (use_syncthing) import ./syncthing.nix { config = config; };
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user