diff --git a/flake.nix b/flake.nix index d8d8ef6..197ebd0 100644 --- a/flake.nix +++ b/flake.nix @@ -115,6 +115,7 @@ Kell = { user = "user"; }; Aloria = { user = "user"; }; Arendia = { user = "user"; }; + Asturia = { user = "user"; }; }; in { nixosConfigurations = nixpkgs.lib.mapAttrs mkSystem systems; }; diff --git a/home/Asturia.nix b/home/Asturia.nix new file mode 100644 index 0000000..ef7a8b4 --- /dev/null +++ b/home/Asturia.nix @@ -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; +} diff --git a/hosts/Asturia/default.nix b/hosts/Asturia/default.nix new file mode 100644 index 0000000..73efd9c --- /dev/null +++ b/hosts/Asturia/default.nix @@ -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; + }; +} diff --git a/hosts/Asturia/hardware-configuration.nix b/hosts/Asturia/hardware-configuration.nix new file mode 100644 index 0000000..b1fbd2a --- /dev/null +++ b/hosts/Asturia/hardware-configuration.nix @@ -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; +}