Add Asturia config
This commit is contained in:
		
							parent
							
								
									3636ade1d7
								
							
						
					
					
						commit
						c0ec667fd1
					
				|  | @ -115,6 +115,7 @@ | ||||||
|                 Kell = { user = "user"; }; |                 Kell = { user = "user"; }; | ||||||
|                 Aloria = { user = "user"; }; |                 Aloria = { user = "user"; }; | ||||||
|                 Arendia = { user = "user"; }; |                 Arendia = { user = "user"; }; | ||||||
|  |                 Asturia = { user = "user"; }; | ||||||
|             }; |             }; | ||||||
|         in |         in | ||||||
|             { nixosConfigurations = nixpkgs.lib.mapAttrs mkSystem systems; }; |             { nixosConfigurations = nixpkgs.lib.mapAttrs mkSystem systems; }; | ||||||
|  |  | ||||||
|  | @ -0,0 +1,35 @@ | ||||||
|  | { inputs, config, pkgs, ... }: | ||||||
|  | 
 | ||||||
|  | { | ||||||
|  |     imports = [ | ||||||
|  |         (import ./utils/desktop.nix { inherit inputs config pkgs; }) | ||||||
|  |     ]; | ||||||
|  | 
 | ||||||
|  |     programs.ssh.matchBlocks."*".identityFile = "/home/user/.secrets/SSH/Asturia/id_ed25519"; | ||||||
|  | 
 | ||||||
|  |     home.packages = with pkgs; [ | ||||||
|  |         distrobox | ||||||
|  |         wl-clipboard | ||||||
|  |         jq | ||||||
|  |         evince | ||||||
|  |     ]; | ||||||
|  |     wayland.windowManager.hyprland.settings = { | ||||||
|  |         "$mainMod" =  pkgs.lib.mkForce "ALT_L"; | ||||||
|  |         "$altMod" = pkgs.lib.mkForce "SUPER"; | ||||||
|  |         monitor = [ | ||||||
|  |             "Virtual-1,1920x1080@60,0x0,1" | ||||||
|  |             "DP-1,1920x1080@60,0x0,1" | ||||||
|  |         ]; | ||||||
|  |         general.gaps_out = 1; | ||||||
|  |     }; | ||||||
|  |     services.hyprpaper = { | ||||||
|  |         settings = { | ||||||
|  |             wallpaper = [ | ||||||
|  |                 "Virtual-1,${./hyprland/files/wallpaper.png}" | ||||||
|  |                 "DP-1,${./hyprland/files/wallpaper.png}" | ||||||
|  |             ]; | ||||||
|  |         }; | ||||||
|  |     }; | ||||||
|  |     programs.alacritty.settings.font.size = 12; | ||||||
|  |     programs.kitty.font.size = 12; | ||||||
|  | } | ||||||
|  | @ -0,0 +1,38 @@ | ||||||
|  | { lib, inputs, config, pkgs, ... }: | ||||||
|  | let | ||||||
|  |     serverIP = "192.168.1.2"; | ||||||
|  | in { | ||||||
|  |     imports = [ | ||||||
|  |         (import ../Common/default.nix { inherit inputs pkgs; }) | ||||||
|  |         (import ../Common/nvidia.nix { inherit inputs pkgs config; }) | ||||||
|  |         (import ../Common/desktop.nix { inherit inputs pkgs config; }) | ||||||
|  |         (import ../Common/nfs.nix { inherit pkgs serverIP; }) | ||||||
|  |     ]; | ||||||
|  | 
 | ||||||
|  |     networking.wg-quick.interfaces = { | ||||||
|  |         wg0 = { | ||||||
|  |             address = [ "10.0.0.8/24" "	2a02:a03f:83ad:2101::8/128" ]; | ||||||
|  |             dns = [ "10.0.0.1" "fdc9:281f:04d7:9ee9::1" ]; | ||||||
|  |             privateKeyFile = "/home/user/.secrets/Wireguard/Asturia.key"; | ||||||
|  |             listenPort = 51820; | ||||||
|  |             peers = [{ | ||||||
|  |                 publicKey = "/9ppjm3yeD0duDvxrqgcHscHmftXko+0s2RbivNEy2c="; | ||||||
|  |                 allowedIPs = [ "10.0.0.1/8" ]; | ||||||
|  |                 endpoint = "192.168.1.1:13231"; | ||||||
|  |             }]; | ||||||
|  |         }; | ||||||
|  |     }; | ||||||
|  | 
 | ||||||
|  |     # Programs & Services | ||||||
|  |     programs.gnupg.agent.enable = true; | ||||||
|  |     services.sunshine = { | ||||||
|  |         enable = true; | ||||||
|  |         autoStart = true; | ||||||
|  |         capSysAdmin = true; | ||||||
|  |         openFirewall = true; | ||||||
|  |     }; | ||||||
|  |     programs.steam = { | ||||||
|  |         enable = true; | ||||||
|  |         gamescopeSession.enable = true; | ||||||
|  |     }; | ||||||
|  | } | ||||||
|  | @ -0,0 +1,29 @@ | ||||||
|  | { config, lib, pkgs, modulesPath, ... }: | ||||||
|  | 
 | ||||||
|  | { | ||||||
|  |     imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; | ||||||
|  | 
 | ||||||
|  |     boot.initrd.availableKernelModules = | ||||||
|  |         [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ]; | ||||||
|  |     boot.kernelModules = [ "kvm-amd" ]; | ||||||
|  |     boot.extraModulePackages = [ ]; | ||||||
|  | 
 | ||||||
|  |     fileSystems."/" = { | ||||||
|  |         device = "/dev/disk/by-uuid/daf843cd-8e63-48ed-831a-e055929e86cb"; | ||||||
|  |         fsType = "ext4"; | ||||||
|  |     }; | ||||||
|  | 
 | ||||||
|  |     fileSystems."/boot" = { | ||||||
|  |         device = "/dev/disk/by-uuid/E1D9-7A48"; | ||||||
|  |         fsType = "vfat"; | ||||||
|  |         options = [ "fmask=0077" "dmask=0077" ]; | ||||||
|  |     }; | ||||||
|  | 
 | ||||||
|  |     swapDevices = [ ]; | ||||||
|  | 
 | ||||||
|  |     networking.useDHCP = lib.mkDefault false; | ||||||
|  | 
 | ||||||
|  |     nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; | ||||||
|  |     hardware.cpu.amd.updateMicrocode = | ||||||
|  |         lib.mkDefault config.hardware.enableRedistributableFirmware; | ||||||
|  | } | ||||||
		Loading…
	
		Reference in New Issue