All checks were successful
		
		
	
	Test / Create distribution (push) Successful in 33s
				
			Test / Sandbox (push) Successful in 1m58s
				
			Test / Sandbox (race detector) (push) Successful in 3m47s
				
			Test / Hpkg (push) Successful in 3m54s
				
			Test / Hakurei (race detector) (push) Successful in 4m32s
				
			Test / Hakurei (push) Successful in 2m10s
				
			Test / Flake checks (push) Successful in 1m19s
				
			Planterette is now developed in another repository, so rename this proof of concept to avoid confusion. Signed-off-by: Ophestra <cat@gensokyo.uk>
		
			
				
	
	
		
			63 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			63 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
| { pkgs, ... }:
 | |
| {
 | |
|   users.users = {
 | |
|     alice = {
 | |
|       isNormalUser = true;
 | |
|       description = "Alice Foobar";
 | |
|       password = "foobar";
 | |
|       uid = 1000;
 | |
|     };
 | |
|   };
 | |
| 
 | |
|   home-manager.users.alice.home.stateVersion = "24.11";
 | |
| 
 | |
|   # Automatically login on tty1 as a normal user:
 | |
|   services.getty.autologinUser = "alice";
 | |
| 
 | |
|   environment = {
 | |
|     variables = {
 | |
|       SWAYSOCK = "/tmp/sway-ipc.sock";
 | |
|       WLR_RENDERER = "pixman";
 | |
|     };
 | |
|   };
 | |
| 
 | |
|   # Automatically configure and start Sway when logging in on tty1:
 | |
|   programs.bash.loginShellInit = ''
 | |
|     if [ "$(tty)" = "/dev/tty1" ]; then
 | |
|       set -e
 | |
| 
 | |
|       mkdir -p ~/.config/sway
 | |
|       (sed s/Mod4/Mod1/ /etc/sway/config &&
 | |
|       echo 'output * bg ${pkgs.nixos-artwork.wallpapers.simple-light-gray.gnomeFilePath} fill' &&
 | |
|       echo 'output Virtual-1 res 1680x1050') > ~/.config/sway/config
 | |
| 
 | |
|       sway --validate
 | |
|       systemd-cat --identifier=session sway && touch /tmp/sway-exit-ok
 | |
|     fi
 | |
|   '';
 | |
| 
 | |
|   programs.sway.enable = true;
 | |
| 
 | |
|   virtualisation = {
 | |
|     diskSize = 6 * 1024;
 | |
| 
 | |
|     qemu.options = [
 | |
|       # Need to switch to a different GPU driver than the default one (-vga std) so that Sway can launch:
 | |
|       "-vga none -device virtio-gpu-pci"
 | |
| 
 | |
|       # Increase zstd performance:
 | |
|       "-smp 8"
 | |
|     ];
 | |
|   };
 | |
| 
 | |
|   environment.hakurei = {
 | |
|     enable = true;
 | |
|     stateDir = "/var/lib/hakurei";
 | |
|     users.alice = 0;
 | |
| 
 | |
|     extraHomeConfig = {
 | |
|       home.stateVersion = "23.05";
 | |
|     };
 | |
|   };
 | |
| }
 |