use agenix

This commit is contained in:
andromeda
2025-12-30 17:45:01 +01:00
parent e39747ae2e
commit 0468cf2621
7 changed files with 31 additions and 5 deletions

View File

@@ -1,8 +1,13 @@
{
config,
lib,
machine,
...
}: {
age.secrets = {
secret0.file = ../../secrets/secret0.age;
secret1.file = ../../secrets/secret1.age;
};
boot.loader = {
efi.canTouchEfiVariables = true;
systemd-boot.enable = true;
@@ -16,6 +21,7 @@
"/var/lib/nixos"
"/var/lib/systemd/coredump"
"/etc/NetworkManager/system-connections"
"/etc/ssh"
];
files = [
"/etc/machine-id"
@@ -82,6 +88,7 @@
ly.enable = true;
};
libinput.enable = true;
openssh.enable = true;
printing.enable = true;
};
system.stateVersion = "26.05";
@@ -89,7 +96,7 @@
users.users."andromeda" = {
isNormalUser = true;
description = "andromeda";
initialPassword = "password";
hashedPasswordFile = builtins.toString config.age.secrets.secret0.path;
extraGroups = [
"networkmanager"
"wheel"
@@ -98,7 +105,7 @@
users.users."mtgmonkey" = {
isNormalUser = true;
description = "mtgmonkey";
initialPassword = "password";
hashedPasswordFile = builtins.toString config.age.secrets.secret1.path;
extraGroups = [
"networkmanager"
"wheel"