Add home-manager module
This commit is contained in:
		
							parent
							
								
									afa0baf28c
								
							
						
					
					
						commit
						019f1e9b62
					
				
					 6 changed files with 55 additions and 106 deletions
				
			
		|  | @ -22,20 +22,6 @@ | |||
|     letter         # Personal font | ||||
|   ]; | ||||
| 
 | ||||
|   users.users.tdpeuter = { | ||||
|     description = "Tibo De Peuter"; | ||||
|     isNormalUser = true; | ||||
|     extraGroups = [  | ||||
|       config.users.groups.keys.name | ||||
|       config.users.groups.networkmanager.name | ||||
|       config.users.groups.wheel.name | ||||
|     ]; | ||||
|     initialPassword = "ChangeMe"; | ||||
|     packages = with pkgs; [ | ||||
|       home-manager | ||||
|     ]; | ||||
|   }; | ||||
| 
 | ||||
|   # Select internationalisation properties. | ||||
|   i18n.defaultLocale = "en_GB.UTF-8"; | ||||
|   console = { | ||||
|  | @ -47,59 +33,4 @@ | |||
|     layout = "us"; | ||||
|     xkbVariant = "altgr-intl"; | ||||
|   }; | ||||
| 
 | ||||
|   home-manager.useGlobalPkgs = true; | ||||
| 
 | ||||
|   home-manager.users.tdpeuter = { pkgs, ... }: { | ||||
|     home = { | ||||
|       username = "tdpeuter"; | ||||
|       homeDirectory = "/home/tdpeuter"; | ||||
|       stateVersion = "23.05"; | ||||
| 
 | ||||
|       packages = with pkgs; [ | ||||
|         gnupg   | ||||
| 
 | ||||
|         icosystem | ||||
|       ]; | ||||
|     }; | ||||
| 
 | ||||
|     programs = { | ||||
|       home-manager.enable = true; | ||||
|       gpg.enable = true; | ||||
|     }; | ||||
| 
 | ||||
|     services = { | ||||
|       gpg-agent = { | ||||
|         enable = true; | ||||
|         pinentryFlavor = "qt"; | ||||
|       }; | ||||
| 
 | ||||
|     }; | ||||
| 
 | ||||
|     xdg.mimeApps = | ||||
|       let | ||||
|         browser = "firefox.desktop"; | ||||
|         image-viewer = "nsxiv.desktop"; | ||||
|       in { | ||||
|       enable = true; | ||||
| 
 | ||||
|       defaultApplications = { | ||||
|         "application/pdf" = "org.pwmt.zathura-pdf-mupdf.desktop"; | ||||
|         "application/x-extension-htm" = browser; | ||||
|         "application/x-extension-html" = browser; | ||||
|         "application/x-extension-shtml" = browser; | ||||
|         "application/x-extension-xht" = browser; | ||||
|         "application/x-extension-xhtml" = browser; | ||||
|         "application/xhtml+xml" = browser; | ||||
|         "image/jpeg" = image-viewer; | ||||
|         "image/png" = image-viewer; | ||||
|         "image/webp" = image-viewer; | ||||
|         "text/html" = browser; | ||||
|         "x-scheme-handler/chrome" = browser; | ||||
|         "x-scheme-handler/http" = browser; | ||||
|         "x-scheme-handler/https" = browser; | ||||
|       }; | ||||
|     }; | ||||
|   }; | ||||
| 
 | ||||
| } | ||||
|  |  | |||
|  | @ -9,23 +9,4 @@ | |||
|     ./vim | ||||
|     ./zellij | ||||
|   ]; | ||||
| 
 | ||||
|   home-manager.users.tdpeuter = { pkgs, ... }: { | ||||
|     home.packages = with pkgs; [ | ||||
|       direnv | ||||
|       duf | ||||
|       lynx | ||||
|       nsxiv | ||||
|       w3m | ||||
|       wget | ||||
|       zenith-nvidia | ||||
|     ]; | ||||
| 
 | ||||
|     programs = { | ||||
|       direnv = { | ||||
|         enable = true; | ||||
|         nix-direnv.enable = true; | ||||
|       }; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue