diff options
author | Raghuram Subramani <raghus2247@gmail.com> | 2025-10-12 11:23:58 -0400 |
---|---|---|
committer | Raghuram Subramani <raghus2247@gmail.com> | 2025-10-12 11:24:13 -0400 |
commit | 57de4ede0cef89c04a3728e4f8c97f67ce771eff (patch) | |
tree | d183069bc9b8f93f429763ec35e1beb5abd8bc4c /machines/oxo/hardware-configuration.nix | |
parent | 607c7626001ba1ba4f0b8b4b4b774b508143cab5 (diff) |
generalize server
Diffstat (limited to 'machines/oxo/hardware-configuration.nix')
-rw-r--r-- | machines/oxo/hardware-configuration.nix | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/machines/oxo/hardware-configuration.nix b/machines/oxo/hardware-configuration.nix new file mode 100644 index 0000000..b10d174 --- /dev/null +++ b/machines/oxo/hardware-configuration.nix @@ -0,0 +1,56 @@ +# 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 + "/profiles/qemu-guest.nix") + ]; + + boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/f321b489-3003-4d4a-8e86-0eee0584e0f6"; + fsType = "btrfs"; + options = [ "subvol=root" ]; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/f321b489-3003-4d4a-8e86-0eee0584e0f6"; + fsType = "btrfs"; + options = [ "subvol=boot" ]; + }; + + fileSystems."/home" = + { device = "/dev/disk/by-uuid/f321b489-3003-4d4a-8e86-0eee0584e0f6"; + fsType = "btrfs"; + options = [ "subvol=home" ]; + }; + + fileSystems."/nix" = + { device = "/dev/disk/by-uuid/f321b489-3003-4d4a-8e86-0eee0584e0f6"; + fsType = "btrfs"; + options = [ "subvol=nix" ]; + }; + + fileSystems."/config" = + { device = "/dev/disk/by-uuid/f321b489-3003-4d4a-8e86-0eee0584e0f6"; + fsType = "btrfs"; + options = [ "subvol=config" ]; + }; + + 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 + # still possible to use this option, but it's recommended to use it in conjunction + # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`. + networking.useDHCP = lib.mkDefault true; + # networking.interfaces.enp1s0.useDHCP = lib.mkDefault true; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; +} |