mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 18:41:34 +01:00
Enable nix-helper
This commit is contained in:
parent
e35c1942a3
commit
00d6f9941c
6 changed files with 40 additions and 0 deletions
20
flake.lock
generated
20
flake.lock
generated
|
|
@ -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": [
|
||||||
|
|
|
||||||
|
|
@ -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";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -15,5 +15,6 @@
|
||||||
./boot-loader.nix
|
./boot-loader.nix
|
||||||
./printing.nix
|
./printing.nix
|
||||||
./syncthing.nix
|
./syncthing.nix
|
||||||
|
./nix-helper.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
12
modules/system/nix-helper.nix
Normal file
12
modules/system/nix-helper.nix
Normal 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;
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue