forked from fabian/nix
		
	
		
			
				
	
	
		
			38 lines
		
	
	
	
		
			863 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
	
		
			863 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| {
 | |
|   config,
 | |
|   lib,
 | |
|   pkgs,
 | |
|   flakes,
 | |
|   modulesPath,
 | |
|   ...
 | |
| }: let
 | |
|   subvol = subvol: {
 | |
|     device = "/dev/disk/by-uuid/645fdba0-5c03-4285-926b-facded1ee259";
 | |
|     fsType = "btrfs";
 | |
|     options = ["subvol=${subvol}" "compress=zstd" "noatime" "ssd"];
 | |
|   };
 | |
| in {
 | |
|   imports = [
 | |
|     flakes.nixpkgs.nixosModules.notDetected
 | |
|   ];
 | |
| 
 | |
|   boot.initrd = {
 | |
|     availableKernelModules = ["xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod"];
 | |
|     luks.devices."toplevel" = {
 | |
|       device = "/dev/disk/by-uuid/58277baa-90d4-4a5e-a658-1b918b89130a";
 | |
|       preLVM = false;
 | |
|     };
 | |
|   };
 | |
| 
 | |
|   fileSystems = {
 | |
|     "/" = subvol "root";
 | |
|     "/toplevel" = subvol "/";
 | |
|     "/boot" = {
 | |
|       device = "/dev/disk/by-uuid/B007-B007";
 | |
|       fsType = "vfat";
 | |
|       options = ["umask=027"];
 | |
|     };
 | |
|   };
 | |
| 
 | |
|   hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
 | |
| }
 |