diff --git a/modules/base/system.nix b/modules/base/system.nix index 7c5dea3..68fc670 100644 --- a/modules/base/system.nix +++ b/modules/base/system.nix @@ -1,4 +1,4 @@ -{ nix-index-database, lib, pkgs, ... }: { +{ config, nix-index-database, lib, pkgs, ... }: { imports = [ nix-index-database.nixosModules.nix-index ]; @@ -17,6 +17,12 @@ }; nixpkgs.config.allowUnfree = true; + system.autoUpgrade = { + enable = true; + flake = "${config.users.users.caspervk.home}/nixos"; + flags = [ "--update-input" "nixpkgs" ]; + }; + environment.systemPackages = with pkgs; [ bat clang