From 6bd2d69a5806d9cc498a65ddc7fc79a199140b55 Mon Sep 17 00:00:00 2001 From: Skullheadx Date: Sat, 13 Jun 2026 23:05:19 -0400 Subject: format using alejandra --- hosts/icon/configuration.nix | 29 ++++++++++++++++++++++++----- hosts/icon/hardware-configuration.nix | 12 +++++------- 2 files changed, 29 insertions(+), 12 deletions(-) (limited to 'hosts/icon') 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"; -- cgit v1.3.1