From 17a40c2cf1f8d121e86f341f4ea416c28842a4f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20R=C3=B6ger?= Date: Sun, 4 May 2025 04:01:52 +0200 Subject: [PATCH] System Gen1 @ 2025-05-04-03:02:01 by jonas@monolith --- hosts/monolith/hardware-configuration.nix | 42 +++++++++++++++++++++++ modules/desktop/de/plasma.nix | 2 +- 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 hosts/monolith/hardware-configuration.nix diff --git a/hosts/monolith/hardware-configuration.nix b/hosts/monolith/hardware-configuration.nix new file mode 100644 index 0000000..704b97b --- /dev/null +++ b/hosts/monolith/hardware-configuration.nix @@ -0,0 +1,42 @@ +# 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 = ["nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "sr_mod"]; + boot.initrd.kernelModules = []; + boot.kernelModules = ["kvm-amd"]; + boot.extraModulePackages = []; + + fileSystems."/" = { + device = "/dev/disk/by-uuid/11d59216-2e76-499f-853f-9801486e330a"; + fsType = "ext4"; + }; + + fileSystems."/boot" = { + device = "/dev/disk/by-uuid/0892-649B"; + fsType = "vfat"; + options = ["fmask=0022" "dmask=0022"]; + }; + + 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..useDHCP`. + networking.useDHCP = lib.mkDefault true; + # networking.interfaces.enp42s0.useDHCP = lib.mkDefault true; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +} diff --git a/modules/desktop/de/plasma.nix b/modules/desktop/de/plasma.nix index 3d0d97e..2027540 100644 --- a/modules/desktop/de/plasma.nix +++ b/modules/desktop/de/plasma.nix @@ -10,6 +10,6 @@ in { }; config = lib.mkIf cfg.enable { - services.xserver.desktopManager.plasma6.enable = true; + services.desktopManager.plasma6.enable = true; }; }