Compare commits

..

4 Commits

View File

@@ -1,25 +1,18 @@
let
flakePath = "/home/h/nix";
in
{
inputs,
outputs,
dotsPath,
config,
...
}:
let
inherit (inputs.nixpkgs) lib;
in
{
imports = [
inputs.home-manager.nixosModules.default
];
options.nixpkgs.allowedUnfree = lib.mkOption {
type = lib.types.listOf lib.types.str;
default = [ ];
};
config = {
system.stateVersion = "25.05";
nix.settings.experimental-features = [
@@ -27,8 +20,7 @@ in
"flakes"
];
nixpkgs.config.allowUnfreePredicate =
pkg: builtins.elem (lib.getName pkg) config.nixpkgs.allowedUnfree;
nixpkgs.config.allowUnfree = true;
home-manager = {
useGlobalPkgs = true;
@@ -52,6 +44,7 @@ in
system.autoUpgrade = {
enable = true;
flake = flakePath;
flags = [
"--recreate-lock-file"
"--commit-lock-file"
@@ -62,5 +55,4 @@ in
randomizedDelaySec = "45min";
allowReboot = false;
};
};
}