diff --git a/nixosModules/automatic/default.nix b/nixosModules/automatic/default.nix index 05d82c7..f6b9a74 100644 --- a/nixosModules/automatic/default.nix +++ b/nixosModules/automatic/default.nix @@ -1,4 +1,4 @@ -{ config, pkgs, lib, ... }: +{ config, pkgs, lib, inputs, ... }: { options.system = { @@ -9,7 +9,7 @@ "Enable if you are running a non-EFI system"; users.bigWheels = lib.mkOption { default = []; }; }; - + config = lib.mkMerge [ (lib.mkIf config.system.isNonEFI { boot.loader.grub.enable = false; @@ -29,15 +29,26 @@ # Packages & Default Packages nixpkgs.config.allowUnfree = true; + nix = { + registry.nixpkgs.flake = inputs.nixpkgs; + gc = { automatic = true; options = "--delete-older-than 5d"; }; + channel.enable = false; + settings = { + auto-optimise-store = true; + keep-going = true; + use-xdg-base-directories = true; + experimental-features = [ + "flakes" + "nix-command" + ]; + }; + }; environment.systemPackages = with pkgs; [ git neovim xdg-user-dirs ] ++ config.system.extraPkgs; - # XDG Compliance - nix.settings.use-xdg-base-directories = true; - users = { users = builtins.listToAttrs (map ( user: {