Added some harddrives to hardware configs, reformatted and nested some settings, small config changes.

This commit is contained in:
2026-02-13 14:27:25 -06:00
parent dfc99c1298
commit 7d23fc780c
2 changed files with 77 additions and 38 deletions

View File

@@ -6,8 +6,10 @@
{ {
flake.nixosModules.lily-desktop = { pkgs, ... }: { flake.nixosModules.lily-desktop = { pkgs, ... }: {
# Use the systemd-boot EFI boot loader. # Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true; boot.loader = {
boot.loader.efi.canTouchEfiVariables = true; systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
networking.hostName = "lily-desktop"; # Define your hostname. networking.hostName = "lily-desktop"; # Define your hostname.
@@ -47,20 +49,21 @@ flake.nixosModules.lily-desktop = { pkgs, ... }: {
services.desktopManager.gnome.enable = true; services.desktopManager.gnome.enable = true;
# Enable CUPS to print documents. # Enable CUPS to print documents.
# services.printing.enable = true; services.printing.enable = true;
# Enable sound. # Enable sound.
# services.pulseaudio.enable = true; # services.pulseaudio.enable = true;
# OR # OR
# services.pipewire = { services.pipewire = {
# enable = true; enable = true;
# pulse.enable = true; pulse.enable = true;
# }; };
# Enable touchpad support (enabled default in most desktopManager). # Enable touchpad support (enabled default in most desktopManager).
# services.libinput.enable = true; # services.libinput.enable = true;
programs.firefox.enable = true; programs.firefox.enable = true;
nixpkgs.config.allowUnfree = true;
# List packages installed in system profile. # List packages installed in system profile.
# You can use https://search.nixos.org/ to find more packages (and options). # You can use https://search.nixos.org/ to find more packages (and options).
@@ -83,10 +86,10 @@ flake.nixosModules.lily-desktop = { pkgs, ... }: {
# List services that you want to enable: # List services that you want to enable:
# Enable the OpenSSH daemon. # Enable the OpenSSH daemon.
# services.openssh.enable = true; services.openssh.enable = true;
# Open ports in the firewall. # Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ]; networking.firewall.allowedTCPPorts = [ 22 ];
# networking.firewall.allowedUDPPorts = [ ... ]; # networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether. # Or disable the firewall altogether.
# networking.firewall.enable = false; # networking.firewall.enable = false;

View File

@@ -1,37 +1,73 @@
{ {
flake.nixosModules.lily-desktop = { config, lib, modulesPath, pkgs, self, ... }: { flake.nixosModules.lily-desktop = { config, lib, modulesPath, pkgs, self, ... }: {
imports = imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
[ (modulesPath + "/installer/scan/not-detected.nix")
boot = {
initrd = {
availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod" ];
kernelModules = [ "nvidia" ];
luks.devices = {
"root".device = "/dev/disk/by-uuid/8573b24b-461f-40bf-b16b-9de1207c0696";
"8tb".device = "/dev/disk/by-uuid/140a35ca-67f9-41df-8414-51dcccc1a620";
"12tb".device = "/dev/disk/by-uuid/c6c23b31-a8d7-4b96-8caa-b2bdbcd49e72";
};
};
kernelModules = [ "kvm-amd" ];
extraModulePackages = [ config.boot.kernelPackages.nvidiaPackages.stable ];
};
fileSystems = {
"/" = {
device = "/dev/mapper/root";
fsType = "btrfs";
options = [ "subvol=@nixroot" "compress=zstd" ];
};
"/boot" = {
device = "/dev/disk/by-uuid/5598-7465";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
"/home" = {
device = "/dev/mapper/root";
fsType = "btrfs";
options = [ "subvol=@home" "compress=zstd" ];
};
"/media/8tb" = {
device = "/dev/disk/by-uuid/a484bd77-f454-44f9-b356-e5d9781583bc";
fsType = "btrfs";
options = [ "compress=zstd" ];
};
"/media/12tb" = {
device = "/dev/disk/by-uuid/c28abd09-22a1-46d7-8a61-4212143baafc";
fsType = "btrfs";
options = [ "compress=zstd" ];
};
};
services.btrfs.autoScrub.enable = true;
swapDevices = [
{ device = "/media/8tb/swapfile"; }
]; ];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod" ]; services.xserver.videoDrivers = [ "nvidia" ];
boot.initrd.kernelModules = [ ]; hardware = {
boot.kernelModules = [ "kvm-amd" ]; graphics = {
boot.extraModulePackages = [ ]; enable = true;
enable32Bit = true;
fileSystems."/" = };
{ device = "/dev/mapper/root"; nvidia = {
fsType = "btrfs"; modesetting.enable = true;
options = [ "subvol=@nixroot" ]; powerManagement.enable = false;
open = false;
nvidiaSettings = true;
package = config.boot.kernelPackages.nvidiaPackages.stable;
};
}; };
boot.initrd.luks.devices."root".device = "/dev/disk/by-uuid/8573b24b-461f-40bf-b16b-9de1207c0696";
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/5598-7465";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
};
fileSystems."/home" =
{ device = "/dev/mapper/root";
fsType = "btrfs";
options = [ "subvol=@home" ];
};
swapDevices = [ ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}; };
} }