From 46bfe9c7cf43a73ea1c380abdd063a4dcddc4120 Mon Sep 17 00:00:00 2001 From: lucy Date: Fri, 10 Jul 2026 18:00:44 +0200 Subject: [PATCH] do shit --- configuration.nix | 1 - flake.nix | 15 +++++----- hardware-configuration-desktop.nix | 47 +++++++++++++++++++++--------- 3 files changed, 40 insertions(+), 23 deletions(-) diff --git a/configuration.nix b/configuration.nix index 78a1738..e0ecf42 100644 --- a/configuration.nix +++ b/configuration.nix @@ -6,7 +6,6 @@ }: { imports = [ - ./easyroam.nix ./stylix.nix ./nixvim/nixvim.nix ]; diff --git a/flake.nix b/flake.nix index dd70ec5..a3f50d5 100644 --- a/flake.nix +++ b/flake.nix @@ -42,7 +42,7 @@ { nixosConfigurations.seele = nixpkgs.lib.nixosSystem { modules = [ - + ./easyroam.nix ./configuration.nix ./nixvim/nixvim.nix nix-easyroam.nixosModules.nix-easyroam @@ -57,9 +57,9 @@ } ({ lib, ... }: { networking.hostName = lib.mkForce "seele"; - imports = [ - ./hardware-configuration-laptop.nix - ]; + imports = [ + ./hardware-configuration-laptop.nix + ]; }) @@ -80,12 +80,11 @@ home-manager.useGlobalPkgs = true; home-manager.extraSpecialArgs = { inherit inputs; }; } - lanzaboote.nixosModules.lanzaboote ({ pkgs, lib, ... }: { - imports = [ - ./hardware-configuration-desktop.nix - ]; + imports = [ + ./hardware-configuration-desktop.nix + ]; networking.hostName = lib.mkForce "nerv"; environment.systemPackages = [ # For debugging and troubleshooting Secure Boot. diff --git a/hardware-configuration-desktop.nix b/hardware-configuration-desktop.nix index 64df67f..da5f51c 100644 --- a/hardware-configuration-desktop.nix +++ b/hardware-configuration-desktop.nix @@ -1,31 +1,50 @@ # 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, ... }: +{ + config, + lib, + pkgs, + modulesPath, + ... +}: { - imports = - [ (modulesPath + "/installer/scan/not-detected.nix") - ]; + imports = [ + (modulesPath + "/installer/scan/not-detected.nix") + ]; - boot.initrd.availableKernelModules = [ "nvme" "ahci" "xhci_pci" "usbhid" "usb_storage" "sd_mod" ]; + boot.initrd.availableKernelModules = [ + "nvme" + "ahci" + "xhci_pci" + "usbhid" + "usb_storage" + "sd_mod" + ]; boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-amd" ]; boot.extraModulePackages = [ ]; - fileSystems."/" = - { device = "/dev/disk/by-uuid/64a37727-0c5f-41d4-afac-dc26978916c1"; - fsType = "xfs"; - }; + fileSystems."/" = { + device = "/dev/disk/by-uuid/64a37727-0c5f-41d4-afac-dc26978916c1"; + fsType = "xfs"; + }; - fileSystems."/boot" = - { device = "/dev/disk/by-uuid/F424-0E3E"; - fsType = "vfat"; - options = [ "fmask=0077" "dmask=0077" ]; - }; + fileSystems."/boot" = { + device = "/dev/disk/by-uuid/F424-0E3E"; + fsType = "vfat"; + options = [ + "fmask=0077" + "dmask=0077" + ]; + }; swapDevices = [ ]; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; + services.xserver.videoDrivers = [ "nvidia" ]; + hardware.nvidia.open = true; # see the note above + boot.loader.systemd-boot.configurationLimit = 5; }