Update NixLap
This commit is contained in:
		
							parent
							
								
									727c6ae616
								
							
						
					
					
						commit
						8a30bf46e1
					
				
					 5 changed files with 80 additions and 97 deletions
				
			
		
							
								
								
									
										36
									
								
								nixos/flake.lock
									
										
									
										generated
									
									
									
								
							
							
						
						
									
										36
									
								
								nixos/flake.lock
									
										
									
										generated
									
									
									
								
							|  | @ -8,11 +8,11 @@ | ||||||
|         "systems": "systems" |         "systems": "systems" | ||||||
|       }, |       }, | ||||||
|       "locked": { |       "locked": { | ||||||
|         "lastModified": 1694435990, |         "lastModified": 1695973661, | ||||||
|         "narHash": "sha256-yLQPD2eZGepu3yvdwABXrR3GhAqWRWTj9rn3a4knYuk=", |         "narHash": "sha256-BP2H4c42GThPIhERtTpV1yCtwQHYHEKdRu7pjrmQAwo=", | ||||||
|         "owner": "numtide", |         "owner": "numtide", | ||||||
|         "repo": "devshell", |         "repo": "devshell", | ||||||
|         "rev": "f6aec2e8b1cdddcab10ce7fc2eac66886e3deaad", |         "rev": "cd4e2fda3150dd2f689caeac07b7f47df5197c31", | ||||||
|         "type": "github" |         "type": "github" | ||||||
|       }, |       }, | ||||||
|       "original": { |       "original": { | ||||||
|  | @ -46,11 +46,11 @@ | ||||||
|         ] |         ] | ||||||
|       }, |       }, | ||||||
|       "locked": { |       "locked": { | ||||||
|         "lastModified": 1694465129, |         "lastModified": 1695108154, | ||||||
|         "narHash": "sha256-8BQiuobMrCfCbGM7w6Snx+OBYdtTIm0+cGVaKwQ5BFg=", |         "narHash": "sha256-gSg7UTVtls2yO9lKtP0yb66XBHT1Fx5qZSZbGMpSn2c=", | ||||||
|         "owner": "nix-community", |         "owner": "nix-community", | ||||||
|         "repo": "home-manager", |         "repo": "home-manager", | ||||||
|         "rev": "9787dffff5d315c9593d3f9fb0f9bf2097e1b57b", |         "rev": "07682fff75d41f18327a871088d20af2710d4744", | ||||||
|         "type": "github" |         "type": "github" | ||||||
|       }, |       }, | ||||||
|       "original": { |       "original": { | ||||||
|  | @ -62,11 +62,11 @@ | ||||||
|     }, |     }, | ||||||
|     "nixpkgs": { |     "nixpkgs": { | ||||||
|       "locked": { |       "locked": { | ||||||
|         "lastModified": 1694499547, |         "lastModified": 1695825837, | ||||||
|         "narHash": "sha256-R7xMz1Iia6JthWRHDn36s/E248WB1/je62ovC/dUVKI=", |         "narHash": "sha256-4Ne11kNRnQsmSJCRSSNkFRSnHC4Y5gPDBIQGjjPfJiU=", | ||||||
|         "owner": "NixOS", |         "owner": "NixOS", | ||||||
|         "repo": "nixpkgs", |         "repo": "nixpkgs", | ||||||
|         "rev": "e5f018cf150e29aac26c61dac0790ea023c46b24", |         "rev": "5cfafa12d57374f48bcc36fda3274ada276cf69e", | ||||||
|         "type": "github" |         "type": "github" | ||||||
|       }, |       }, | ||||||
|       "original": { |       "original": { | ||||||
|  | @ -77,11 +77,11 @@ | ||||||
|     }, |     }, | ||||||
|     "nixpkgs-stable": { |     "nixpkgs-stable": { | ||||||
|       "locked": { |       "locked": { | ||||||
|         "lastModified": 1693675694, |         "lastModified": 1694908564, | ||||||
|         "narHash": "sha256-2pIOyQwGyy2FtFAUIb8YeKVmOCcPOTVphbAvmshudLE=", |         "narHash": "sha256-ducA98AuWWJu5oUElIzN24Q22WlO8bOfixGzBgzYdVc=", | ||||||
|         "owner": "NixOS", |         "owner": "NixOS", | ||||||
|         "repo": "nixpkgs", |         "repo": "nixpkgs", | ||||||
|         "rev": "5601118d39ca9105f8e7b39d4c221d3388c0419d", |         "rev": "596611941a74be176b98aeba9328aa9d01b8b322", | ||||||
|         "type": "github" |         "type": "github" | ||||||
|       }, |       }, | ||||||
|       "original": { |       "original": { | ||||||
|  | @ -93,11 +93,11 @@ | ||||||
|     }, |     }, | ||||||
|     "nixpkgs-unstable": { |     "nixpkgs-unstable": { | ||||||
|       "locked": { |       "locked": { | ||||||
|         "lastModified": 1694422566, |         "lastModified": 1696019113, | ||||||
|         "narHash": "sha256-lHJ+A9esOz9vln/3CJG23FV6Wd2OoOFbDeEs4cMGMqc=", |         "narHash": "sha256-X3+DKYWJm93DRSdC5M6K5hLqzSya9BjibtBsuARoPco=", | ||||||
|         "owner": "NixOS", |         "owner": "NixOS", | ||||||
|         "repo": "nixpkgs", |         "repo": "nixpkgs", | ||||||
|         "rev": "3a2786eea085f040a66ecde1bc3ddc7099f6dbeb", |         "rev": "f5892ddac112a1e9b3612c39af1b72987ee5783a", | ||||||
|         "type": "github" |         "type": "github" | ||||||
|       }, |       }, | ||||||
|       "original": { |       "original": { | ||||||
|  | @ -125,11 +125,11 @@ | ||||||
|         "nixpkgs-stable": "nixpkgs-stable" |         "nixpkgs-stable": "nixpkgs-stable" | ||||||
|       }, |       }, | ||||||
|       "locked": { |       "locked": { | ||||||
|         "lastModified": 1694495315, |         "lastModified": 1695284550, | ||||||
|         "narHash": "sha256-sZEYXs9T1NVHZSSbMqBEtEm2PGa7dEDcx0ttQkArORc=", |         "narHash": "sha256-z9fz/wz9qo9XePEvdduf+sBNeoI9QG8NJKl5ssA8Xl4=", | ||||||
|         "owner": "Mic92", |         "owner": "Mic92", | ||||||
|         "repo": "sops-nix", |         "repo": "sops-nix", | ||||||
|         "rev": "ea208e55f8742fdcc0986b256bdfa8986f5e4415", |         "rev": "2f375ed8702b0d8ee2430885059d5e7975e38f78", | ||||||
|         "type": "github" |         "type": "github" | ||||||
|       }, |       }, | ||||||
|       "original": { |       "original": { | ||||||
|  |  | ||||||
|  | @ -28,15 +28,6 @@ | ||||||
|   # Set your time zone. |   # Set your time zone. | ||||||
|   time.timeZone = "Europe/Brussels"; |   time.timeZone = "Europe/Brussels"; | ||||||
| 
 | 
 | ||||||
|   # Select internationalisation properties. |  | ||||||
|   i18n.defaultLocale = "en_GB.utf8"; |  | ||||||
| 
 |  | ||||||
|   # Configure keymap in X11 |  | ||||||
|   services.xserver = { |  | ||||||
|     layout = "us"; |  | ||||||
|     xkbVariant = ""; |  | ||||||
|   }; |  | ||||||
| 
 |  | ||||||
|   # Enable sound with pipewire. |   # Enable sound with pipewire. | ||||||
|   sound.enable = true; |   sound.enable = true; | ||||||
|   hardware.pulseaudio.enable = false; |   hardware.pulseaudio.enable = false; | ||||||
|  |  | ||||||
|  | @ -9,25 +9,33 @@ | ||||||
|     ../../modules/des/gnome |     ../../modules/des/gnome | ||||||
|   ]; |   ]; | ||||||
|    |    | ||||||
|   # Use the systemd-boot EFI boot loader.] |   boot = { | ||||||
|   boot.loader = { |     # Use the systemd-boot EFI boot loader.] | ||||||
|     systemd-boot.enable = true; |     loader = { | ||||||
|     efi = { |       systemd-boot.enable = true; | ||||||
|       canTouchEfiVariables = true; |       efi = { | ||||||
|       efiSysMountPoint = "/boot/efi"; |         canTouchEfiVariables = true; | ||||||
|  |         efiSysMountPoint = "/boot/efi"; | ||||||
|  |       }; | ||||||
|  |     }; | ||||||
|  | 
 | ||||||
|  |     initrd = { | ||||||
|  |       # Setup keyfile | ||||||
|  |       secrets."/crypto_keyfile.bin" = null; | ||||||
|  | 
 | ||||||
|  |       # Enable swap on luks | ||||||
|  |       luks.devices."luks-3825c43c-6cc4-4846-b1cc-02b5938640c9" = { | ||||||
|  |         device = "/dev/disk/by-uuid/3825c43c-6cc4-4846-b1cc-02b5938640c9"; | ||||||
|  |         keyFile = "/crypto_keyfile.bin"; | ||||||
|  |       }; | ||||||
|     }; |     }; | ||||||
|   }; |   }; | ||||||
| 
 | 
 | ||||||
|   # Setup keyfile |   networking = { | ||||||
|   boot.initrd.secrets = { |     hostName = "Tibo-NixFat"; | ||||||
|     "/crypto_keyfile.bin" = null; |     networkmanager.enable = true; | ||||||
|   }; |   }; | ||||||
|    |    | ||||||
|   networking.hostName = "Tibo-NixFat"; |  | ||||||
|   # Pick only one of the below networking options. |  | ||||||
|   # networking.wireless.enable = true;  # Enables wireless support via wpa_supplicant. |  | ||||||
|   networking.networkmanager.enable = true;  # Easiest to use and most distros use this by default. |  | ||||||
|    |  | ||||||
|   # Set your time zone. |   # Set your time zone. | ||||||
|   time.timeZone = "Europe/Brussels"; |   time.timeZone = "Europe/Brussels"; | ||||||
|    |    | ||||||
|  | @ -35,23 +43,6 @@ | ||||||
|   # networking.proxy.default = "http://user:password@proxy:port/"; |   # networking.proxy.default = "http://user:password@proxy:port/"; | ||||||
|   # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; |   # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; | ||||||
|    |    | ||||||
|   # Select internationalisation properties. |  | ||||||
|   i18n.defaultLocale = "en_GB.UTF-8"; |  | ||||||
|   # console = { |  | ||||||
|   #   font = "Lat2-Terminus16"; |  | ||||||
|   #   keyMap = "us"; |  | ||||||
|   #   useXkbConfig = true; # use xkbOptions in tty. |  | ||||||
|   # }; |  | ||||||
| 
 |  | ||||||
|   services.xserver = { |  | ||||||
|     # Configure keymap in X11 |  | ||||||
|     layout = "us"; |  | ||||||
|     xkbVariant = ""; |  | ||||||
|   }; |  | ||||||
| 
 |  | ||||||
|   # Enable CUPS to print documents. |  | ||||||
|   # services.printing.enable = true; |  | ||||||
|    |  | ||||||
|   # Enable sound with pipewire. |   # Enable sound with pipewire. | ||||||
|   sound.enable = true; |   sound.enable = true; | ||||||
|   hardware.pulseaudio.enable = false; |   hardware.pulseaudio.enable = false; | ||||||
|  | @ -69,36 +60,25 @@ | ||||||
|     #media-session.enable = true; |     #media-session.enable = true; | ||||||
|   }; |   }; | ||||||
| 
 | 
 | ||||||
|   services.logind.lidSwitch = "ignore"; |  | ||||||
|    |  | ||||||
|   # Enable Bluetooth. |   # Enable Bluetooth. | ||||||
|   hardware.bluetooth.enable = true; |   hardware.bluetooth.enable = true; | ||||||
|    |    | ||||||
|   # Enable touchpad support (enabled default in most desktopManager). |   services = { | ||||||
|   services.xserver.libinput.enable = true; |     logind = { | ||||||
|  |       lidSwitch = "hybrid-sleep"; | ||||||
|  |       lidSwitchExternalPower = "lock"; | ||||||
|  |       lidSwitchDocked = "ignore"; | ||||||
|  |     }; | ||||||
|  | 
 | ||||||
|  |     # Enable touchpad support (enabled default in most desktopManager). | ||||||
|  |     xserver = { | ||||||
|  |       libinput.enable = true; | ||||||
|  |     }; | ||||||
|  |   }; | ||||||
| 
 | 
 | ||||||
|   # Allow unfree packages |   # Allow unfree packages | ||||||
|   nixpkgs.config.allowUnfree = true; |   nixpkgs.config.allowUnfree = true; | ||||||
|    |    | ||||||
|   # Some programs need SUID wrappers, can be configured further or are |  | ||||||
|   # started in user sessions. |  | ||||||
|   # programs.mtr.enable = true; |  | ||||||
|   # programs.gnupg.agent = { |  | ||||||
|   #   enable = true; |  | ||||||
|   #   enableSSHSupport = true; |  | ||||||
|   # }; |  | ||||||
|    |  | ||||||
|   # List services that you want to enable: |  | ||||||
|    |  | ||||||
|   # Enable the OpenSSH daemon. |  | ||||||
|   # services.openssh.enable = true; |  | ||||||
|    |  | ||||||
|   # Open ports in the firewall. |  | ||||||
|   # networking.firewall.allowedTCPPorts = [ ... ]; |  | ||||||
|   # networking.firewall.allowedUDPPorts = [ ... ]; |  | ||||||
|   # Or disable the firewall altogether. |  | ||||||
|   # networking.firewall.enable = false; |  | ||||||
|    |  | ||||||
|   # Copy the NixOS configuration file and link it from the resulting system |   # Copy the NixOS configuration file and link it from the resulting system | ||||||
|   # (/run/current-system/configuration.nix). This is useful in case you |   # (/run/current-system/configuration.nix). This is useful in case you | ||||||
|   # accidentally delete configuration.nix. |   # accidentally delete configuration.nix. | ||||||
|  |  | ||||||
|  | @ -13,29 +13,29 @@ | ||||||
|   boot.kernelModules = [ "kvm-intel" ]; |   boot.kernelModules = [ "kvm-intel" ]; | ||||||
|   boot.extraModulePackages = [ ]; |   boot.extraModulePackages = [ ]; | ||||||
| 
 | 
 | ||||||
|   fileSystems."/" = |   fileSystems."/" = { | ||||||
|     { device = "/dev/disk/by-label/NIXROOT"; |     device = "/dev/disk/by-label/NIX-ROOT"; | ||||||
|       fsType = "ext4"; |     fsType = "ext4"; | ||||||
|     }; |   }; | ||||||
| 
 | 
 | ||||||
|   boot.initrd.luks.devices."luks-7319552e-7148-4a9b-aa56-aa580b0b935a".device = "/dev/disk/by-uuid/7319552e-7148-4a9b-aa56-aa580b0b935a"; |   boot.initrd.luks.devices."luks-c21cb4a4-f618-43af-bc0c-e8be74fe3b81".device = "/dev/disk/by-uuid/c21cb4a4-f618-43af-bc0c-e8be74fe3b81"; | ||||||
| 
 | 
 | ||||||
|   fileSystems."/boot/efi" = |   fileSystems."/boot/efi" = { | ||||||
|     { device = "/dev/disk/by-label/NIXBOOT"; |     device = "/dev/disk/by-label/NIX-BOOT"; | ||||||
|       fsType = "vfat"; |     fsType = "vfat"; | ||||||
|     }; |   }; | ||||||
| 
 | 
 | ||||||
|   # swapDevices = |   swapDevices = [ | ||||||
|   #   [ { device = "/dev/disk/by-label/SWAP"; } |     { device = "/dev/disk/by-label/SWAP"; } | ||||||
|   #   ]; |   ]; | ||||||
| 
 | 
 | ||||||
|   # Enables DHCP on each ethernet and wireless interface. In case of scripted networking |   # 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 |   # (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 |   # 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`. |   # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`. | ||||||
|   networking.useDHCP = lib.mkDefault true; |   networking.useDHCP = lib.mkDefault true; | ||||||
|   # networking.interfaces.eno2.useDHCP = lib.mkDefault true; |   # networking.interfaces.eno1.useDHCP = lib.mkDefault true; | ||||||
|   # networking.interfaces.wlo1.useDHCP = lib.mkDefault true; |   # networking.interfaces.wlp111s0.useDHCP = lib.mkDefault true; | ||||||
| 
 | 
 | ||||||
|   powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; |   powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; | ||||||
|   hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; |   hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; | ||||||
|  |  | ||||||
|  | @ -29,6 +29,18 @@ | ||||||
|     ]; |     ]; | ||||||
|   }; |   }; | ||||||
| 
 | 
 | ||||||
|  |   # Select internationalisation properties. | ||||||
|  |   i18n.defaultLocale = "en_GB.UTF-8"; | ||||||
|  |   console = { | ||||||
|  |     # font = "Lat2-Terminus16"; | ||||||
|  |     useXkbConfig = true; # use xkbOptions in tty. | ||||||
|  |   }; | ||||||
|  | 
 | ||||||
|  |   services.xserver = { | ||||||
|  |     layout = "us"; | ||||||
|  |     xkbVariant = "altgr-intl"; | ||||||
|  |   }; | ||||||
|  | 
 | ||||||
|   home-manager.useGlobalPkgs = true; |   home-manager.useGlobalPkgs = true; | ||||||
| 
 | 
 | ||||||
|   home-manager.users.tdpeuter = { pkgs, ... }: { |   home-manager.users.tdpeuter = { pkgs, ... }: { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue