Allow easy patching of nixpkgs
This commit is contained in:
parent
90a3549237
commit
c5e7d8b2fe
13
flake.lock
generated
13
flake.lock
generated
@ -212,6 +212,18 @@
|
|||||||
"type": "indirect"
|
"type": "indirect"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixpkgs-patch-howdy": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"narHash": "sha256-qtpbPMo28li7Lx6W/4QyClCFlIQP8ssxX0dMGGBYAdo=",
|
||||||
|
"type": "file",
|
||||||
|
"url": "https://github.com/NixOS/nixpkgs/pull/216245.diff"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"type": "file",
|
||||||
|
"url": "https://github.com/NixOS/nixpkgs/pull/216245.diff"
|
||||||
|
}
|
||||||
|
},
|
||||||
"radio": {
|
"radio": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-utils": [
|
"flake-utils": [
|
||||||
@ -262,6 +274,7 @@
|
|||||||
"flake-utils": "flake-utils",
|
"flake-utils": "flake-utils",
|
||||||
"nix-index-database": "nix-index-database",
|
"nix-index-database": "nix-index-database",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
|
"nixpkgs-patch-howdy": "nixpkgs-patch-howdy",
|
||||||
"radio": "radio",
|
"radio": "radio",
|
||||||
"radio-web": "radio-web",
|
"radio-web": "radio-web",
|
||||||
"simple-nixos-mailserver": "simple-nixos-mailserver"
|
"simple-nixos-mailserver": "simple-nixos-mailserver"
|
||||||
|
15
flake.nix
15
flake.nix
@ -1,6 +1,8 @@
|
|||||||
{
|
{
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/master";
|
nixpkgs.url = "github:NixOS/nixpkgs/master";
|
||||||
|
nixpkgs-patch-howdy.url = "https://github.com/NixOS/nixpkgs/pull/216245.diff";
|
||||||
|
nixpkgs-patch-howdy.flake = false;
|
||||||
|
|
||||||
flake-utils.url = "github:numtide/flake-utils";
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
|
|
||||||
@ -64,7 +66,18 @@
|
|||||||
mkSystem = system: nixpkgs: path:
|
mkSystem = system: nixpkgs: path:
|
||||||
let
|
let
|
||||||
allModules = modules system;
|
allModules = modules system;
|
||||||
in nixpkgs.lib.nixosSystem {
|
|
||||||
|
# allow patching nixpkgs, remove this hack once this is solved: https://github.com/NixOS/nix/issues/3920
|
||||||
|
patchedNixpkgsSrc = nixpkgs.legacyPackages.${system}.applyPatches {
|
||||||
|
name = "nixpkgs-patched";
|
||||||
|
src = nixpkgs;
|
||||||
|
patches = [
|
||||||
|
inputs.nixpkgs-patch-howdy
|
||||||
|
];
|
||||||
|
};
|
||||||
|
patchedNixpkgs = nixpkgs.lib.fix (self: (import "${patchedNixpkgsSrc}/flake.nix").outputs { self=nixpkgs; });
|
||||||
|
|
||||||
|
in patchedNixpkgs.lib.nixosSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
modules = allModules ++ [path];
|
modules = allModules ++ [path];
|
||||||
|
|
||||||
|
@ -7,9 +7,13 @@
|
|||||||
|
|
||||||
networking.hostName = "ray";
|
networking.hostName = "ray";
|
||||||
|
|
||||||
|
# for luks onlock over tor
|
||||||
services.tor.enable = true;
|
services.tor.enable = true;
|
||||||
services.tor.client.enable = true;
|
services.tor.client.enable = true;
|
||||||
|
|
||||||
|
services.howdy.enable = true;
|
||||||
|
# services.linux-enable-ir-emitter.enable = true;
|
||||||
|
|
||||||
hardware.openrazer.enable = true;
|
hardware.openrazer.enable = true;
|
||||||
hardware.openrazer.users = [ "googlebot" ];
|
hardware.openrazer.users = [ "googlebot" ];
|
||||||
hardware.openrazer.devicesOffOnScreensaver = false;
|
hardware.openrazer.devicesOffOnScreensaver = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user