summaryrefslogtreecommitdiffstats
path: root/hosts/icon
diff options
context:
space:
mode:
authorSkullheadx <admonty1@protonmail.com>2026-06-13 23:05:19 -0400
committerSkullheadx <admonty1@protonmail.com>2026-06-13 23:05:19 -0400
commit6bd2d69a5806d9cc498a65ddc7fc79a199140b55 (patch)
tree9678f0f2f6d324b66a250d1f7ad2f3889e83bf14 /hosts/icon
parentuse fira code nerf font (diff)
downloadnixos-6bd2d69a5806d9cc498a65ddc7fc79a199140b55.tar.gz
nixos-6bd2d69a5806d9cc498a65ddc7fc79a199140b55.tar.bz2
nixos-6bd2d69a5806d9cc498a65ddc7fc79a199140b55.zip
format using alejandra
Diffstat (limited to 'hosts/icon')
-rw-r--r--hosts/icon/configuration.nix29
-rw-r--r--hosts/icon/hardware-configuration.nix12
2 files changed, 29 insertions, 12 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";