❄️ My personnal NixOS configuration
nix-flake nixos-configuration linux dotfiles flake nix nix-config nixos nixos-flake linux-desktop
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

test

anael 15ddb65b e4227d07

+65 -39
+25 -11
hosts/DEV-BOYY/boot.nix
··· 2 2 3 3 { 4 4 boot = { 5 + 5 6 loader = { 6 - systemd-boot.enable = lib.mkForce false; 7 + limine = { 8 + enable = true; 9 + efiSupport = true; 10 + efiInstallAsRemovable = true 11 + secureBoot.enable = true; 12 + extraEntries = '' 13 + # NixOS with hibernation resume 14 + :NixOS Development 15 + COMMENT=NixOS 16 + PROTOCOL=linux 17 + KERNEL_PATH=boot:///nixos/kernel 18 + MODULE_PATH=boot:///nixos/initrd 19 + CMDLINE=root=/dev/disk/by-label/NIX_ROOT resume=/dev/disk/by-label/LINUX_SWAP quiet 20 + 21 + # CachyOS - NO resume parameter, fresh boot every time 22 + :CachyOS Gaming 23 + COMMENT=CachyOS 24 + PROTOCOL=linux 25 + KERNEL_PATH=boot:///vmlinuz-linux-cachyos 26 + MODULE_PATH=boot:///initramfs-linux-cachyos.img 27 + CMDLINE=root=/dev/disk/by-label/CACHYOS-ROOT rw quiet nowatchdog splash 28 + # NOTE: no resume= parameter 29 + ''; 30 + }; 7 31 efi = { 8 32 canTouchEfiVariables = true; 9 33 efiSysMountPoint = "/boot"; 10 34 }; 11 - # grub = { 12 - # enable = false; 13 - # efiSupport = true; 14 - # device = "nodev"; 15 - # useOSProber = true; 16 - # }; 17 - }; 18 - lanzaboote = { 19 - enable = true; 20 - pkiBundle = "/etc/secureboot"; 21 35 }; 22 36 kernelModules = [ 23 37 "sg"
+40 -28
hosts/DEV-BOYY/hardware-configuration.nix
··· 1 - # Do not modify this file! It was generated by ‘nixos-generate-config’ 2 - # and may be overwritten by future invocations. Please make changes 1 + # do not modify this file! it was generated by ‘nixos-generate-config’ 2 + # and may be overwritten by future invocations. please make changes 3 3 # to /etc/nixos/configuration.nix instead. 4 4 { 5 5 config, 6 6 lib, 7 - modulesPath, 7 + modulespath, 8 8 ... 9 9 }: 10 10 11 11 { 12 12 imports = [ 13 - (modulesPath + "/installer/scan/not-detected.nix") 13 + (modulespath + "/installer/scan/not-detected.nix") 14 14 ]; 15 15 16 - boot.initrd.availableKernelModules = [ 16 + boot.initrd.availablekernelmodules = [ 17 17 "nvme" 18 18 "xhci_pci" 19 19 "ahci" ··· 21 21 "uas" 22 22 "sd_mod" 23 23 ]; 24 - boot.initrd.kernelModules = [ ]; 25 - boot.kernelModules = [ 24 + boot.initrd.kernelmodules = [ ]; 25 + boot.kernelmodules = [ 26 26 "kvm-amd" 27 27 "i2c-dev" 28 28 ]; 29 - boot.extraModulePackages = [ ]; 29 + boot.extramodulepackages = [ ]; 30 30 31 - fileSystems."/" = { 31 + filesystems = { 32 + "/" = { 32 33 device = "/dev/disk/by-label/NIX_ROOT"; 33 - fsType = "btrfs"; 34 - options = [ "compress=zstd" ]; 34 + fstype = "xfs"; 35 + options = [ ]; 35 36 }; 37 + "/home" = { 38 + device = "/dev/disk/by-label/NIX_HOME"; 39 + fstype = "btrfs"; 40 + options = [ "compress=zstd"]; 41 + } 36 42 37 - fileSystems."/boot" = { 38 - device = "/dev/disk/by-label/NIX_BOOT"; 39 - fsType = "vfat"; 43 + "/boot" = { 44 + device = "/dev/disk/by-label/LIMINE_BOOT"; 45 + fstype = "vfat"; 40 46 options = [ 41 - "fmask=0022" 42 - "dmask=0022" 47 + "umask=0077" 43 48 ]; 44 49 }; 45 50 46 - fileSystems."/nix/store" = { 51 + "/nix/store" = { 47 52 device = "/dev/disk/by-label/NIX_STORE"; 48 - fsType = "xfs"; 53 + fstype = "xfs"; 49 54 options = [ 50 55 "noatime" 51 56 ]; 57 + }; 52 58 }; 53 59 54 - swapDevices = [ 60 + swapdevices = [ 55 61 { 56 - label = "SWAP"; 62 + label = "LINUX_SWAP"; 57 63 } 58 64 ]; 65 + boot= { 66 + resumedevice = "/dev/disk/by-label/LINUX_SWAP"; 67 + kernelparams = [ 68 + "resume=/dev/disk/by-label/LINUX_SWAP" 69 + ]; 70 + }; 59 71 60 - # Enables DHCP on each ethernet and wireless interface. In case of scripted networking 61 - # (the default) this is the recommended approach. When using systemd-networkd it's 72 + # enables dhcp on each ethernet and wireless interface. in case of scripted networking 73 + # (the default) this is the recommended approach. when using systemd-networkd it's 62 74 # still possible to use this option, but it's recommended to use it in conjunction 63 - # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`. 64 - networking.useDHCP = lib.mkDefault true; 65 - # networking.interfaces.enp8s0.useDHCP = lib.mkDefault true; 66 - # networking.interfaces.wlp7s0.useDHCP = lib.mkDefault true; 75 + # with explicit per-interface declarations with `networking.interfaces.<interface>.usedhcp`. 76 + networking.usedhcp = lib.mkdefault true; 77 + # networking.interfaces.enp8s0.usedhcp = lib.mkdefault true; 78 + # networking.interfaces.wlp7s0.usedhcp = lib.mkdefault true; 67 79 68 - nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; 69 - hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; 80 + nixpkgs.hostplatform = lib.mkdefault "x86_64-linux"; 81 + hardware.cpu.amd.updatemicrocode = lib.mkdefault config.hardware.enableredistributablefirmware; 70 82 }