From f9dbd3f12fb1f3db18f301790d922ff158bdb44b Mon Sep 17 00:00:00 2001 From: seth Date: Tue, 2 May 2023 01:14:01 -0400 Subject: atlas: reinstall with systemd-boot --- hosts/atlas/default.nix | 6 +++++- hosts/atlas/hardware-configuration.nix | 28 ++++++++++++++++------------ 2 files changed, 21 insertions(+), 13 deletions(-) (limited to 'hosts') diff --git a/hosts/atlas/default.nix b/hosts/atlas/default.nix index a6201fe..3a087f6 100644 --- a/hosts/atlas/default.nix +++ b/hosts/atlas/default.nix @@ -11,7 +11,11 @@ server.enable = true; - boot.cleanTmpDir = true; + boot = { + cleanTmpDir = true; + loader.systemd-boot.enable = true; + loader.efi.canTouchEfiVariables = true; + }; environment.systemPackages = with pkgs; [ hercules-ci-agent.packages.aarch64-linux.hercules-ci-cli diff --git a/hosts/atlas/hardware-configuration.nix b/hosts/atlas/hardware-configuration.nix index f3a929f..46b295b 100644 --- a/hosts/atlas/hardware-configuration.nix +++ b/hosts/atlas/hardware-configuration.nix @@ -1,18 +1,22 @@ {modulesPath, ...}: { - imports = [(modulesPath + "/profiles/qemu-guest.nix")]; - boot.loader.grub = { - efiSupport = true; - efiInstallAsRemovable = true; - device = "nodev"; + imports = [ + (modulesPath + "/profiles/qemu-guest.nix") + ]; + + boot.initrd.availableKernelModules = ["virtio_pci" "usbhid"]; + boot.initrd.kernelModules = []; + boot.kernelModules = []; + boot.extraModulePackages = []; + + fileSystems."/" = { + device = "/dev/disk/by-uuid/f0c84809-83f5-414b-a973-496d25d74c6d"; + fsType = "ext4"; }; + fileSystems."/boot" = { - device = "/dev/disk/by-uuid/EC6B-53AA"; + device = "/dev/disk/by-uuid/A253-0826"; fsType = "vfat"; }; - boot.initrd.availableKernelModules = ["ata_piix" "uhci_hcd" "xen_blkfront"]; - boot.initrd.kernelModules = ["nvme"]; - fileSystems."/" = { - device = "/dev/sda1"; - fsType = "ext4"; - }; + + swapDevices = []; } -- cgit v1.2.3