Compare commits

...

3 Commits

Author SHA1 Message Date
dab72b1511 add comment regarding password-hash 2025-08-17 23:37:53 -04:00
6ab2271eeb add upower 2025-08-17 23:37:46 -04:00
13f91cc813 merge system.activationScripts sections 2025-08-17 23:36:37 -04:00

View File

@@ -44,6 +44,17 @@
#!/bin/sh #!/bin/sh
mkdir -p /nix/var/nix/profiles/per-user/root/channels mkdir -p /nix/var/nix/profiles/per-user/root/channels
''; '';
# extract all my secureboot keys
# TODO! proper secrets management
"secureboot-keys".text = ''
#!/usr/bin/env sh
rm -fr ${config.boot.lanzaboote.pkiBundle} || true
mkdir -p ${config.boot.lanzaboote.pkiBundle}
${lib.getExe pkgs.gnutar} xf ${./secrets/secureboot.tar} -C ${config.boot.lanzaboote.pkiBundle}
chown -R root:wheel ${config.boot.lanzaboote.pkiBundle}
chmod -R 500 ${config.boot.lanzaboote.pkiBundle}
'';
}; };
swapDevices = [ ]; swapDevices = [ ];
@@ -59,19 +70,6 @@
]; ];
}; };
system.activationScripts = {
# extract all my secureboot keys
# TODO! proper secrets management
"secureboot-keys".text = ''
#!/usr/bin/env sh
rm -fr ${config.boot.lanzaboote.pkiBundle} || true
mkdir -p ${config.boot.lanzaboote.pkiBundle}
${lib.getExe pkgs.gnutar} xf ${./secrets/secureboot.tar} -C ${config.boot.lanzaboote.pkiBundle}
chown -R root:wheel ${config.boot.lanzaboote.pkiBundle}
chmod -R 500 ${config.boot.lanzaboote.pkiBundle}
'';
};
# kernel options # kernel options
boot = { boot = {
kernelPackages = pkgs.linuxPackages_latest; kernelPackages = pkgs.linuxPackages_latest;
@@ -147,6 +145,9 @@
# Making sure mullvad works on boot # Making sure mullvad works on boot
mullvad-vpn.enable = true; mullvad-vpn.enable = true;
# power statistics
upower.enable = true;
}; };
# EST # EST
@@ -201,6 +202,7 @@
"camera" "camera"
"adbusers" "adbusers"
]; ];
# TODO! this is really bad :( I should really figure out how to do proper secrets management
hashedPasswordFile = "${./secrets/password-hash}"; hashedPasswordFile = "${./secrets/password-hash}";
}; };