summaryrefslogtreecommitdiff
path: root/hosts/glados
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/glados')
-rw-r--r--hosts/glados/boot.nix13
-rw-r--r--hosts/glados/hardware-configuration.nix29
2 files changed, 22 insertions, 20 deletions
diff --git a/hosts/glados/boot.nix b/hosts/glados/boot.nix
index 4d905cb..bba1bef 100644
--- a/hosts/glados/boot.nix
+++ b/hosts/glados/boot.nix
@@ -1,7 +1,8 @@
-{ config
-, lib
-, pkgs
-, ...
+{
+ config,
+ lib,
+ pkgs,
+ ...
}: {
environment.systemPackages = with pkgs; [
sbctl
@@ -9,7 +10,7 @@
boot = {
kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
- kernelParams = [ "nohibernate" ];
+ kernelParams = ["nohibernate"];
bootspec.enable = true;
loader.systemd-boot.enable = lib.mkForce false;
@@ -18,6 +19,6 @@
enable = true;
pkiBundle = "/etc/secureboot";
};
- supportedFilesystems = [ "zfs" "ntfs" ];
+ supportedFilesystems = ["zfs" "ntfs"];
};
}
diff --git a/hosts/glados/hardware-configuration.nix b/hosts/glados/hardware-configuration.nix
index 891c896..20d2eda 100644
--- a/hosts/glados/hardware-configuration.nix
+++ b/hosts/glados/hardware-configuration.nix
@@ -1,43 +1,44 @@
# Do not modify this file! It was generated by ‘nixos-generate-config’
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
-{ config
-, lib
-, pkgs
-, modulesPath
-, ...
+{
+ config,
+ lib,
+ pkgs,
+ modulesPath,
+ ...
}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
- boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
- boot.initrd.kernelModules = [ ];
- boot.kernelModules = [ "kvm-amd" ];
- boot.extraModulePackages = [ ];
+ boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod"];
+ boot.initrd.kernelModules = [];
+ boot.kernelModules = ["kvm-amd"];
+ boot.extraModulePackages = [];
fileSystems."/" = {
device = "rpool/nixos/root";
fsType = "zfs";
- options = [ "zfsutil" "X-mount.mkdir" ];
+ options = ["zfsutil" "X-mount.mkdir"];
};
fileSystems."/home" = {
device = "rpool/nixos/home";
fsType = "zfs";
- options = [ "zfsutil" "X-mount.mkdir" ];
+ options = ["zfsutil" "X-mount.mkdir"];
};
fileSystems."/nix" = {
device = "rpool/nixos/nixstore";
fsType = "zfs";
- options = [ "zfsutil" "X-mount.mkdir" ];
+ options = ["zfsutil" "X-mount.mkdir"];
};
fileSystems."/var/log" = {
device = "rpool/nixos/var/log";
fsType = "zfs";
- options = [ "zfsutil" "X-mount.mkdir" ];
+ options = ["zfsutil" "X-mount.mkdir"];
};
fileSystems."/boot" = {
@@ -45,7 +46,7 @@
fsType = "vfat";
};
- swapDevices = [ ];
+ swapDevices = [];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's