| 
									
										
										
										
											2023-11-07 22:00:00 +01:00
										 |  |  | { config, ... }: | 
					
						
							| 
									
										
										
										
											2020-11-16 21:14:46 +01:00
										 |  |  | { | 
					
						
							| 
									
										
										
										
											2022-11-30 14:59:18 +01:00
										 |  |  |   sops.secrets."users/felix/password".neededForUsers = true; | 
					
						
							|  |  |  |   sops.secrets."users/felix/password" = { }; | 
					
						
							| 
									
										
										
										
											2022-06-06 11:47:50 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-11-16 21:14:46 +01:00
										 |  |  |   users.users.felix = { | 
					
						
							|  |  |  |     isNormalUser = true; | 
					
						
							|  |  |  |     home = "/home/felix"; | 
					
						
							|  |  |  |     group = "felix"; | 
					
						
							|  |  |  |     extraGroups = [ | 
					
						
							| 
									
										
										
										
											2022-12-05 22:54:25 +01:00
										 |  |  |       "adbusers" # adb control | 
					
						
							|  |  |  |       "audio" # sound control | 
					
						
							|  |  |  |       "dialout" # serial-console | 
					
						
							|  |  |  |       "docker" # usage of `docker` socket | 
					
						
							|  |  |  |       "input" # mouse control | 
					
						
							|  |  |  |       "libvirtd" # kvm control | 
					
						
							|  |  |  |       "networkmanager" # wireless configuration | 
					
						
							|  |  |  |       "podman" # usage of `podman` socket | 
					
						
							|  |  |  |       "video" # screen control | 
					
						
							|  |  |  |       "wheel" # `sudo` for the user. | 
					
						
							| 
									
										
										
										
											2020-11-16 21:14:46 +01:00
										 |  |  |     ]; | 
					
						
							| 
									
										
										
										
											2023-11-13 23:42:40 +01:00
										 |  |  |     hashedPasswordFile = config.sops.secrets."users/felix/password".path; | 
					
						
							| 
									
										
										
										
											2024-01-18 22:40:07 +01:00
										 |  |  |     openssh.authorizedKeys.keys = [ | 
					
						
							|  |  |  |       "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOFx6OLwL9MbkD3mnMsv+xrzZHN/rwCTgVs758SCLG0h felix@thinkman" | 
					
						
							|  |  |  |       "no-touch-required sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIHhjrfqyOS+M9ATSTVr9JXPERBXOow/ZmkWICjbtbEgXAAAAFHNzaDpmZWxpeC1wZXJzb25hbC0x ssh:felix-personal-1" | 
					
						
							|  |  |  |       "no-touch-required sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIMHExVOrEevQ+bwrrW3cXCO7Y/SyA+7wG+b6ZvAWY4MJAAAAFHNzaDpmZWxpeC1wZXJzb25hbC0y ssh:felix-personal-2" | 
					
						
							|  |  |  |     ]; | 
					
						
							| 
									
										
										
										
											2020-11-16 21:14:46 +01:00
										 |  |  |   }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   users.groups.felix = { | 
					
						
							|  |  |  |     gid = 1000; | 
					
						
							|  |  |  |   }; | 
					
						
							|  |  |  | } |