diff options
| Commit | 8f77ce7a5ceb8dec7cfea38d2031624027fd0d3e (patch) | |
|---|---|---|
| Author | 2025-07-01 12:16:40 +0300 | |
| Committer | 2025-07-01 12:16:40 +0300 | |
| Files | a7f973829fa92f8d9e3ab7026d81e0587bf628d3 /machines | |
| nix-8f77ce7a5ceb8dec7cfea38d2031624027fd0d3e.tar nix-8f77ce7a5ceb8dec7cfea38d2031624027fd0d3e.tar.gz nix-8f77ce7a5ceb8dec7cfea38d2031624027fd0d3e.zip | ||
| Parent | af422eab2e6917383cc321cc0393210f1585e631 (diff) | |
feat(machines): Add configuration for marduk server
This is a small home server
3 files changed, 47 insertions, 0 deletions
| -rw-r--r-- | machines/marduk/configuration.nix | 2 | ||||
| -rw-r--r-- | machines/marduk/hardware-configuration.nix | 38 | ||||
| -rw-r--r-- | machines/marduk/sysidentity.nix | 7 |
diff --git a/machines/marduk/configuration.nix b/machines/marduk/configuration.nix new file mode 100644 index 0000000..0222734 --- /dev/null +++ b/machines/marduk/configuration.nix @@ -0,0 +1,2 @@ +{ pkgs, ... }: { +} 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; +} diff --git a/machines/marduk/sysidentity.nix b/machines/marduk/sysidentity.nix new file mode 100644 index 0000000..23047c0 --- /dev/null +++ b/machines/marduk/sysidentity.nix @@ -0,0 +1,7 @@ +groups: { + name = "marduk"; + arch = "x86_64-linux"; + kind = "server"; + + include = groups.barebones; +} |
