Update NixDesk
This commit is contained in:
		
							parent
							
								
									99231d0d04
								
							
						
					
					
						commit
						759ebb3558
					
				
					 12 changed files with 182 additions and 103 deletions
				
			
		|  | @ -1,7 +1,8 @@ | |||
| { | ||||
|   imports = [ | ||||
|     ./desktop | ||||
|     ./openrgb | ||||
|     ./openssh | ||||
|     ./pipewire | ||||
|     ./printing | ||||
|   ]; | ||||
| } | ||||
|  |  | |||
|  | @ -1,5 +0,0 @@ | |||
| { | ||||
|   imports = [ | ||||
|     ./gnome | ||||
|   ]; | ||||
| } | ||||
|  | @ -1,57 +0,0 @@ | |||
| { config, lib, pkgs, ... }: | ||||
| 
 | ||||
| let | ||||
|   cfg = config.sisyphus.services.desktop.gnome; | ||||
| in { | ||||
|   options.sisyphus.services.desktop.gnome.enable = lib.mkEnableOption "GNOME"; | ||||
| 
 | ||||
|   config = lib.mkIf cfg.enable { | ||||
|     services.xserver = { | ||||
|       enable = true; | ||||
|       layout = "us"; | ||||
|       xkbVariant = "altgr-intl"; | ||||
| 
 | ||||
|       excludePackages = with pkgs; [ | ||||
|         xterm | ||||
|       ]; | ||||
| 
 | ||||
|       displayManager.gdm.enable = true; | ||||
|       desktopManager.gnome.enable = true; | ||||
|     }; | ||||
| 
 | ||||
|     # Start a new instance of application instead of going to that window. | ||||
|     environment.systemPackages = with pkgs.gnomeExtensions; [ | ||||
|       launch-new-instance | ||||
|     ]; | ||||
| 
 | ||||
|     # Do not use these packages | ||||
|     environment.gnome.excludePackages = (with pkgs; [ | ||||
|       baobab | ||||
|       epiphany          # Web browser | ||||
|       evince            # Document viewer | ||||
|       gnome-connections # Remote desktop client | ||||
|       gnome-console | ||||
|       gnome-photos | ||||
|       gnome-text-editor | ||||
|       gnome-tour | ||||
|     ]) ++ (with pkgs.gnome; [ | ||||
|       eog               # Image viewer | ||||
|       file-roller       # Archive manager | ||||
|       geary             # Mail client | ||||
|       gedit | ||||
|       gnome-calculator | ||||
|       gnome-calendar | ||||
|       gnome-characters | ||||
|       gnome-clocks | ||||
|       gnome-contacts | ||||
|       gnome-disk-utility | ||||
|       gnome-maps | ||||
|       gnome-music | ||||
|       gnome-system-monitor | ||||
|       gnome-weather | ||||
|       simple-scan | ||||
|       totem             # Movie player | ||||
|       yelp              # Help viewer | ||||
|     ]); | ||||
|   }; | ||||
| } | ||||
							
								
								
									
										15
									
								
								nixos/modules/services/openrgb/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								nixos/modules/services/openrgb/default.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,15 @@ | |||
| { config, lib, pkgs, ... }: | ||||
| 
 | ||||
| let | ||||
|   cfg = config.sisyphus.services.openrgb; | ||||
| in { | ||||
|   options.sisyphus.services.openrgb.enable = lib.mkEnableOption "OpenRGB"; | ||||
| 
 | ||||
|   config = lib.mkIf cfg.enable { | ||||
|     services.hardware.openrgb = { | ||||
|       enable = true; | ||||
|       package = pkgs.openrgb-with-all-plugins; | ||||
|       motherboard = "intel"; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
							
								
								
									
										25
									
								
								nixos/modules/services/pipewire/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								nixos/modules/services/pipewire/default.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,25 @@ | |||
| { config, lib, pkgs, ... }: | ||||
| 
 | ||||
| let | ||||
|   cfg = config.sisyphus.services.pipewire; | ||||
| in { | ||||
|   options.sisyphus.services.pipewire.enable = lib.mkEnableOption "Pipewire"; | ||||
| 
 | ||||
|   config = lib.mkIf cfg.enable { | ||||
|     sound.enable = true; | ||||
|     hardware.pulseaudio.enable = false; | ||||
|     security.rtkit.enable = true; | ||||
|     services.pipewire = { | ||||
|       enable = true; | ||||
|       alsa.enable = true; | ||||
|       alsa.support32Bit = true; | ||||
|       pulse.enable = true; | ||||
|       # If you want to use JACK applications, uncomment this | ||||
|       #jack.enable = true; | ||||
| 
 | ||||
|       # use the example session manager (no others are packaged yet so this is enabled by default, | ||||
|       # no need to redefine it in your config for now) | ||||
|       #media-session.enable = true; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue