Compare commits
	
		
			No commits in common. "0b5beaf63d8a9e5fd5726f4120a54d290419fac7" and "22271d33d16757d02661c60a2cee56e7d3d141b0" have entirely different histories.
		
	
	
		
			0b5beaf63d
			...
			22271d33d1
		
	
		
							
								
								
									
										32
									
								
								flake.lock
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										32
									
								
								flake.lock
									
									
									
										generated
									
									
									
								
							| @ -7,11 +7,11 @@ | |||||||
|         ] |         ] | ||||||
|       }, |       }, | ||||||
|       "locked": { |       "locked": { | ||||||
|         "lastModified": 1750040002, |         "lastModified": 1748225455, | ||||||
|         "narHash": "sha256-KrC9iOVYIn6ukpVlHbqSA4hYCZ6oDyJKrcLqv4c5v84=", |         "narHash": "sha256-AzlJCKaM4wbEyEpV3I/PUq5mHnib2ryEy32c+qfj6xk=", | ||||||
|         "owner": "nix-community", |         "owner": "nix-community", | ||||||
|         "repo": "disko", |         "repo": "disko", | ||||||
|         "rev": "7f1857b31522062a6a00f88cbccf86b43acceed1", |         "rev": "a894f2811e1ee8d10c50560551e50d6ab3c392ba", | ||||||
|         "type": "github" |         "type": "github" | ||||||
|       }, |       }, | ||||||
|       "original": { |       "original": { | ||||||
| @ -61,11 +61,11 @@ | |||||||
|         ] |         ] | ||||||
|       }, |       }, | ||||||
|       "locked": { |       "locked": { | ||||||
|         "lastModified": 1750107071, |         "lastModified": 1748134483, | ||||||
|         "narHash": "sha256-yfuHCO4m+gu3OBNGnP0/TL5W8nLXrC/EV1fs/+YcoL8=", |         "narHash": "sha256-5PBK1nV8X39K3qUj8B477Aa2RdbLq3m7wRxUKRtggX4=", | ||||||
|         "owner": "nix-community", |         "owner": "nix-community", | ||||||
|         "repo": "home-manager", |         "repo": "home-manager", | ||||||
|         "rev": "0edffd088e42fdc48598b37d88eb5345e2ca3937", |         "rev": "c1e671036224089937e111e32ea899f59181c383", | ||||||
|         "type": "github" |         "type": "github" | ||||||
|       }, |       }, | ||||||
|       "original": { |       "original": { | ||||||
| @ -133,11 +133,11 @@ | |||||||
|     }, |     }, | ||||||
|     "nixpkgs": { |     "nixpkgs": { | ||||||
|       "locked": { |       "locked": { | ||||||
|         "lastModified": 1749903597, |         "lastModified": 1747958103, | ||||||
|         "narHash": "sha256-jp0D4vzBcRKwNZwfY4BcWHemLGUs4JrS3X9w5k/JYDA=", |         "narHash": "sha256-qmmFCrfBwSHoWw7cVK4Aj+fns+c54EBP8cGqp/yK410=", | ||||||
|         "owner": "nixos", |         "owner": "nixos", | ||||||
|         "repo": "nixpkgs", |         "repo": "nixpkgs", | ||||||
|         "rev": "41da1e3ea8e23e094e5e3eeb1e6b830468a7399e", |         "rev": "fe51d34885f7b5e3e7b59572796e1bcb427eccb1", | ||||||
|         "type": "github" |         "type": "github" | ||||||
|       }, |       }, | ||||||
|       "original": { |       "original": { | ||||||
| @ -161,11 +161,11 @@ | |||||||
|     }, |     }, | ||||||
|     "secrets": { |     "secrets": { | ||||||
|       "locked": { |       "locked": { | ||||||
|         "lastModified": 1750361251, |         "lastModified": 1749476519, | ||||||
|         "narHash": "sha256-yfK2ArCYImg5vIfWP8f2O9+TF18K0dGOVqjheI23zuo=", |         "narHash": "sha256-yzSsn2e+n4TQisd1PB7vZLcz9rhd8n5V4uoniWt+CP8=", | ||||||
|         "ref": "refs/heads/main", |         "ref": "refs/heads/main", | ||||||
|         "rev": "498db9fadb1810dd2c3e5d130b655ff7632f9640", |         "rev": "890c1295ca6fea2a3aad5b7075dd5902f92beef0", | ||||||
|         "revCount": 14, |         "revCount": 13, | ||||||
|         "type": "git", |         "type": "git", | ||||||
|         "url": "ssh://gitea@git.bulthuis.dev/Jan/nixos-secrets" |         "url": "ssh://gitea@git.bulthuis.dev/Jan/nixos-secrets" | ||||||
|       }, |       }, | ||||||
| @ -181,11 +181,11 @@ | |||||||
|         ] |         ] | ||||||
|       }, |       }, | ||||||
|       "locked": { |       "locked": { | ||||||
|         "lastModified": 1749592509, |         "lastModified": 1747603214, | ||||||
|         "narHash": "sha256-VunQzfZFA+Y6x3wYi2UE4DEQ8qKoAZZCnZPUlSoqC+A=", |         "narHash": "sha256-lAblXm0VwifYCJ/ILPXJwlz0qNY07DDYdLD+9H+Wc8o=", | ||||||
|         "owner": "Mic92", |         "owner": "Mic92", | ||||||
|         "repo": "sops-nix", |         "repo": "sops-nix", | ||||||
|         "rev": "50754dfaa0e24e313c626900d44ef431f3210138", |         "rev": "8d215e1c981be3aa37e47aeabd4e61bb069548fd", | ||||||
|         "type": "github" |         "type": "github" | ||||||
|       }, |       }, | ||||||
|       "original": { |       "original": { | ||||||
|  | |||||||
| @ -50,39 +50,22 @@ | |||||||
|     enable = true; |     enable = true; | ||||||
|     systemCronJobs = |     systemCronJobs = | ||||||
|       let |       let | ||||||
|         script = pkgs.writeShellScript "backup-script" ( |         script = pkgs.writeShellScript "backup-script" '' | ||||||
|           lib.concatStrings ( |           . ${config.sops.secrets."backup-script-env".path} | ||||||
|             [ |           export PBS_REPOSITORY=$PBS_REPOSITORY | ||||||
|               '' |           export PBS_NAMESPACE=$PBS_NAMESPACE | ||||||
|                 . ${config.sops.secrets."backup-script-env".path} |           export PBS_PASSWORD=$PBS_PASSWORD | ||||||
|                 export PBS_REPOSITORY=$PBS_REPOSITORY |           export PBS_FINGERPRINT=$PBS_FINGERPRINT | ||||||
|                 export PBS_NAMESPACE=$PBS_NAMESPACE |           ${pkgs.proxmox-backup-client}/bin/proxmox-backup-client backup nfs.pxar:/mnt/nas --ns $PBS_NAMESPACE --backup-id nas-backup --change-detection-mode=metadata --exclude "#recycle" | ||||||
|                 export PBS_PASSWORD=$PBS_PASSWORD |         ''; | ||||||
|                 export PBS_FINGERPRINT=$PBS_FINGERPRINT |  | ||||||
|               '' |  | ||||||
|             ] |  | ||||||
|             ++ lib.map (share: '' |  | ||||||
|               ${pkgs.proxmox-backup-client}/bin/proxmox-backup-client backup nfs.pxar:/mnt/${share} --ns $PBS_NAMESPACE --backup-id share-${share} --change-detection-mode=metadata --exclude "#recycle" |  | ||||||
|             '') inputs.secrets.lab.nas.backupShares |  | ||||||
|           ) |  | ||||||
|         ); |  | ||||||
|       in |       in | ||||||
|       [ |       [ | ||||||
|         "0 0 * * * ${script} " |         "0 0 * * * ${script} " | ||||||
|       ]; |       ]; | ||||||
|   }; |   }; | ||||||
| 
 |   fileSystems."/mnt/nas" = { | ||||||
|   # Mount filesystems |     device = "//${inputs.secrets.lab.nas.host}/Backup"; | ||||||
|   fileSystems = lib.listToAttrs ( |     fsType = "cifs"; | ||||||
|     lib.map (share: { |     options = [ "sec=krb5,credentials=${config.sops.secrets."smb-credentials".path}" ]; | ||||||
|       name = "/mnt/${share}"; |   }; | ||||||
|       value = { |  | ||||||
|         device = "//${inputs.secrets.lab.nas.host}/${share}"; |  | ||||||
|         fsType = "cifs"; |  | ||||||
|         options = [ |  | ||||||
|           "sec=krb5,credentials=${config.sops.secrets."smb-credentials".path}" |  | ||||||
|         ]; |  | ||||||
|       }; |  | ||||||
|     }) inputs.secrets.lab.nas.backupShares |  | ||||||
|   ); |  | ||||||
| } | } | ||||||
|  | |||||||
| @ -17,9 +17,10 @@ in | |||||||
| 
 | 
 | ||||||
|   config = mkIf cfg.enable { |   config = mkIf cfg.enable { | ||||||
|     # Enable GDM and Gnome |     # Enable GDM and Gnome | ||||||
|     services.displayManager.gdm.enable = true; |     services.xserver.enable = true; | ||||||
|     services.desktopManager.gnome.enable = true; |     services.xserver.displayManager.gdm.enable = true; | ||||||
|     services.gnome.core-apps.enable = false; |     services.xserver.desktopManager.gnome.enable = true; | ||||||
|  |     services.gnome.core-utilities.enable = false; | ||||||
|     services.gnome.games.enable = false; |     services.gnome.games.enable = false; | ||||||
|     services.gnome.core-developer-tools.enable = false; |     services.gnome.core-developer-tools.enable = false; | ||||||
|     environment.gnome.excludePackages = with pkgs; [ |     environment.gnome.excludePackages = with pkgs; [ | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user