forked from fabian/nix
		
	move to standard trivionomicon flake.nix
This commit is contained in:
		
							parent
							
								
									d33b712fc1
								
							
						
					
					
						commit
						a5cc2f536d
					
				
					 2 changed files with 21 additions and 116 deletions
				
			
		
							
								
								
									
										17
									
								
								flake.lock
									
										
									
										generated
									
									
									
								
							
							
						
						
									
										17
									
								
								flake.lock
									
										
									
										generated
									
									
									
								
							|  | @ -571,19 +571,14 @@ | ||||||
|         ] |         ] | ||||||
|       }, |       }, | ||||||
|       "locked": { |       "locked": { | ||||||
|         "lastModified": 1754513973, |         "path": "./trivionomicon", | ||||||
|         "narHash": "sha256-7+gk+pQiMILfjajg+S0ceAJkl5ldi7m5WTqlEnmS7hA=", |         "type": "path" | ||||||
|         "ref": "master", |  | ||||||
|         "rev": "c651b8c4706cfc750303db12ae19e58164a6bebb", |  | ||||||
|         "revCount": 28, |  | ||||||
|         "type": "git", |  | ||||||
|         "url": "https://git.posixlycorrect.com/deepState/trivionomicon" |  | ||||||
|       }, |       }, | ||||||
|       "original": { |       "original": { | ||||||
|         "ref": "master", |         "path": "./trivionomicon", | ||||||
|         "type": "git", |         "type": "path" | ||||||
|         "url": "https://git.posixlycorrect.com/deepState/trivionomicon" |       }, | ||||||
|       } |       "parent": [] | ||||||
|     }, |     }, | ||||||
|     "unstable": { |     "unstable": { | ||||||
|       "locked": { |       "locked": { | ||||||
|  |  | ||||||
							
								
								
									
										118
									
								
								flake.nix
									
										
									
									
									
								
							
							
						
						
									
										118
									
								
								flake.nix
									
										
									
									
									
								
							|  | @ -18,7 +18,7 @@ | ||||||
|     homepage.url = "git+https://git.posixlycorrect.com/fabian/homepage.git?ref=master"; |     homepage.url = "git+https://git.posixlycorrect.com/fabian/homepage.git?ref=master"; | ||||||
| 
 | 
 | ||||||
|     trivionomicon = { |     trivionomicon = { | ||||||
|       url = "git+https://git.posixlycorrect.com/deepState/trivionomicon?ref=master"; |       url = "./trivionomicon"; | ||||||
|       inputs.nixpkgs.follows = "nixpkgs"; |       inputs.nixpkgs.follows = "nixpkgs"; | ||||||
|     }; |     }; | ||||||
| 
 | 
 | ||||||
|  | @ -33,112 +33,22 @@ | ||||||
|     }; |     }; | ||||||
|   }; |   }; | ||||||
| 
 | 
 | ||||||
|   outputs = flakes @ { |   outputs = flakes: | ||||||
|     self, |     flakes.trivionomicon.lib.mkSystemFlake { | ||||||
|     nixpkgs, |       inherit flakes; | ||||||
|     unstable, | 
 | ||||||
|     home-manager, |  | ||||||
|     nur, |  | ||||||
|     impermanence, |  | ||||||
|     hm-isolation, |  | ||||||
|     nixGL, |  | ||||||
|     flake-utils, |  | ||||||
|     vpsadminos, |  | ||||||
|     homepage, |  | ||||||
|     mediawikiSkinCitizen, |  | ||||||
|     authentik-nix, |  | ||||||
|     trivionomicon, |  | ||||||
|   }: let |  | ||||||
|       system = "x86_64-linux"; |       system = "x86_64-linux"; | ||||||
|  |       doctrinePrefix = "local"; | ||||||
| 
 | 
 | ||||||
|     importPkgs = flake: |       paths = { | ||||||
|       import flake { |         # localOverlay = "pkgs"; | ||||||
|         inherit system; |         nixpkgsConfig = "pkgs/config"; | ||||||
| 
 | 
 | ||||||
|         config = import ./pkgs/config nixpkgs.lib; |         nixosSource = "sys"; | ||||||
|         overlays = [ |         nixosPlatforms = "sys/platform"; | ||||||
|           self.overlays.default | 
 | ||||||
|           nur.overlays.default |         hmSource = "home"; | ||||||
|           nixGL.overlay |         hmPlatforms = "home/platform"; | ||||||
|           trivionomicon.overlays.default |  | ||||||
|         ]; |  | ||||||
|       }; |       }; | ||||||
| 
 |  | ||||||
|     pkgs = importPkgs nixpkgs; |  | ||||||
| 
 |  | ||||||
|     inherit (pkgs.local.lib) importAll; |  | ||||||
| 
 |  | ||||||
|     local = final: prev: import ./pkgs {inherit final prev flakes;}; |  | ||||||
|   in |  | ||||||
|     with pkgs.lib; { |  | ||||||
|       formatter.${system} = pkgs.alejandra; |  | ||||||
|       packages.${system} = pkgs.local; |  | ||||||
| 
 |  | ||||||
|       overlays.default = final: prev: let |  | ||||||
|         locals = local final prev; |  | ||||||
|       in |  | ||||||
|         locals.override |  | ||||||
|         // { |  | ||||||
|           local = locals; |  | ||||||
|           unstable = importPkgs unstable; |  | ||||||
|         }; |  | ||||||
| 
 |  | ||||||
|       nixosConfigurations = let |  | ||||||
|         nixosSystem = {modules}: |  | ||||||
|           makeOverridable nixpkgs.lib.nixosSystem { |  | ||||||
|             inherit modules pkgs system; |  | ||||||
| 
 |  | ||||||
|             specialArgs = { |  | ||||||
|               inherit flakes; |  | ||||||
|               doctrine = import "${trivionomicon}/doctrine" { |  | ||||||
|                 inherit pkgs; |  | ||||||
|                 namespace = "sys"; |  | ||||||
|               }; |  | ||||||
|             }; |  | ||||||
|           }; |  | ||||||
| 
 |  | ||||||
|         hostConfig = host: |  | ||||||
|           nixosSystem { |  | ||||||
|             modules = [ |  | ||||||
|               ./sys |  | ||||||
|               host |  | ||||||
|             ]; |  | ||||||
|           }; |  | ||||||
|       in |  | ||||||
|         mapAttrs (_: hostConfig) (importAll {root = ./sys/platforms;}); |  | ||||||
| 
 |  | ||||||
|       homeConfigurations = let |  | ||||||
|         registry = {...}: { |  | ||||||
|           config.nix.registry = |  | ||||||
|             mapAttrs (_: value: { |  | ||||||
|               flake = value; |  | ||||||
|             }) |  | ||||||
|             flakes; |  | ||||||
|         }; |  | ||||||
| 
 |  | ||||||
|         home = platform: |  | ||||||
|           home-manager.lib.homeManagerConfiguration { |  | ||||||
|             inherit pkgs; |  | ||||||
| 
 |  | ||||||
|             modules = [ |  | ||||||
|               ./home |  | ||||||
|               platform |  | ||||||
|               registry |  | ||||||
|               hm-isolation.homeManagerModule |  | ||||||
|             ]; |  | ||||||
| 
 |  | ||||||
|             extraSpecialArgs = { |  | ||||||
|               inherit flakes; |  | ||||||
|               doctrine = import "${trivionomicon}/doctrine" { |  | ||||||
|                 inherit pkgs; |  | ||||||
|                 namespace = "hm"; |  | ||||||
|               }; |  | ||||||
|             }; |  | ||||||
|           }; |  | ||||||
| 
 |  | ||||||
|         platformHome = name: platform: |  | ||||||
|           nameValuePair name (home platform); |  | ||||||
|       in |  | ||||||
|         mapAttrs' platformHome (importAll {root = ./home/platforms;}); |  | ||||||
|     }; |     }; | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue