Migrate helium to flakes
This commit is contained in:
parent
8d9f10347e
commit
ac436e4fd2
2 changed files with 52 additions and 15 deletions
|
@ -4,8 +4,6 @@
|
|||
system.autoUpgrade.allowReboot = lib.mkForce false;
|
||||
|
||||
networking = {
|
||||
hostName = "helium";
|
||||
|
||||
wg-quick.interfaces = {
|
||||
wg1 = {
|
||||
autostart = false;
|
||||
|
@ -32,19 +30,6 @@
|
|||
${pkgs.xorg.xrandr}/bin/xrandr --output DisplayPort-0 --auto --pos 0x0 --primary --output eDP --auto --pos 3840x360
|
||||
'';
|
||||
|
||||
boot = {
|
||||
loader.timeout = 3;
|
||||
initrd.luks = {
|
||||
fido2Support = true;
|
||||
devices."luks-f6e1979b-0dee-4ee9-8170-10490019854b".fido2 = {
|
||||
passwordLess = true;
|
||||
credential = "df9233221fa09173fea61d8b8516d184f8ede475024a88201b34d838ecf306ee070052dae2262619c1da2be7562ec9dd94888c71a9326fea70dfe16214b5ea8ec014d86afa01";
|
||||
};
|
||||
};
|
||||
resumeDevice = "/dev/mapper/luks-f6e1979b-0dee-4ee9-8170-10490019854b";
|
||||
kernelParams = [ "resume_offset=44537856" ];
|
||||
};
|
||||
|
||||
imports = [
|
||||
../../shared/base.nix
|
||||
|
||||
|
@ -68,5 +53,7 @@
|
|||
../../personal/programs/redshift.nix
|
||||
../../personal/programs/study.nix
|
||||
../../personal/programs/usb-automount.nix
|
||||
|
||||
../../servers/syncthing.nix
|
||||
];
|
||||
}
|
||||
|
|
50
hosts/helium/state.nix
Normal file
50
hosts/helium/state.nix
Normal file
|
@ -0,0 +1,50 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
modulesPath,
|
||||
...
|
||||
}:
|
||||
{
|
||||
system.stateVersion = "23.11";
|
||||
boot = {
|
||||
resumeDevice = "/dev/mapper/luks-f6e1979b-0dee-4ee9-8170-10490019854b";
|
||||
kernelParams = [ "resume_offset=44537856" ];
|
||||
};
|
||||
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [
|
||||
"nvme"
|
||||
"xhci_pci"
|
||||
"usbhid"
|
||||
"usb_storage"
|
||||
"sd_mod"
|
||||
];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/25115cdc-3b55-4dbf-a414-98a1a3c44f52";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
boot.initrd.luks.devices."luks-f6e1979b-0dee-4ee9-8170-10490019854b".device =
|
||||
"/dev/disk/by-uuid/f6e1979b-0dee-4ee9-8170-10490019854b";
|
||||
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-uuid/6E23-00AF";
|
||||
fsType = "vfat";
|
||||
options = [
|
||||
"fmask=0022"
|
||||
"dmask=0022"
|
||||
];
|
||||
};
|
||||
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue