Enable nix-helper

This commit is contained in:
SebastianStork 2024-04-10 20:36:49 +02:00
parent e35c1942a3
commit 00d6f9941c
6 changed files with 40 additions and 0 deletions

20
flake.lock generated
View file

@ -163,6 +163,26 @@
"type": "github" "type": "github"
} }
}, },
"nh": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1712645404,
"narHash": "sha256-uEVd15WsX+Wti9PXW724puFcsFO72VTiJyBwW2WXT9M=",
"owner": "viperML",
"repo": "nh",
"rev": "fe4a96a0b0b0662dba7c186b4a1746c70bbcad03",
"type": "github"
},
"original": {
"owner": "viperML",
"repo": "nh",
"type": "github"
}
},
"nix-index-database": { "nix-index-database": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [

View file

@ -22,6 +22,11 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
nh = {
url = "github:viperML/nh";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprland.url = "github:hyprwm/Hyprland"; hyprland.url = "github:hyprwm/Hyprland";
}; };

View file

@ -25,6 +25,7 @@
sops.enable = true; sops.enable = true;
printing.enable = true; printing.enable = true;
syncthing.enable = true; syncthing.enable = true;
nix-helper.enable = true;
}; };
boot.kernelPackages = pkgs.linuxPackages_latest; boot.kernelPackages = pkgs.linuxPackages_latest;

View file

@ -29,6 +29,7 @@
sops.enable = true; sops.enable = true;
printing.enable = true; printing.enable = true;
syncthing.enable = true; syncthing.enable = true;
nix-helper.enable = true;
}; };
boot.kernelPackages = pkgs.linuxPackages_latest; boot.kernelPackages = pkgs.linuxPackages_latest;

View file

@ -15,5 +15,6 @@
./boot-loader.nix ./boot-loader.nix
./printing.nix ./printing.nix
./syncthing.nix ./syncthing.nix
./nix-helper.nix
]; ];
} }

View file

@ -0,0 +1,12 @@
{
inputs,
config,
lib,
...
}: {
imports = [inputs.nh.nixosModules.default];
options.myConfig.nix-helper.enable = lib.mkEnableOption "";
config.nh.enable = config.myConfig.nix-helper.enable;
}