Add file encryption and flake-utils
This commit is contained in:
		
							parent
							
								
									a5f009a156
								
							
						
					
					
						commit
						ee6c89ec7f
					
				
					 3 changed files with 121 additions and 89 deletions
				
			
		
							
								
								
									
										92
									
								
								nixos/flake.lock
									
										
									
										generated
									
									
									
								
							
							
						
						
									
										92
									
								
								nixos/flake.lock
									
										
									
										generated
									
									
									
								
							|  | @ -1,18 +1,58 @@ | ||||||
| { | { | ||||||
|   "nodes": { |   "nodes": { | ||||||
|  |     "devshell": { | ||||||
|  |       "inputs": { | ||||||
|  |         "flake-utils": [ | ||||||
|  |           "flake-utils" | ||||||
|  |         ], | ||||||
|  |         "nixpkgs": [ | ||||||
|  |           "nixpkgs" | ||||||
|  |         ] | ||||||
|  |       }, | ||||||
|  |       "locked": { | ||||||
|  |         "lastModified": 1678957337, | ||||||
|  |         "narHash": "sha256-Gw4nVbuKRdTwPngeOZQOzH/IFowmz4LryMPDiJN/ah4=", | ||||||
|  |         "owner": "numtide", | ||||||
|  |         "repo": "devshell", | ||||||
|  |         "rev": "3e0e60ab37cd0bf7ab59888f5c32499d851edb47", | ||||||
|  |         "type": "github" | ||||||
|  |       }, | ||||||
|  |       "original": { | ||||||
|  |         "owner": "numtide", | ||||||
|  |         "repo": "devshell", | ||||||
|  |         "type": "github" | ||||||
|  |       } | ||||||
|  |     }, | ||||||
|  |     "flake-utils": { | ||||||
|  |       "locked": { | ||||||
|  |         "lastModified": 1678901627, | ||||||
|  |         "narHash": "sha256-U02riOqrKKzwjsxc/400XnElV+UtPUQWpANPlyazjH0=", | ||||||
|  |         "owner": "numtide", | ||||||
|  |         "repo": "flake-utils", | ||||||
|  |         "rev": "93a2b84fc4b70d9e089d029deacc3583435c2ed6", | ||||||
|  |         "type": "github" | ||||||
|  |       }, | ||||||
|  |       "original": { | ||||||
|  |         "owner": "numtide", | ||||||
|  |         "repo": "flake-utils", | ||||||
|  |         "type": "github" | ||||||
|  |       } | ||||||
|  |     }, | ||||||
|     "home-manager": { |     "home-manager": { | ||||||
|       "inputs": { |       "inputs": { | ||||||
|         "nixpkgs": [ |         "nixpkgs": [ | ||||||
|           "nixpkgs" |           "nixpkgs" | ||||||
|         ], |         ], | ||||||
|         "utils": "utils" |         "utils": [ | ||||||
|  |           "flake-utils" | ||||||
|  |         ] | ||||||
|       }, |       }, | ||||||
|       "locked": { |       "locked": { | ||||||
|         "lastModified": 1678285456, |         "lastModified": 1679067101, | ||||||
|         "narHash": "sha256-2rIk5OFGQmoFX1MWntKGPVCZvy5yQMX3ZCYz7i8+yb0=", |         "narHash": "sha256-tMI1inGT9u4KWQml0w30dhWqQPlth1e9K/68sfDkEQA=", | ||||||
|         "owner": "nix-community", |         "owner": "nix-community", | ||||||
|         "repo": "home-manager", |         "repo": "home-manager", | ||||||
|         "rev": "b0be47978de5cfd729a79c3f57ace4c86364ff45", |         "rev": "9154cd519a8942728038819682d6b3ff33f321bb", | ||||||
|         "type": "github" |         "type": "github" | ||||||
|       }, |       }, | ||||||
|       "original": { |       "original": { | ||||||
|  | @ -24,11 +64,11 @@ | ||||||
|     }, |     }, | ||||||
|     "nixpkgs": { |     "nixpkgs": { | ||||||
|       "locked": { |       "locked": { | ||||||
|         "lastModified": 1678703398, |         "lastModified": 1679318992, | ||||||
|         "narHash": "sha256-Y1mW3dBsoWLHpYm+UIHb5VZ7rx024NNHaF16oZBx++o=", |         "narHash": "sha256-uoj5Oy6hruIHuxzfQZtcalObe5kPrX9v+ClUMFEOzmE=", | ||||||
|         "owner": "NixOS", |         "owner": "NixOS", | ||||||
|         "repo": "nixpkgs", |         "repo": "nixpkgs", | ||||||
|         "rev": "67f26c1cfc5d5783628231e776a81c1ade623e0b", |         "rev": "e2c97799da5f5cd87adfa5017fba971771e123ef", | ||||||
|         "type": "github" |         "type": "github" | ||||||
|       }, |       }, | ||||||
|       "original": { |       "original": { | ||||||
|  | @ -37,40 +77,32 @@ | ||||||
|         "type": "indirect" |         "type": "indirect" | ||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|     "nur": { |  | ||||||
|       "locked": { |  | ||||||
|         "lastModified": 1678788009, |  | ||||||
|         "narHash": "sha256-O9nMPCAly/lUJHqtz8IAa8sf4uuB/6arHDEyQoRXTyw=", |  | ||||||
|         "owner": "nix-community", |  | ||||||
|         "repo": "NUR", |  | ||||||
|         "rev": "a93973a3dd17284678ad6691dd38246b6ea3bf4f", |  | ||||||
|         "type": "github" |  | ||||||
|       }, |  | ||||||
|       "original": { |  | ||||||
|         "owner": "nix-community", |  | ||||||
|         "repo": "NUR", |  | ||||||
|         "type": "github" |  | ||||||
|       } |  | ||||||
|     }, |  | ||||||
|     "root": { |     "root": { | ||||||
|       "inputs": { |       "inputs": { | ||||||
|  |         "devshell": "devshell", | ||||||
|  |         "flake-utils": "flake-utils", | ||||||
|         "home-manager": "home-manager", |         "home-manager": "home-manager", | ||||||
|         "nixpkgs": "nixpkgs", |         "nixpkgs": "nixpkgs", | ||||||
|         "nur": "nur" |         "utils": "utils" | ||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|     "utils": { |     "utils": { | ||||||
|  |       "inputs": { | ||||||
|  |         "flake-utils": [ | ||||||
|  |           "flake-utils" | ||||||
|  |         ] | ||||||
|  |       }, | ||||||
|       "locked": { |       "locked": { | ||||||
|         "lastModified": 1667395993, |         "lastModified": 1657226504, | ||||||
|         "narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=", |         "narHash": "sha256-GIYNjuq4mJlFgqKsZ+YrgzWm0IpA4axA3MCrdKYj7gs=", | ||||||
|         "owner": "numtide", |         "owner": "gytis-ivaskevicius", | ||||||
|         "repo": "flake-utils", |         "repo": "flake-utils-plus", | ||||||
|         "rev": "5aed5285a952e0b949eb3ba02c12fa4fcfef535f", |         "rev": "2bf0f91643c2e5ae38c1b26893ac2927ac9bd82a", | ||||||
|         "type": "github" |         "type": "github" | ||||||
|       }, |       }, | ||||||
|       "original": { |       "original": { | ||||||
|         "owner": "numtide", |         "owner": "gytis-ivaskevicius", | ||||||
|         "repo": "flake-utils", |         "repo": "flake-utils-plus", | ||||||
|         "type": "github" |         "type": "github" | ||||||
|       } |       } | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  | @ -1,56 +1,65 @@ | ||||||
| { | { | ||||||
|   description = "System configuration"; |   description = "System configuration of my machines using flakes"; | ||||||
|   |   | ||||||
|   inputs = { |   inputs = { | ||||||
|     home-manager.url = "github:nix-community/home-manager/release-22.11"; |  | ||||||
|     home-manager.inputs.nixpkgs.follows = "nixpkgs"; |  | ||||||
|     nixpkgs.url = "nixpkgs/nixos-22.11"; |     nixpkgs.url = "nixpkgs/nixos-22.11"; | ||||||
|     nur.url = "github:nix-community/NUR"; |  | ||||||
|   }; |  | ||||||
| 
 |  | ||||||
|   outputs = { self, nixpkgs, home-manager, nur, ... }: |  | ||||||
|   let |  | ||||||
|     system = "x86_64-linux"; # Use flake tools? |  | ||||||
|      |      | ||||||
|     pkgs = import nixpkgs { |     devshell = { | ||||||
|       inherit system; |       url = "github:numtide/devshell"; | ||||||
|       config.allowUnfree = true; |       inputs = { | ||||||
|     }; |         flake-utils.follows = "flake-utils"; | ||||||
| 
 |         nixpkgs.follows = "nixpkgs"; | ||||||
|     lib = nixpkgs.lib; |  | ||||||
|   in rec { |  | ||||||
|     homeManagerConfigurations = { |  | ||||||
|       tdpeuter = home-manager.lib.homeManagerConfiguration { |  | ||||||
|         pkgs = import nixpkgs { |  | ||||||
|           inherit system; |  | ||||||
|           config.allowUnfree = true; |  | ||||||
|         }; |  | ||||||
|         modules = [ |  | ||||||
|           ./users/tdpeuter/home.nix |  | ||||||
|           { |  | ||||||
|             home = { |  | ||||||
|               username = "tdpeuter"; |  | ||||||
|               homeDirectory = "/home/tdpeuter"; |  | ||||||
|             }; |  | ||||||
|           } |  | ||||||
|         ]; |  | ||||||
|       }; |       }; | ||||||
|     }; |     }; | ||||||
| 
 |     flake-utils.url = "github:numtide/flake-utils"; | ||||||
|     nixosConfigurations = { |     home-manager = { | ||||||
|       Tibo-NixTest = lib.nixosSystem { # Use hostname |       url = "github:nix-community/home-manager/release-22.11"; | ||||||
|         inherit system; |       inputs = { | ||||||
|         modules = [ |         nixpkgs.follows = "nixpkgs"; | ||||||
|           ./hosts/test |         utils.follows = "flake-utils"; | ||||||
|           nur.nixosModules.nur |  | ||||||
|         ]; |  | ||||||
|       }; |  | ||||||
|       Tibo-NixFatso = lib.nixosSystem { |  | ||||||
|         inherit system; |  | ||||||
|         modules = [ |  | ||||||
|           ./hosts/fatso |  | ||||||
|         ]; |  | ||||||
|       }; |       }; | ||||||
|     }; |     }; | ||||||
|  |     utils = { | ||||||
|  |       url = "github:gytis-ivaskevicius/flake-utils-plus"; | ||||||
|  |       inputs.flake-utils.follows = "flake-utils"; | ||||||
|  |     }; | ||||||
|   }; |   }; | ||||||
|  | 
 | ||||||
|  |   outputs = inputs@{ | ||||||
|  |     self, nixpkgs, | ||||||
|  |     devshell, flake-utils, home-manager, utils, | ||||||
|  |     ... }: | ||||||
|  |     let | ||||||
|  |       system = "x86_64-linux"; | ||||||
|  |     in | ||||||
|  |     utils.lib.mkFlake { | ||||||
|  |       inherit self inputs; | ||||||
|  |       homeManagerConfigurations = { | ||||||
|  |         tdpeuter = home-manager.lib.homeManagerConfiguration { | ||||||
|  |           pkgs = import nixpkgs { | ||||||
|  |             inherit system; | ||||||
|  |             config.allowUnfree = true; | ||||||
|  |           }; | ||||||
|  |           modules = [ | ||||||
|  |             ./users/tdpeuter/home.nix | ||||||
|  |             { | ||||||
|  |               home = { | ||||||
|  |                 username = "tdpeuter"; | ||||||
|  |                 homeDirectory = "/home/tdpeuter"; | ||||||
|  |               }; | ||||||
|  |             } | ||||||
|  |           ]; | ||||||
|  |         }; | ||||||
|  |       }; | ||||||
|  |       nixosConfigurations = { | ||||||
|  |         Tibo-NixFat = nixpkgs.lib.nixosSystem { | ||||||
|  |           inherit system; | ||||||
|  |           modules = [ ./hosts/Tibo-NixFat ]; | ||||||
|  |         }; | ||||||
|  |         Tibo-NixTest = nixpkgs.lib.nixossSytem { | ||||||
|  |           inherit system; | ||||||
|  |           modules = [ ./hosts/Tibo-NixTest ]; | ||||||
|  |         }; | ||||||
|  |       };     | ||||||
|  |     }; | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -23,34 +23,25 @@ | ||||||
|    |    | ||||||
|     packages = with pkgs; [ |     packages = with pkgs; [ | ||||||
|       alacritty |       alacritty | ||||||
|  |       discord | ||||||
|       duf |       duf | ||||||
|       git-crypt |       git-crypt | ||||||
|       gnupg |       gnupg | ||||||
|       libreoffice-fresh-unwrapped |       libreoffice-fresh-unwrapped | ||||||
|       lynx |       lynx | ||||||
|       w3m |       mattermost-desktop | ||||||
|       nextcloud-client |       nextcloud-client | ||||||
|       pinentry_qt |       pinentry_qt | ||||||
|  |       spotify | ||||||
|       vifm |       vifm | ||||||
|  |       vim | ||||||
|  |       w3m | ||||||
|       zathura |       zathura | ||||||
|       zellij |       zellij | ||||||
|       zenith |       zenith | ||||||
|        |        | ||||||
|       # Webdevelopment |       # Webdevelopment | ||||||
|       jetbrains.webstorm |       jetbrains.webstorm | ||||||
|       nodejs |  | ||||||
|       nodePackages_latest.npm |  | ||||||
|       mongodb-6_0 |  | ||||||
|       mongosh |  | ||||||
|       mongodb-tools |  | ||||||
|       mongodb-compass |  | ||||||
| 
 |  | ||||||
|       # Multimedia |  | ||||||
|       jetbrains.pycharm-professional |  | ||||||
|       python39 |  | ||||||
|       python39Packages.pip |  | ||||||
|       gcc |  | ||||||
|       cmake |  | ||||||
| 
 | 
 | ||||||
|       # Software Engineering Lab 1 |       # Software Engineering Lab 1 | ||||||
|       android-studio |       android-studio | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue