restructure system configuration
This commit is contained in:
		
							parent
							
								
									8f58a79fe2
								
							
						
					
					
						commit
						e65c6bc159
					
				
					 27 changed files with 143 additions and 44 deletions
				
			
		
							
								
								
									
										36
									
								
								system/modules/programs/greetd.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								system/modules/programs/greetd.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,36 @@ | |||
| { pkgs, ... }: | ||||
| let | ||||
|   tuigreet = "${pkgs.greetd.tuigreet}/bin/tuigreet"; | ||||
| in | ||||
| { | ||||
|   services.greetd = { | ||||
|     enable = true; | ||||
|     settings = { | ||||
|       default_session = { | ||||
|         command = "${tuigreet} --time --remember --cmd Hyprland"; | ||||
|         user = "greeter"; | ||||
|       }; | ||||
|     }; | ||||
|   }; | ||||
| 
 | ||||
|   # this is a life saver. | ||||
|   # literally no documentation about this anywhere. | ||||
|   # might be good to write about this... | ||||
|   # https://www.reddit.com/r/NixOS/comments/u0cdpi/tuigreet_with_xmonad_how/ | ||||
|   systemd.services.greetd.serviceConfig = { | ||||
|     Type = "idle"; | ||||
|     StandardInput = "tty"; | ||||
|     StandardOutput = "tty"; | ||||
|     StandardError = "journal"; # Without this errors will spam on screen | ||||
|     # Without these bootlogs will spam on screen | ||||
|     TTYReset = true; | ||||
|     TTYVHangup = true; | ||||
|     TTYVTDisallocate = true; | ||||
|   }; | ||||
| 
 | ||||
|   #environment.etc."greetd/environments".text = '' | ||||
|   #  Hyprland | ||||
|   #  fish | ||||
|   #  bash | ||||
|   #''; | ||||
| } | ||||
							
								
								
									
										28
									
								
								system/modules/programs/vm.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								system/modules/programs/vm.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,28 @@ | |||
| {config, pkgs, ... }: | ||||
| 
 | ||||
| { | ||||
|   environment.systemPackages = with pkgs; [ | ||||
|     virt-manager | ||||
|     virt-viewer | ||||
|     spice  | ||||
|     spice-gtk | ||||
|     spice-protocol | ||||
|     win-virtio | ||||
|     win-spice | ||||
|     gnome.adwaita-icon-theme | ||||
|   ]; | ||||
|    | ||||
|   virtualisation = { | ||||
|     libvirtd = { | ||||
|       enable = true; | ||||
|       qemu = { | ||||
|         swtpm.enable = true; | ||||
|         ovmf.enable = true; | ||||
|         ovmf.packages = [ pkgs.OVMFFull.fd ]; | ||||
|       }; | ||||
|     }; | ||||
|     spiceUSBRedirection.enable = true; | ||||
|   }; | ||||
|   services.spice-vdagentd.enable = true; | ||||
| } | ||||
| 
 | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue