diff options
| author | Seth Flynn <[email protected]> | 2025-02-11 22:47:30 -0500 |
|---|---|---|
| committer | Seth Flynn <[email protected]> | 2025-02-11 22:49:44 -0500 |
| commit | 7ab909bf538838b889d0183451c71e59d2ce8672 (patch) | |
| tree | 12bb4a9819d55f0c03a0c9e60aaa9bc241480d8a /modules | |
| parent | d8acfe2a1165c98e2f864bc7f4db24957832277e (diff) | |
nixos/server: `system.autoUpgrade` -> `comin`
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/nixos/profiles/server.nix | 3 | ||||
| -rw-r--r-- | modules/nixos/traits/auto-upgrade.nix | 25 | ||||
| -rw-r--r-- | modules/nixos/traits/default.nix | 1 |
3 files changed, 2 insertions, 27 deletions
diff --git a/modules/nixos/profiles/server.nix b/modules/nixos/profiles/server.nix index 86c4b13..373dc5d 100644 --- a/modules/nixos/profiles/server.nix +++ b/modules/nixos/profiles/server.nix @@ -43,8 +43,9 @@ in ]; }; + services.comin.enable = true; + traits = { - autoUpgrade.enable = true; secrets.enable = true; tailscale = { enable = true; diff --git a/modules/nixos/traits/auto-upgrade.nix b/modules/nixos/traits/auto-upgrade.nix deleted file mode 100644 index 1e65445..0000000 --- a/modules/nixos/traits/auto-upgrade.nix +++ /dev/null @@ -1,25 +0,0 @@ -{ config, lib, ... }: -let - cfg = config.traits.autoUpgrade; -in -{ - options.traits.autoUpgrade = { - enable = lib.mkEnableOption "automatic updates"; - }; - - config = lib.mkIf cfg.enable { - system.autoUpgrade = { - enable = true; - - /* - a workflow updates the flake every 24h at ~0:00UTC/8:00EST; - most devices of mine will be in EST currently. this could probably be - "01:00" or "daily" but i think that's a bit of a risk if i ever change/ - dont set the time zone for a device and forget about this lol - */ - dates = lib.mkDefault "02:00"; - flake = "github:getchoo/flake#${config.networking.hostName}"; - flags = [ "--refresh" ]; - }; - }; -} diff --git a/modules/nixos/traits/default.nix b/modules/nixos/traits/default.nix index 5036526..aafa445 100644 --- a/modules/nixos/traits/default.nix +++ b/modules/nixos/traits/default.nix @@ -1,7 +1,6 @@ { imports = [ ./arm-builder.nix - ./auto-upgrade.nix ./containers.nix ./determinate.nix ./home-manager.nix |
