diff options
| author | Skullheadx <admonty1@protonmail.com> | 2026-06-13 23:05:19 -0400 |
|---|---|---|
| committer | Skullheadx <admonty1@protonmail.com> | 2026-06-13 23:05:19 -0400 |
| commit | 6bd2d69a5806d9cc498a65ddc7fc79a199140b55 (patch) | |
| tree | 9678f0f2f6d324b66a250d1f7ad2f3889e83bf14 /hosts | |
| parent | use fira code nerf font (diff) | |
| download | nixos-6bd2d69a5806d9cc498a65ddc7fc79a199140b55.tar.gz nixos-6bd2d69a5806d9cc498a65ddc7fc79a199140b55.tar.bz2 nixos-6bd2d69a5806d9cc498a65ddc7fc79a199140b55.zip | |
format using alejandra
Diffstat (limited to 'hosts')
| -rw-r--r-- | hosts/icon/configuration.nix | 29 | ||||
| -rw-r--r-- | hosts/icon/hardware-configuration.nix | 12 | ||||
| -rw-r--r-- | hosts/nepsis/hardware-configuration.nix | 12 |
3 files changed, 34 insertions, 19 deletions
diff --git a/hosts/icon/configuration.nix b/hosts/icon/configuration.nix index f15fbf2..62c5bb8 100644 --- a/hosts/icon/configuration.nix +++ b/hosts/icon/configuration.nix @@ -50,8 +50,15 @@ users.users.nginx.extraGroups = ["git"]; systemd.services.nginx.serviceConfig = { SupplementaryGroups = ["git"]; - ReadOnlyPaths = ["/srv/git" "/srv"]; - InaccessiblePaths = ["/srv/git/.ssh" "/srv/git/migrate_from_gh.sh" "/srv/git/make_new_repo.sh"]; + ReadOnlyPaths = [ + "/srv/git" + "/srv" + ]; + InaccessiblePaths = [ + "/srv/git/.ssh" + "/srv/git/migrate_from_gh.sh" + "/srv/git/make_new_repo.sh" + ]; }; # systemd.services.fcgiwrap.serviceConfig.ReadOnlyPaths = ["/srv/git"]; # Define a user account. Don't forget to set a password with ‘passwd’. @@ -72,7 +79,11 @@ home = "/srv/git"; createHome = true; homeMode = "755"; - openssh.authorizedKeys.keyFiles = [../../pubkeys/desktop_ssh.pub ../../pubkeys/homelab_ssh.pub ../../pubkeys/laptop_ssh.pub]; + openssh.authorizedKeys.keyFiles = [ + ../../pubkeys/desktop_ssh.pub + ../../pubkeys/homelab_ssh.pub + ../../pubkeys/laptop_ssh.pub + ]; }; }; @@ -151,7 +162,10 @@ fileSystems."/srv/data" = { device = "/dev/disk/by-uuid/9014f510-b08e-488f-8c43-20a4ac7f15cc"; fsType = "ext4"; - options = ["defaults" "nofail"]; + options = [ + "defaults" + "nofail" + ]; }; networking.hostName = "icon"; # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. @@ -197,7 +211,12 @@ }; # Open ports in the firewall. - networking.firewall.allowedTCPPorts = [9418 8080 6667 2049]; # git, gitweb, irc, nfs + networking.firewall.allowedTCPPorts = [ + 9418 + 8080 + 6667 + 2049 + ]; # git, gitweb, irc, nfs networking.firewall.allowedUDPPorts = [55555]; # wireguard # Or disable the firewall altogether. # networking.firewall.enable = false; diff --git a/hosts/icon/hardware-configuration.nix b/hosts/icon/hardware-configuration.nix index 4fdf938..2bbb7e6 100644 --- a/hosts/icon/hardware-configuration.nix +++ b/hosts/icon/hardware-configuration.nix @@ -7,9 +7,7 @@ pkgs, modulesPath, ... -}: - -{ +}: { imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; @@ -21,9 +19,9 @@ "usbhid" "sd_mod" ]; - boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ "kvm-intel" ]; - boot.extraModulePackages = [ ]; + boot.initrd.kernelModules = []; + boot.kernelModules = ["kvm-intel"]; + boot.extraModulePackages = []; fileSystems."/" = { device = "/dev/disk/by-uuid/2e969677-74d5-4c22-a708-fa27ba11f2f9"; @@ -40,7 +38,7 @@ }; swapDevices = [ - { device = "/dev/disk/by-uuid/c562b7b7-2a7e-4416-8223-120956671eae"; } + {device = "/dev/disk/by-uuid/c562b7b7-2a7e-4416-8223-120956671eae";} ]; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; diff --git a/hosts/nepsis/hardware-configuration.nix b/hosts/nepsis/hardware-configuration.nix index 9e77966..312756f 100644 --- a/hosts/nepsis/hardware-configuration.nix +++ b/hosts/nepsis/hardware-configuration.nix @@ -7,9 +7,7 @@ pkgs, modulesPath, ... -}: - -{ +}: { imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; @@ -22,9 +20,9 @@ "usb_storage" "sd_mod" ]; - boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ "kvm-amd" ]; - boot.extraModulePackages = [ ]; + boot.initrd.kernelModules = []; + boot.kernelModules = ["kvm-amd"]; + boot.extraModulePackages = []; fileSystems."/" = { device = "/dev/disk/by-uuid/a0aa3a6b-4970-4c7d-b793-57561ed4ae03"; @@ -41,7 +39,7 @@ }; swapDevices = [ - { device = "/dev/disk/by-uuid/1efeebba-c2ce-4ab9-87d6-e986933d7678"; } + {device = "/dev/disk/by-uuid/1efeebba-c2ce-4ab9-87d6-e986933d7678";} ]; # Enables DHCP on each ethernet and wireless interface. In case of scripted networking |
