Rename fake modules to modules-old
This commit is contained in:
		
							parent
							
								
									ba9dcb8026
								
							
						
					
					
						commit
						3a22389607
					
				
					 28 changed files with 13 additions and 13 deletions
				
			
		
							
								
								
									
										76
									
								
								nixos/modules-old/des/gnome/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										76
									
								
								nixos/modules-old/des/gnome/default.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,76 @@ | |||
| { config, lib, pkgs, ... }: | ||||
| 
 | ||||
| { | ||||
|   services.xserver = { | ||||
|     enable = true; | ||||
|      | ||||
|     # Enable the GNOME Desktop Environment. | ||||
|     displayManager.gdm.enable = true; | ||||
|     desktopManager.gnome.enable = true; | ||||
| 
 | ||||
|     excludePackages = with pkgs; [ | ||||
|       xterm | ||||
|     ]; | ||||
|   }; | ||||
| 
 | ||||
|   environment.systemPackages = with pkgs; [ | ||||
|     gnomeExtensions.launch-new-instance | ||||
|   ]; | ||||
| 
 | ||||
|   # We do not want these packages automatically | ||||
|   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 | ||||
|   ]); | ||||
| 
 | ||||
|   # GNOME ricing | ||||
|   # Browse available settings by running: | ||||
|   # gsettings list-schemas | xargs -I % sh -c 'echo %; gsettings list-keys %' | less | ||||
|   home-manager.users.tdpeuter.dconf.settings = { | ||||
|     "org/gnome/desktop/background" = { | ||||
|       picture-uri = "file:///home/tdpeuter/Nextcloud/Afbeeldingen/wallpapers/bg"; | ||||
|       picture-uri-dark = "file:///home/tdpeuter/Nextcloud/Afbeeldingen/wallpapers/bg-dark"; | ||||
|     }; | ||||
|     "org/gnome/desktop/interface" = { | ||||
|       enable-animations = false; | ||||
|       enable-hot-corners = false; | ||||
|     }; | ||||
|     "org/gnome/desktop/notifications" = { | ||||
|       show-in-lock-screen = false; | ||||
|     }; | ||||
|     "org/gnome/desktop/peripherals.touchpad" = { | ||||
|       tap-to-click = true; | ||||
|     }; | ||||
|     "org/gnome/mutter" = { | ||||
|       dynamic-workspaces = true; | ||||
|       workspaces-only-on-primary = false; | ||||
|     }; | ||||
|     "org/gnome/shell/app-switcher" = { | ||||
|       current-workspace-only = true; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
							
								
								
									
										35
									
								
								nixos/modules-old/des/plasma/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								nixos/modules-old/des/plasma/default.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,35 @@ | |||
| { config, lib, pkgs, ... }: | ||||
| 
 | ||||
| { | ||||
|   services.xserver = { | ||||
|     enable = true; | ||||
| 
 | ||||
|     displayManager = { | ||||
|       defaultSession = "plasmawayland"; | ||||
|       sddm = { | ||||
|         enable = true; | ||||
|         # https://discourse.nixos.org/t/plasma-wayland-session-not-available-from-sddm/13447/2 | ||||
|         settings.Wayland.SessionDir = "${pkgs.plasma5Packages.plasma-workspace}/share/wayland-sessions"; | ||||
|       }; | ||||
|     }; | ||||
|      | ||||
|     desktopManager.plasma5 = { | ||||
|       enable = true; | ||||
|       useQtScaling = true; | ||||
|     }; | ||||
|      | ||||
|     excludePackages = with pkgs; [ | ||||
|       xterm | ||||
|     ]; | ||||
|   }; | ||||
| 
 | ||||
|   environment.plasma5.excludePackages = with pkgs.libsForQt5; [ | ||||
|     elisa | ||||
|     okular | ||||
|     khelpcenter | ||||
|     konsole | ||||
|     print-manager | ||||
|     plasma-systemmonitor | ||||
|     gwenview | ||||
|   ]; | ||||
| } | ||||
							
								
								
									
										110
									
								
								nixos/modules-old/des/sway/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										110
									
								
								nixos/modules-old/des/sway/default.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,110 @@ | |||
| { config, pkgs, lib, ... }: | ||||
| 
 | ||||
| let | ||||
|   # bash script to let dbus know about important env variables and | ||||
|   # propagate them to relevent services run at the end of sway config | ||||
|   # see | ||||
|   # https://github.com/emersion/xdg-desktop-portal-wlr/wiki/"It-doesn't-work"-Troubleshooting-Checklist | ||||
|   # note: this is pretty much the same as  /etc/sway/config.d/nixos.conf but also restarts   | ||||
|   # some user services to make sure they have the correct environment variables | ||||
|   dbus-sway-environment = pkgs.writeTextFile { | ||||
|     name = "dbus-sway-environment"; | ||||
|     destination = "/bin/dbus-sway-environment"; | ||||
|     executable = true; | ||||
| 
 | ||||
|     text = '' | ||||
|       dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway | ||||
|       systemctl --user stop pipewire pipewire-media-session xdg-desktop-portal xdg-desktop-portal-wlr | ||||
|       systemctl --user start pipewire pipewire-media-session xdg-desktop-portal xdg-desktop-portal-wlr | ||||
|     ''; | ||||
|   }; | ||||
|    | ||||
|   # currently, there is some friction between sway and gtk: | ||||
|   # https://github.com/swaywm/sway/wiki/GTK-3-settings-on-Wayland | ||||
|   # the suggested way to set gtk settings is with gsettings | ||||
|   # for gsettings to work, we need to tell it where the schemas are | ||||
|   # using the XDG_DATA_DIR environment variable | ||||
|   # run at the end of sway config | ||||
|   configure-gtk = pkgs.writeTextFile { | ||||
|     name = "configure-gtk"; | ||||
|     destination = "/bin/configure-gtk"; | ||||
|     executable = true; | ||||
|     text = let | ||||
|       schema = pkgs.gsettings-desktop-schemas; | ||||
|       datadir = "${schema}/share/gsettings-schemas/${schema.name}"; | ||||
|     in '' | ||||
|       export XDG_DATA_DIRS=${datadir}:$XDG_DATA_DIRS | ||||
|       gnome_schema=org.gnome.desktop.interface | ||||
|       gsettings set $gnome_schema gtk-theme 'Dracula' | ||||
|     ''; | ||||
|   }; | ||||
| in | ||||
| { | ||||
|   services.xserver = { | ||||
|     enable = true; | ||||
| 
 | ||||
|     displayManager.lightdm.enable = true; | ||||
| 
 | ||||
|     excludePackages = with pkgs; [ | ||||
|       xterm | ||||
|     ]; | ||||
|   }; | ||||
| 
 | ||||
|   security.polkit.enable = true; | ||||
|   services.pipewire = { | ||||
|     enable = true; | ||||
|     alsa.enable = true; | ||||
|     pulse.enable = true; | ||||
|   }; | ||||
| 
 | ||||
|   services.dbus.enable = true; | ||||
|   xdg.portal = { | ||||
|     enable = true; | ||||
|     wlr.enable = true; | ||||
|     extraPortals = [ pkgs.xdg-desktop-portal-gtk ]; | ||||
|   }; | ||||
| 
 | ||||
|   programs.sway = { | ||||
|     enable = true; | ||||
|     wrapperFeatures.gtk = true; | ||||
|   }; | ||||
| 
 | ||||
|   home-manager.users.tdpeuter = { pkgs, ... }: { | ||||
|     home = { | ||||
|       username = "tdpeuter"; | ||||
|       homeDirectory = "/home/tdpeuter"; | ||||
|        | ||||
|       file = { | ||||
|         ".config/sway".source = ../../../../stow/sway/.config/sway; | ||||
|         ".config/waybar".source = ../../../../stow/waybar/.config/waybar; | ||||
|         ".config/dunst".source = ../../../../stow/dunst/.config/dunst; | ||||
|         # TODO Fix scripts, I don't like it this way | ||||
|         ".scripts".source = ../../../../stow/_scripts/.scripts; | ||||
|       }; | ||||
| 
 | ||||
|       packages = with pkgs; [ | ||||
|         brightnessctl | ||||
|         dunst | ||||
|         font-awesome | ||||
|         pamixer | ||||
|         pavucontrol | ||||
|         playerctl | ||||
|         swayidle | ||||
|         swaylock-effects | ||||
|         waybar | ||||
|         wmname | ||||
|       ]; | ||||
| #    }; | ||||
| # | ||||
| #    wayland.windowManager.sway = { | ||||
| #      enable = true; | ||||
| #      package = pkgs.sway-unwrapped; | ||||
| #      config = rec { | ||||
| #        terminal = "alacritty"; | ||||
| #        startup = [ | ||||
| #          {command = "alacritty";} | ||||
| #        ]; | ||||
| #      }; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue