feat(modules): add server archetype
feat: WIP add "absolutesolver" system and "cyn" user *wink wink* refactor: clean up some comments and remove empty lines
This commit is contained in:
		
							parent
							
								
									0c1476ce83
								
							
						
					
					
						commit
						57d067d501
					
				
					 10 changed files with 111 additions and 29 deletions
				
			
		
							
								
								
									
										50
									
								
								systems/x86_64-linux/absolutesolver/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										50
									
								
								systems/x86_64-linux/absolutesolver/default.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,50 @@ | |||
| { | ||||
|   lib, | ||||
|   pkgs, | ||||
|   inputs, | ||||
|   namespace, | ||||
|   config, | ||||
|   ... | ||||
| }: | ||||
| with lib; | ||||
| with lib.${namespace}; | ||||
| { | ||||
|   imports = [ | ||||
|     ./hardware-configuration.nix | ||||
|     inputs.hardware.nixosModules.common-pc-laptop | ||||
|     inputs.hardware.nixosModules.common-cpu-intel | ||||
|     inputs.hardware.nixosModules.common-pc-laptop-ssd | ||||
|   ]; | ||||
| 
 | ||||
|   # Set hostname | ||||
|   # Todo: move to common/networking module | ||||
|   networking.hostName = "absolutesolver"; | ||||
| 
 | ||||
|   # Set timezone. | ||||
|   time.timeZone = "Europe/Berlin"; | ||||
| 
 | ||||
|   # Enable docker | ||||
|   virtualisation.docker.enable = true; | ||||
| 
 | ||||
|   # Set system Type | ||||
|   puzzlevision.archetypes.server.enable = true; | ||||
| 
 | ||||
|   # Configure users. | ||||
|   snowfallorg.users.jo.admin = true; | ||||
|   users.users.jo.isNormalUser = true; | ||||
|   users.users.jo.extraGroups = [ "dialout" "docker" ]; | ||||
| 
 | ||||
|   # Configure home-manager | ||||
|   home-manager = { | ||||
|     backupFileExtension = "homeManagerBackup"; | ||||
|   }; | ||||
| 
 | ||||
|   # Provide users with some sane default packages. | ||||
|   environment.systemPackages = with pkgs; [ | ||||
|     ### General | ||||
|     nano | ||||
|     vim | ||||
|   ]; | ||||
| 
 | ||||
|   system.stateVersion = "24.05"; | ||||
| } | ||||
|  | @ -51,13 +51,12 @@ with lib.${namespace}; | |||
| 
 | ||||
|   # Configure users. | ||||
|   snowfallorg.users.jo.admin = true; | ||||
| 
 | ||||
|   users.users.jo.isNormalUser = true; | ||||
|   users.users.jo.extraGroups = [ "dialout" "docker" ]; | ||||
| 
 | ||||
|   # Configure home-manager | ||||
|   home-manager = { | ||||
|     backupFileExtension = "homeManagerBackupFile"; | ||||
|     backupFileExtension = "homeManagerBackup"; | ||||
|   }; | ||||
| 
 | ||||
|   # Provide users with some sane default packages. | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue