summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
Diffstat (limited to 'hosts')
-rw-r--r--hosts/sweetiepc/configuration.nix13
-rw-r--r--hosts/sweetiepc/hardware-configuration.nix38
2 files changed, 50 insertions, 1 deletions
diff --git a/hosts/sweetiepc/configuration.nix b/hosts/sweetiepc/configuration.nix
index 5c6b427..d2bf172 100644
--- a/hosts/sweetiepc/configuration.nix
+++ b/hosts/sweetiepc/configuration.nix
@@ -1,6 +1,9 @@
{ config, lib, pkgs, home-manager, ... }: {
# Setup bootloader
- boot._loader.enable = true;
+ boot._loader = {
+ enable = true;
+ loader = "grub";
+ };
# Enable common options
_archetypes = {
@@ -10,6 +13,8 @@
home.users.timmy.enable = true;
};
zfs.enable = true;
+ btrfs.enable = true;
+ gnome.enable = true;
};
collections = {
desktop = {
@@ -18,6 +23,9 @@
};
};
+ # Import zfs pools
+ boot.zfs.extraPools = [ "geminus" "quattuor" ];
+
# Enable user timmy
_users.timmy = {
enable = true;
@@ -34,5 +42,8 @@
};
};
+ # Without this, "ZFS requires networking.hostId to be set" will be raised
+ networking.hostId = "fdde503a";
+
system.stateVersion = "26.05";
}
diff --git a/hosts/sweetiepc/hardware-configuration.nix b/hosts/sweetiepc/hardware-configuration.nix
new file mode 100644
index 0000000..5ed162c
--- /dev/null
+++ b/hosts/sweetiepc/hardware-configuration.nix
@@ -0,0 +1,38 @@
+# 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, ... }:
+
+{
+ imports =
+ [ (modulesPath + "/installer/scan/not-detected.nix")
+ ];
+
+ boot.initrd.availableKernelModules = [ "ehci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
+ boot.initrd.kernelModules = [ ];
+ boot.kernelModules = [ "kvm-intel" ];
+ boot.extraModulePackages = [ ];
+
+ fileSystems."/" =
+ { device = "/dev/disk/by-uuid/91572803-436d-4f43-b41f-dfba2103752e";
+ fsType = "btrfs";
+ options = [ "subvol=@" ];
+ };
+
+ fileSystems."/home" =
+ { device = "/dev/disk/by-uuid/91572803-436d-4f43-b41f-dfba2103752e";
+ fsType = "btrfs";
+ options = [ "subvol=@home" ];
+ };
+
+ fileSystems."/boot" =
+ { device = "/dev/disk/by-uuid/F618-D6C2";
+ fsType = "vfat";
+ options = [ "fmask=0022" "dmask=0022" ];
+ };
+
+ swapDevices = [ ];
+
+ nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
+ hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
+}