buncha changes
This commit is contained in:
		
							parent
							
								
									3bff766ee2
								
							
						
					
					
						commit
						e2086b228b
					
				
							
								
								
									
										32
									
								
								modules/nixos/cosmic-desktop/default.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								modules/nixos/cosmic-desktop/default.nix
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,32 @@ | |||||||
|  | { config | ||||||
|  | , lib | ||||||
|  | , inputs | ||||||
|  | , pkgs | ||||||
|  | , ... | ||||||
|  | }: | ||||||
|  | let | ||||||
|  |   inherit (lib) mkEnableOption mkIf; | ||||||
|  |   inherit (lib.my-namespace) disabled enabled; | ||||||
|  | 
 | ||||||
|  |   cfg = config.my-namespace.cosmic-desktop; | ||||||
|  |   # moduleImports = { | ||||||
|  |   #   "enabled" = [inputs.nixos-cosmic.nixosModules.default]; | ||||||
|  |   #   "disabled" = []; | ||||||
|  |   # }; | ||||||
|  |   # optionalImports = { imports = []; }; | ||||||
|  | in | ||||||
|  | { | ||||||
|  |   options.my-namespace.cosmic-desktop = { | ||||||
|  |     enable = mkEnableOption "Enable nvidia"; | ||||||
|  |   }; | ||||||
|  |   imports = [ inputs.nixos-cosmic.nixosModules.default ]; | ||||||
|  |   config = mkIf cfg.enable { | ||||||
|  |     nix.settings = { | ||||||
|  |       substituters = [ "https://cosmic.cachix.org/" ]; | ||||||
|  |       trusted-public-keys = [ "cosmic.cachix.org-1:Dya9IyXD4xdBehWjrkPv6rtxpmMdRel02smYzA85dPE=" ]; | ||||||
|  |     }; | ||||||
|  |      | ||||||
|  |     services.desktopManager.cosmic.enable = true; | ||||||
|  |     services.displayManager.cosmic-greeter.enable = true; | ||||||
|  |   }; | ||||||
|  | } | ||||||
| @ -47,6 +47,7 @@ | |||||||
| 
 | 
 | ||||||
|   # Enable the GNOME Desktop Environment. |   # Enable the GNOME Desktop Environment. | ||||||
|   services.xserver.displayManager.gdm.enable = true;  |   services.xserver.displayManager.gdm.enable = true;  | ||||||
|  |   services.xserver.displayManager.defaultSession = "gnome"; | ||||||
|   # services.xserver.displayManager.lightdm.enable = true; |   # services.xserver.displayManager.lightdm.enable = true; | ||||||
|   # services.xserver.displayManager.autoLogin.enable = true; |   # services.xserver.displayManager.autoLogin.enable = true; | ||||||
|   # services.xserver.displayManager.autoLogin.user = "andreas"; |   # services.xserver.displayManager.autoLogin.user = "andreas"; | ||||||
| @ -100,6 +101,7 @@ | |||||||
|   environment.systemPackages = with pkgs; [ |   environment.systemPackages = with pkgs; [ | ||||||
|   #  vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. |   #  vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. | ||||||
|   #  wget |   #  wget | ||||||
|  |     pkgs.gnome3.gnome-tweaks | ||||||
|   ]; |   ]; | ||||||
| 
 | 
 | ||||||
|   # Some programs need SUID wrappers, can be configured further or are |   # Some programs need SUID wrappers, can be configured further or are | ||||||
|  | |||||||
| @ -26,6 +26,7 @@ | |||||||
| , ... | , ... | ||||||
| }: | }: | ||||||
| let | let | ||||||
|  |   inherit (lib.my-namespace) enabled; | ||||||
|   inherit pkgs; |   inherit pkgs; | ||||||
|   installedPackages = lib.my-namespace.mkPackages pkgs; |   installedPackages = lib.my-namespace.mkPackages pkgs; | ||||||
| in | in | ||||||
| @ -45,21 +46,26 @@ in | |||||||
|         description = "Andreas Schaafsma"; |         description = "Andreas Schaafsma"; | ||||||
|         extraGroups = [ "networkmanager" "wheel" ]    ; |         extraGroups = [ "networkmanager" "wheel" ]    ; | ||||||
|         packages = with pkgs; [ |         packages = with pkgs; [ | ||||||
|  |           # Packages from inputs | ||||||
|  |           inputs.game-of-life.packages.x86_64-linux.default | ||||||
|  |           inputs.zen-browser.packages.x86_64-linux.default | ||||||
|  |           inputs.nixos-cosmic | ||||||
|  | 
 | ||||||
|           flatpak |           flatpak | ||||||
|           gnome-software |           gnome-software | ||||||
|  |           gnomeExtensions.pop-shell | ||||||
|           soundwireserver |           soundwireserver | ||||||
|           vscode   |           vscode   | ||||||
|           spotify |           spotify | ||||||
|           appimage-run   |           appimage-run   | ||||||
|           inputs.game-of-life.packages.x86_64-linux.default |  | ||||||
|           inputs.zen-browser.packages.x86_64-linux.default |  | ||||||
|           inputs.nixos-cosmic |  | ||||||
|           minecraft |           minecraft | ||||||
|           trilium-desktop |           trilium-desktop | ||||||
|           terraform |           terraform | ||||||
|           #  thunderbird |           #  thunderbird | ||||||
|         ]; |         ]; | ||||||
|       }; |       }; | ||||||
|  | 
 | ||||||
|  |       my-namespace.cosmic-desktop.enable = false; | ||||||
|       # lib.my-namespace.home.stream-tools.enable = true; |       # lib.my-namespace.home.stream-tools.enable = true; | ||||||
| 
 | 
 | ||||||
|       # Open ports in the firewall. |       # Open ports in the firewall. | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user