Summary Files Commits Branches @commit @diff @stats
path: root / machines / marduk / hardware-configuration.nix
diff options
context:
space:
mode:
Commit8f77ce7a5ceb8dec7cfea38d2031624027fd0d3e (patch)
Author
 Syndamia <kamen@syndamia.com>
2025-07-01 12:16:40 +0300
Committer
 Syndamia <kamen@syndamia.com>
2025-07-01 12:16:40 +0300
Filesa7f973829fa92f8d9e3ab7026d81e0587bf628d3 /machines/marduk/hardware-configuration.nix
nix-8f77ce7a5ceb8dec7cfea38d2031624027fd0d3e.tar
nix-8f77ce7a5ceb8dec7cfea38d2031624027fd0d3e.tar.gz
nix-8f77ce7a5ceb8dec7cfea38d2031624027fd0d3e.zip
Parentaf422eab2e6917383cc321cc0393210f1585e631 (diff)
feat(machines): Add configuration for marduk server
This is a small home server
1 files changed, 38 insertions, 0 deletions
-rw-r--r--machines/marduk/hardware-configuration.nix38
diff --git a/machines/marduk/hardware-configuration.nix b/machines/marduk/hardware-configuration.nix
new file mode 100644
index 0000000..0133201
--- /dev/null
+++ b/machines/marduk/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 = [ "xhci_pci" "ahci" "ohci_pci" "ehci_pci" "usb_storage" "sd_mod" ];
+ boot.initrd.kernelModules = [ ];
+ boot.kernelModules = [ "kvm-amd" ];
+ boot.extraModulePackages = [ ];
+
+ fileSystems."/" =
+ { device = "/dev/disk/by-uuid/9e9c092c-1fd7-4e10-a218-726c4c427be1";
+ fsType = "ext4";
+ };
+
+ fileSystems."/boot" =
+ { device = "/dev/disk/by-uuid/A18A-E092";
+ fsType = "vfat";
+ options = [ "fmask=0077" "dmask=0077" ];
+ };
+
+ 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";
+ hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
+}