completely refactor and modularize flake
This commit is contained in:
		
							parent
							
								
									3b1ed7e281
								
							
						
					
					
						commit
						b7210fcf8e
					
				
					 141 changed files with 884 additions and 2605 deletions
				
			
		|  | @ -15,12 +15,12 @@ | |||
|     ./nfs.nix | ||||
|     ./radicale.nix | ||||
| 
 | ||||
|     ../../modules/DEFAULT/COMMON | ||||
|     ../../modules/DEFAULT/SERVER | ||||
|     ../../modules/HOME-MANAGER/COMMON | ||||
|     ../../modules/default | ||||
| 
 | ||||
|   ]; | ||||
| 
 | ||||
|   server.enable = true; | ||||
| 
 | ||||
|   common.syncthing = { | ||||
|     enable = true; | ||||
|     devices = { | ||||
|  |  | |||
							
								
								
									
										16
									
								
								hosts/Lenni/auto-cpufreq.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								hosts/Lenni/auto-cpufreq.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,16 @@ | |||
| { ... }: | ||||
| { | ||||
|   services.auto-cpufreq = { | ||||
|     enable = true; | ||||
|     settings = { | ||||
|       battery = { | ||||
|         governor = "powersave"; | ||||
|         turbo = "never"; | ||||
|       }; | ||||
|     charger = { | ||||
|       governor = "powersave"; | ||||
|       turbo = "never"; | ||||
|       }; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
							
								
								
									
										6
									
								
								hosts/Lenni/backlight.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								hosts/Lenni/backlight.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,6 @@ | |||
| { pkgs, ... }: | ||||
| { | ||||
|   services.udev.extraRules = '' | ||||
|     ACTION=="add", SUBSYSTEM=="backlight", KERNEL=="intel_backlight", MODE="0666", RUN+="${pkgs.coreutils}/bin/chmod a+w /sys/class/backlight/%k/brightness" | ||||
|   ''; | ||||
| } | ||||
|  | @ -1,14 +1,20 @@ | |||
| { ... }: | ||||
| { | ||||
|   imports = [ | ||||
|     ./auto-cpufreq.nix | ||||
|     ./backlight.nix | ||||
|     ./hardware-configuration.nix | ||||
|     #./disko.nix | ||||
| 
 | ||||
|     ../../modules/DEFAULT/COMMON | ||||
|     ../../modules/DEFAULT/DESKTOP | ||||
|     ../../modules/HOME-MANAGER/COMMON | ||||
|     ../../modules/default | ||||
| 
 | ||||
|   ]; | ||||
| 
 | ||||
|   desktop = { | ||||
|     enable = true; | ||||
|     hyprland.hardware.Lenni.enable = true; | ||||
|   }; | ||||
| 
 | ||||
|   common.syncthing = { | ||||
|     enable = true; | ||||
|     devices = { | ||||
|  | @ -16,4 +22,7 @@ | |||
|     }; | ||||
|   }; | ||||
|    | ||||
|   hardware.bluetooth.enable = true; | ||||
|   services.hardware.bolt.enable = true; | ||||
| 
 | ||||
| } | ||||
|  |  | |||
|  | @ -3,10 +3,20 @@ | |||
|   imports = [ | ||||
|     ./hardware-configuration.nix | ||||
|     ./disko.nix | ||||
|     ./jovian.nix | ||||
| 
 | ||||
|     ../../modules/DEFAULT/COMMON | ||||
|     ../../modules/DEFAULT/DESKTOP | ||||
|     ../../modules/HOME-MANAGER/COMMON | ||||
|     ../../modules/default | ||||
| 
 | ||||
|   ]; | ||||
| 
 | ||||
|   desktop = { | ||||
|     enable = true; | ||||
|     autostart.enable = false; | ||||
| 
 | ||||
|     hyprland = { | ||||
|       hardware.Lillie = true; | ||||
|     }; | ||||
|   }; | ||||
| 
 | ||||
| 
 | ||||
| } | ||||
|  |  | |||
							
								
								
									
										47
									
								
								hosts/Lillie/jovian.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										47
									
								
								hosts/Lillie/jovian.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,47 @@ | |||
| { pkgs, ... }: | ||||
| { | ||||
| 
 | ||||
|   jovian = { | ||||
|     decky-loader = { | ||||
|       enable = true; | ||||
|       user = "willifan"; | ||||
|       extraPackages = with pkgs; [ | ||||
|         # Generic packages | ||||
|         curl | ||||
|         unzip | ||||
|         util-linux | ||||
|         gnugrep | ||||
|    | ||||
|         readline.out | ||||
|         procps | ||||
|         pciutils | ||||
|         libpulseaudio | ||||
| 
 | ||||
|       # SimpleDeckyTDP | ||||
|         ryzenadj # actual TDP util | ||||
|         kmod # modprobe for acpi_call check | ||||
|       ]; | ||||
|       extraPythonPackages = pythonPackages: with pythonPackages; [ | ||||
|         pyyaml # hhd-decky | ||||
|         aiohttp | ||||
|         certifi | ||||
|       ]; | ||||
|     }; | ||||
|     devices.steamdeck = { | ||||
|       enable = true; | ||||
|       enableGyroDsuService = true; | ||||
|     }; | ||||
|     hardware.has.amd.gpu = true; | ||||
|     steam = { | ||||
|       enable = true; | ||||
|       user = "willifan"; | ||||
|       autoStart = true; | ||||
|       desktopSession = "hyprland"; | ||||
|     }; | ||||
|   }; | ||||
| 
 | ||||
|   environment.systemPackages = with pkgs; [ | ||||
|     python3 | ||||
|   ]; | ||||
| 
 | ||||
| } | ||||
|  | @ -4,12 +4,20 @@ | |||
|     ./hardware-configuration.nix | ||||
|     ./disko.nix | ||||
| 
 | ||||
|     ../../modules/DEFAULT/COMMON | ||||
|     ../../modules/DEFAULT/DESKTOP | ||||
|     ../../modules/HOME-MANAGER/COMMON | ||||
|     ../../modules/default | ||||
|    | ||||
|   ]; | ||||
| 
 | ||||
|   desktop = { | ||||
|     enable = true; | ||||
|     hyprlock.enable = false; | ||||
|     hypridle.enable = false; | ||||
| 
 | ||||
|     hyprland = { | ||||
|       hardware.Puenktchen = true; | ||||
|     }; | ||||
|   }; | ||||
| 
 | ||||
|   common.syncthing = { | ||||
|     enable = true; | ||||
|     devices = { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue