47 lines
		
	
	
	
		
			854 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			47 lines
		
	
	
	
		
			854 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{ inputs, pkgs, lib, ... }:
 | 
						|
 | 
						|
let
 | 
						|
	inherit (lib) mkDefault;
 | 
						|
	key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBn3ff3HaZHIyH4K13k8Mwqu/o7jIABJ8rANK+r2PfJk";
 | 
						|
in
 | 
						|
 | 
						|
{
 | 
						|
	imports = [
 | 
						|
		./hardware-configuration.nix
 | 
						|
    ../../modules
 | 
						|
		];
 | 
						|
 | 
						|
 | 
						|
		systemModules.host = {
 | 
						|
			name = "ookst480s";
 | 
						|
			type = "laptop";
 | 
						|
			function = [ "workstation" ];
 | 
						|
			admin = {
 | 
						|
				name = "ooks";
 | 
						|
				shell = "fish";
 | 
						|
				sshKey = key;
 | 
						|
				homeManager = true;
 | 
						|
			};
 | 
						|
			hardware = {
 | 
						|
				cpu.type = "intel";
 | 
						|
				gpu.type = "intel";
 | 
						|
				features = [ "bluetooth" "backlight" "battery" "ssd" ];
 | 
						|
				battery = {
 | 
						|
					powersave = {
 | 
						|
						minFreq = 800;
 | 
						|
						maxFreq = 1800;
 | 
						|
					};
 | 
						|
					performance = {
 | 
						|
						minFreq = 1800;
 | 
						|
						maxFreq = 3600;
 | 
						|
					};
 | 
						|
				};
 | 
						|
			};
 | 
						|
		};
 | 
						|
 | 
						|
    boot = {
 | 
						|
      kernelPackages = pkgs.linuxKernel.packages.linux_zen;
 | 
						|
    };
 | 
						|
 | 
						|
		system.stateVersion = mkDefault "23.11";
 | 
						|
}
 |