Export desk-os as nixosModule
This commit is contained in:
		
							parent
							
								
									7a8eec026b
								
							
						
					
					
						commit
						889db08cc5
					
				@ -41,6 +41,10 @@
 | 
				
			|||||||
      };
 | 
					      };
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    nixosModules = {
 | 
				
			||||||
 | 
					      desk-os = import ./modules/desk-os;
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    packages = forAllSystems (system: let
 | 
					    packages = forAllSystems (system: let
 | 
				
			||||||
      pkgs = nixpkgsFor.${system};
 | 
					      pkgs = nixpkgsFor.${system};
 | 
				
			||||||
    in {
 | 
					    in {
 | 
				
			||||||
 | 
				
			|||||||
@ -55,16 +55,22 @@ flake = f"""
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  inputs = {{
 | 
					  inputs = {{
 | 
				
			||||||
    nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
 | 
					    nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
 | 
				
			||||||
 | 
					    desk-os = {{
 | 
				
			||||||
 | 
					      url = "github:nixup-io/desk-os";
 | 
				
			||||||
 | 
					      inputs.nixpkgs.follows = "nixpkgs";
 | 
				
			||||||
 | 
					    }};
 | 
				
			||||||
  }};
 | 
					  }};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  outputs = {{
 | 
					  outputs = {{
 | 
				
			||||||
    self,
 | 
					    self,
 | 
				
			||||||
    nixpkgs,
 | 
					    nixpkgs,
 | 
				
			||||||
 | 
					    desk-os,
 | 
				
			||||||
  }} @ inputs: {{
 | 
					  }} @ inputs: {{
 | 
				
			||||||
    nixosConfigurations.{random_hostname} = nixpkgs.lib.nixosSystem {{
 | 
					    nixosConfigurations.{random_hostname} = nixpkgs.lib.nixosSystem {{
 | 
				
			||||||
      system = "x86_64-linux";
 | 
					      system = "x86_64-linux";
 | 
				
			||||||
      specialArgs = {{inherit inputs;}};
 | 
					      specialArgs = {{inherit inputs;}};
 | 
				
			||||||
      modules = [
 | 
					      modules = [
 | 
				
			||||||
 | 
					        desk-os.nixosModules.desk-os
 | 
				
			||||||
        ./configuration.nix
 | 
					        ./configuration.nix
 | 
				
			||||||
      ];
 | 
					      ];
 | 
				
			||||||
    }};
 | 
					    }};
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user