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. | ||||
|   services.xserver.displayManager.gdm.enable = true;  | ||||
|   services.xserver.displayManager.defaultSession = "gnome"; | ||||
|   # services.xserver.displayManager.lightdm.enable = true; | ||||
|   # services.xserver.displayManager.autoLogin.enable = true; | ||||
|   # services.xserver.displayManager.autoLogin.user = "andreas"; | ||||
| @ -100,6 +101,7 @@ | ||||
|   environment.systemPackages = with pkgs; [ | ||||
|   #  vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. | ||||
|   #  wget | ||||
|     pkgs.gnome3.gnome-tweaks | ||||
|   ]; | ||||
| 
 | ||||
|   # Some programs need SUID wrappers, can be configured further or are | ||||
|  | ||||
| @ -26,6 +26,7 @@ | ||||
| , ... | ||||
| }: | ||||
| let | ||||
|   inherit (lib.my-namespace) enabled; | ||||
|   inherit pkgs; | ||||
|   installedPackages = lib.my-namespace.mkPackages pkgs; | ||||
| in | ||||
| @ -45,21 +46,26 @@ in | ||||
|         description = "Andreas Schaafsma"; | ||||
|         extraGroups = [ "networkmanager" "wheel" ]    ; | ||||
|         packages = with pkgs; [ | ||||
|           flatpak | ||||
|           gnome-software | ||||
|           soundwireserver | ||||
|           vscode   | ||||
|           spotify | ||||
|           appimage-run | ||||
|           # Packages from inputs | ||||
|           inputs.game-of-life.packages.x86_64-linux.default | ||||
|           inputs.zen-browser.packages.x86_64-linux.default | ||||
|           inputs.nixos-cosmic | ||||
| 
 | ||||
|           flatpak | ||||
|           gnome-software | ||||
|           gnomeExtensions.pop-shell | ||||
|           soundwireserver | ||||
|           vscode   | ||||
|           spotify | ||||
|           appimage-run   | ||||
|           minecraft | ||||
|           trilium-desktop | ||||
|           terraform | ||||
|           #  thunderbird | ||||
|         ]; | ||||
|       }; | ||||
| 
 | ||||
|       my-namespace.cosmic-desktop.enable = false; | ||||
|       # lib.my-namespace.home.stream-tools.enable = true; | ||||
| 
 | ||||
|       # Open ports in the firewall. | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user