mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
inline auto-update
This commit is contained in:
parent
79f6f28dd3
commit
5cc282d784
2 changed files with 11 additions and 15 deletions
|
@ -1,11 +0,0 @@
|
||||||
{ ... }:
|
|
||||||
{
|
|
||||||
system.autoUpgrade = {
|
|
||||||
enable = true;
|
|
||||||
allowReboot = true;
|
|
||||||
};
|
|
||||||
nix.gc = {
|
|
||||||
automatic = true;
|
|
||||||
options = "--delete-older-than 30d";
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -10,10 +10,17 @@ in
|
||||||
|
|
||||||
config = mkMerge [
|
config = mkMerge [
|
||||||
|
|
||||||
(mkIf (cfg == "server") (mkMerge [
|
(mkIf (cfg == "server") {
|
||||||
{ services.openssh.enable = true; }
|
services.openssh.enable = true;
|
||||||
(import ./auto-update.nix { })
|
system.autoUpgrade = {
|
||||||
]))
|
enable = true;
|
||||||
|
allowReboot = true;
|
||||||
|
};
|
||||||
|
nix.gc = {
|
||||||
|
automatic = true;
|
||||||
|
options = "--delete-older-than 30d";
|
||||||
|
};
|
||||||
|
})
|
||||||
|
|
||||||
(mkIf (cfg == "desktop-sway") (import ./sway.nix { inherit pkgs; }))
|
(mkIf (cfg == "desktop-sway") (import ./sway.nix { inherit pkgs; }))
|
||||||
(mkIf (cfg == "desktop-gnome") (import ./gnome.nix { inherit pkgs; }))
|
(mkIf (cfg == "desktop-gnome") (import ./gnome.nix { inherit pkgs; }))
|
||||||
|
|
Loading…
Reference in a new issue