add agenix and nix-easyroam

This commit is contained in:
lucy 2026-10-04 20:53:08 +02:00
commit 8dfa6e7aea
5 changed files with 94 additions and 8 deletions

View file

@ -6,6 +6,9 @@
}: }:
{ {
age.enable = true;
age.identityPaths = [ "/var/lib/misc/key.age" ];
hardware.graphics.enable = true; hardware.graphics.enable = true;
services.xserver.videoDrivers = lib.mkIf (config.networking.hostName == "nerv") [ "nvidia" ]; services.xserver.videoDrivers = lib.mkIf (config.networking.hostName == "nerv") [ "nvidia" ];
hardware.nvidia = lib.mkIf (config.networking.hostName == "nerv") { hardware.nvidia = lib.mkIf (config.networking.hostName == "nerv") {

80
flake.lock generated
View file

@ -1,5 +1,23 @@
{ {
"nodes": { "nodes": {
"agenix": {
"inputs": {
"nixpkgs": "nixpkgs"
},
"locked": {
"lastModified": 1790734419,
"narHash": "sha256-n7wew722m1OTBT9DOIMxNX/NF4zfsSUABAO5eW3wikE=",
"owner": "ryantm",
"repo": "agenix",
"rev": "3daa710894355fa2fad8243380af373a2b4046ef",
"type": "github"
},
"original": {
"owner": "ryantm",
"repo": "agenix",
"type": "github"
}
},
"flake-parts": { "flake-parts": {
"inputs": { "inputs": {
"nixpkgs-lib": "nixpkgs-lib" "nixpkgs-lib": "nixpkgs-lib"
@ -106,6 +124,24 @@
"type": "github" "type": "github"
} }
}, },
"nix-easyroam": {
"inputs": {
"nixpkgs": "nixpkgs_2"
},
"locked": {
"lastModified": 1784038797,
"narHash": "sha256-td6Ko5RV/TFw7ALmYP9YUVXMS1b7hW7vDqabrGXyzUo=",
"owner": "0x5a4",
"repo": "nix-easyroam",
"rev": "a6c72d25edc3b210bf6b2b46395c88be7efac147",
"type": "github"
},
"original": {
"owner": "0x5a4",
"repo": "nix-easyroam",
"type": "github"
}
},
"nix-maid": { "nix-maid": {
"locked": { "locked": {
"lastModified": 1790770868, "lastModified": 1790770868,
@ -148,16 +184,16 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1790689126, "lastModified": 1790340521,
"narHash": "sha256-ilerN1WLSvF+HMjziC/Wv99J5y02maDH+6hZPwsORKg=", "narHash": "sha256-cRrWlIjVRJ6BHDr9caUdXsZ3owzWIKYHpNmGPHBInIU=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "b4fd65b198c599cbe814fcb9f42d25d021595ec9", "rev": "f5c082a40f7571c266e74e80ae2e68aadd8a9fc7",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "NixOS", "owner": "NixOS",
"ref": "nixos-unstable", "ref": "nixos-26.05",
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
} }
@ -209,12 +245,46 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_2": {
"locked": {
"lastModified": 1735268880,
"narHash": "sha256-7QEFnKkzD13SPxs+UFR5bUFN2fRw+GlL0am72ZjNre4=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "7cc0bff31a3a705d3ac4fdceb030a17239412210",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_3": {
"locked": {
"lastModified": 1790689126,
"narHash": "sha256-ilerN1WLSvF+HMjziC/Wv99J5y02maDH+6hZPwsORKg=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "b4fd65b198c599cbe814fcb9f42d25d021595ec9",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": { "root": {
"inputs": { "inputs": {
"agenix": "agenix",
"mangowm": "mangowm", "mangowm": "mangowm",
"nix-easyroam": "nix-easyroam",
"nix-maid": "nix-maid", "nix-maid": "nix-maid",
"nixcord": "nixcord", "nixcord": "nixcord",
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs_3"
} }
}, },
"scenefx": { "scenefx": {

View file

@ -3,13 +3,15 @@
inputs = { inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
agenix.url = "github:ryantm/agenix";
nix-easyroam.url = "github:0x5a4/nix-easyroam";
nix-maid.url = "git+https://codeberg.org/viperML/nix-maid";
nixcord = { nixcord = {
url = "github:4evy/nixcord"; url = "github:4evy/nixcord";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
nix-maid = {
url = "git+https://codeberg.org/viperML/nix-maid";
};
mangowm = { mangowm = {
url = "github:mangowm/mango"; url = "github:mangowm/mango";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
@ -23,12 +25,16 @@
nixcord, nixcord,
nix-maid, nix-maid,
mangowm, mangowm,
agenix,
nix-easyroam,
}: }:
let let
mods = [ mods = [
nix-maid.nixosModules.default nix-maid.nixosModules.default
nixcord.nixosModules.nixcord nixcord.nixosModules.nixcord
mangowm.nixosModules.mango mangowm.nixosModules.mango
agenix.nixosModules.default
nix-easyroam.nixosModules.nix-easyroam
./configuration.nix ./configuration.nix
./maid.nix ./maid.nix
]; ];

7
secrets/agenix-rules.nix Normal file
View file

@ -0,0 +1,7 @@
{ config }:
let
main = "age17hvac3hn79mwttel9snw87a20x4vguh7y7ys43xmvlhrl3mqs3wswuzlt6";
in
{
"easyroam.age".publicKeys = [ main ];
}

BIN
secrets/easyroam.age Normal file

Binary file not shown.