Modularise user config
This commit is contained in:
		
							parent
							
								
									3ca50c6d17
								
							
						
					
					
						commit
						b83c95b8b6
					
				
					 4 changed files with 22 additions and 24 deletions
				
			
		|  | @ -4,6 +4,7 @@ | |||
|   imports = | ||||
|     [ | ||||
|       ./hardware-configuration.nix | ||||
|       ../../users/qenya.nix | ||||
|       ./home.nix | ||||
|     ]; | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,22 +1,6 @@ | |||
| { config, lib, pkgs, ... }: | ||||
| 
 | ||||
| { | ||||
|   users.users.qenya = { | ||||
|     isNormalUser = true; | ||||
|     home = "/home/qenya"; | ||||
|     extraGroups = [ | ||||
|       "wheel" # sudo | ||||
|       "networkmanager" # UI wifi configuration | ||||
|       "dialout" # access to serial ports | ||||
|     ]; | ||||
|     packages = with pkgs; [ | ||||
|       # TODO: move these to home-manager | ||||
|       bitwarden | ||||
|       firefox | ||||
|       tor-browser-bundle-bin | ||||
|     ]; | ||||
|   }; | ||||
| 
 | ||||
|   home-manager.users.qenya = { pkgs, ... }: { | ||||
|     home.homeDirectory = config.users.users.qenya.home; | ||||
| 
 | ||||
|  | @ -25,6 +9,9 @@ | |||
|       htop | ||||
|       tree | ||||
| 
 | ||||
|       bitwarden | ||||
|       tor-browser-bundle-bin | ||||
| 
 | ||||
|       nil | ||||
|       nixpkgs-fmt | ||||
|     ]; | ||||
|  | @ -52,6 +39,7 @@ | |||
|     home.file.".background-image".source = ./background-image.jpg; | ||||
| 
 | ||||
|     programs.chromium.enable = true; | ||||
|     programs.firefox.enable = true; | ||||
| 
 | ||||
|     programs.git = { | ||||
|       enable = true; | ||||
|  |  | |||
|  | @ -4,6 +4,7 @@ | |||
|   imports = | ||||
|     [ | ||||
|       ./hardware-configuration.nix | ||||
|       ../../users/qenya.nix | ||||
|     ]; | ||||
| 
 | ||||
|   boot.loader.systemd-boot.enable = true; | ||||
|  | @ -14,14 +15,6 @@ | |||
| 
 | ||||
|   time.timeZone = "Etc/UTC"; | ||||
| 
 | ||||
|   users.users.qenya = { | ||||
|     isNormalUser = true; | ||||
|     extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user. | ||||
|     openssh.authorizedKeys.keys = [ | ||||
|       "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJEmkV9arotms79lJPsLHkdzAac4eu3pYS08ym0sB/on qenya@tohru" | ||||
|     ]; | ||||
|   }; | ||||
| 
 | ||||
|   services.openssh = { | ||||
|     enable = true; | ||||
|     settings = { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue