Compare commits

..

2 commits

Author SHA1 Message Date
98e93cd020 clean up home manager 2026-10-01 01:02:22 -05:00
2ec40813a7 fix some issues 2026-10-01 01:02:03 -05:00
2 changed files with 44 additions and 22 deletions

View file

@ -3,7 +3,22 @@
{ {
boot.initrd = { boot.initrd = {
supportedFilesystems = [ "ext4" "zfs" ]; supportedFilesystems = [ "ext4" "zfs" ];
systemd.enable = true; systemd = {
enable = true;
fido2.enable = true;
mounts = [
{
what = "/sysroot/keys";
where = "/keys";
type = "none";
options = "bind";
unitConfig.RequiresMountsFor = "/sysroot/keys";
requires = [ "sysroot-keys.mount" ];
after = [ "sysroot-keys.mount" ];
before = [ "zfs-import-nix-root.service" ];
}
];
};
luks.fido2Support = false; luks.fido2Support = false;
luks.devices."zfs-keys" = { luks.devices."zfs-keys" = {
@ -11,18 +26,18 @@
crypttabExtraOpts = [ "fido2-device=auto" ]; crypttabExtraOpts = [ "fido2-device=auto" ];
}; };
fileSystems."/keys" = {
device = "/dev/mapper/zfs-keys";
fsType = "ext4";
neededForBoot = true;
};
systemd.services."zfs-import-nix-root" = { systemd.services."zfs-import-nix-root" = {
wants = [ "keys.mount" ]; wants = [ "keys.mount" ];
after = [ "keys.mount" ]; after = [ "keys.mount" ];
}; };
}; };
fileSystems."/keys" = {
device = "/dev/mapper/zfs-keys";
fsType = "ext4";
neededForBoot = true;
};
boot.zfs.forceImportRoot = false; boot.zfs.forceImportRoot = false;
fileSystems."/" = { fileSystems."/" = {
device = "nix-root/root"; device = "nix-root/root";
@ -50,6 +65,11 @@
options = [ "fmask=0022" "dmask=0022" ]; options = [ "fmask=0022" "dmask=0022" ];
}; };
swapDevices = [ { device = "/dev/disk/by-id/nvme-CT1000P2SSD8_2138E5D5DA5A-part3"; } ]; swapDevices = [
{
device = "/dev/disk/by-id/nvme-CT1000P2SSD8_2138E5D5DA5A-part3";
randomEncryption.enable = true;
}
];
} }

View file

@ -3,20 +3,22 @@
{ {
# Home Manager needs a bit of information about you and the # Home Manager needs a bit of information about you and the
# paths it should manage. # paths it should manage.
home.username = "nyxerinys"; home = {
home.homeDirectory = ( username = "nyxerinys";
if osConfig.nyxs-nix.services.home.isMacOS then homeDirectory = (
"/Users/nyxerinys" if osConfig.nyxs-nix.services.home.isMacOS then
else "/Users/nyxerinys"
"/home/nyxerinys" else
); "/home/nyxerinys"
home.packages = with pkgs; [ );
prismlauncher packages = with pkgs; [
sops prismlauncher
age sops
ssh-to-age age
tmux ssh-to-age
]; tmux
];
};
# This value determines the Home Manager release that your # This value determines the Home Manager release that your