❄️ Dotfiles and NixOS configurations

chore: remove unused code

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>

+8 -430
+1 -12
darwinConfigurations/common/remote-build-provider.nix
··· 1 - { 2 - config, 3 - lib, 4 - pkgs, 5 - ... 6 - }: let 7 - environment = lib.concatStringsSep " " [ 8 - "NIX_SSL_CERT_FILE=${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt" 9 - ]; 10 - 11 - authorizedNixStoreKey = key: "command=\"${environment} ${config.nix.package}/bin/nix-store --serve --store daemon --write\" ${key}"; 12 - in { 1 + {pkgs, ...}: { 13 2 users.knownUsers = ["bob-the-builder"]; 14 3 users.users.bob-the-builder = { 15 4 uid = 502;
-1
flake.nix
··· 147 147 ./nixosConfigurations/eclipse 148 148 ./nixosConfigurations/universe 149 149 ./nixosConfigurations/centauri 150 - ./nixosConfigurations/sonic 151 150 152 151 ./darwinConfigurations/builder 153 152
-1
nixosConfigurations/common/desktop/mako.nix
··· 1 1 { 2 2 config, 3 3 lib, 4 - lib', 5 4 ... 6 5 }: { 7 6 hm = {
-1
nixosConfigurations/common/desktop/waybar.nix
··· 1 1 { 2 2 config, 3 3 lib, 4 - lib', 5 4 pkgs, 6 5 ... 7 6 }: let
-1
nixosConfigurations/common/desktop/wlogout.nix
··· 1 1 { 2 2 config, 3 3 lib, 4 - lib', 5 4 pkgs, 6 5 ... 7 6 }: {
+1 -1
nixosConfigurations/common/home.nix
··· 8 8 inherit (lib.lists) optional; 9 9 inherit (lib.modules) mkAliasOptionModule; 10 10 11 - inherit (inputs) catppuccin home-manager nix-index-database scrumpkgs; 11 + inherit (inputs) catppuccin home-manager scrumpkgs; 12 12 13 13 username = "scrumplex"; 14 14 in {
+1 -1
nixosConfigurations/common/pkgs/default.nix
··· 28 28 ]; 29 29 30 30 overlays = lib.mkAfter [ 31 - (final: prev: { 31 + (_: prev: { 32 32 discord = mkDiscordOverride prev.discord; 33 33 discord-canary = mkDiscordOverride prev.discord-canary; 34 34 discord-ptb = mkDiscordOverride prev.discord-ptb;
-29
nixosConfigurations/common/snapclient.nix
··· 1 - { 2 - lib, 3 - pkgs, 4 - ... 5 - }: { 6 - services.pipewire = { 7 - enable = true; 8 - systemWide = true; 9 - pulse.enable = true; 10 - }; 11 - 12 - systemd.services."snapclient" = { 13 - description = "SnapCast client"; 14 - wantedBy = ["multi-user.target"]; 15 - after = [ 16 - "network.target" 17 - "nss-lookup.target" 18 - "pipewire.socket" 19 - ]; 20 - serviceConfig = { 21 - Type = "forking"; 22 - ExecStart = "${lib.getExe' pkgs.snapcast "snapclient"} --daemon --host cosmos.lan --player pulse"; 23 - DynamicUser = true; 24 - SupplementaryGroups = ["pipewire"]; 25 - RuntimeDirectory = "snapclient"; 26 - PIDFile = "/var/run/snapclient/pid"; 27 - }; 28 - }; 29 - }
-33
nixosConfigurations/common/snapserver.nix
··· 1 - { 2 - config, 3 - lib, 4 - pkgs, 5 - ... 6 - }: { 7 - services.mopidy = { 8 - enable = true; 9 - extensionPackages = with pkgs; [mopidy-jellyfin]; 10 - configuration = '' 11 - [audio] 12 - output = audioresample ! audioconvert ! audio/x-raw,rate=48000,channels=2,format=S16LE ! wavenc ! tcpclientsink host=127.0.0.1 port=4953 13 - ''; 14 - }; 15 - 16 - services.snapserver = { 17 - enable = true; 18 - openFirewall = true; 19 - http = { 20 - enable = true; 21 - listenAddress = "0.0.0.0"; 22 - docRoot = pkgs.snapweb; 23 - }; 24 - streams = { 25 - Mopidy = { 26 - type = "tcp"; 27 - location = "127.0.0.1:4953"; 28 - }; 29 - }; 30 - }; 31 - 32 - networking.firewall.allowedTCPPorts = [config.services.snapserver.http.port]; 33 - }
-1
nixosConfigurations/eclipse/configuration.nix
··· 1 1 { 2 2 config, 3 3 inputs, 4 - pkgs, 5 4 ... 6 5 }: let 7 6 inherit (inputs) nixos-hardware srvos;
-1
nixosConfigurations/eclipse/hardware-configuration.nix
··· 4 4 { 5 5 config, 6 6 lib, 7 - pkgs, 8 7 modulesPath, 9 8 ... 10 9 }: {
+1 -1
nixosConfigurations/eclipse/media/slskd.nix
··· 7 7 settingsFormat = pkgs.formats.yaml {}; 8 8 confWithoutNullValues = ( 9 9 lib.filterAttrsRecursive ( 10 - key: value: (builtins.tryEval value).success && value != null 10 + _: value: (builtins.tryEval value).success && value != null 11 11 ) 12 12 config.services.slskd.settings 13 13 );
+1 -5
nixosConfigurations/eclipse/paperless.nix
··· 1 - { 2 - config, 3 - pkgs, 4 - ... 5 - }: { 1 + {config, ...}: { 6 2 age.secrets.paperless-password.file = ../../secrets/eclipse/paperless-password.age; 7 3 8 4 assertions = [
+1 -6
nixosConfigurations/fornax/disks.nix
··· 1 - { 2 - config, 3 - inputs, 4 - pkgs, 5 - ... 6 - }: { 1 + {inputs, ...}: { 7 2 imports = [ 8 3 inputs.disko.nixosModules.default 9 4 ];
-300
nixosConfigurations/sonic/configuration.nix
··· 1 - { 2 - config, 3 - inputs, 4 - lib, 5 - pkgs, 6 - ... 7 - }: let 8 - inherit (inputs) srvos nixos-hardware; 9 - in { 10 - imports = [ 11 - "${inputs.nixpkgs}/nixos/modules/installer/sd-card/sd-image-aarch64.nix" 12 - srvos.nixosModules.server 13 - nixos-hardware.nixosModules.raspberry-pi-3 14 - "${nixos-hardware}/raspberry-pi/4/pkgs-overlays.nix" 15 - inputs.nixos-facter-modules.nixosModules.facter 16 - ]; 17 - 18 - age.secrets."Beehive.psk".file = ../../secrets/common/Beehive.psk.age; 19 - 20 - nixpkgs.hostPlatform = "aarch64-linux"; 21 - 22 - sdImage = { 23 - # bzip2 compression takes loads of time with emulation, skip it. Enable this if you're low on space. 24 - compressImage = false; 25 - imageName = "zero2.img"; 26 - }; 27 - 28 - hardware.raspberry-pi."4".apply-overlays-dtmerge.enable = true; 29 - 30 - hardware = { 31 - enableRedistributableFirmware = lib.mkForce false; 32 - firmware = [pkgs.raspberrypiWirelessFirmware]; 33 - i2c.enable = true; 34 - deviceTree.filter = "bcm2837-rpi-zero*.dtb"; 35 - deviceTree.overlays = [ 36 - { 37 - name = "enable-i2c"; 38 - dtsText = '' 39 - /dts-v1/; 40 - /plugin/; 41 - / { 42 - compatible = "brcm,bcm2837"; 43 - fragment@0 { 44 - target = <&i2c1>; 45 - __overlay__ { 46 - status = "okay"; 47 - }; 48 - }; 49 - }; 50 - ''; 51 - } 52 - { 53 - name = "imx708"; 54 - dtsText = '' 55 - /dts-v1/; 56 - 57 - / { 58 - compatible = "brcm,bcm2837"; 59 - 60 - fragment@0 { 61 - target = <0xffffffff>; 62 - 63 - __overlay__ { 64 - status = "okay"; 65 - }; 66 - }; 67 - 68 - fragment@1 { 69 - target = <0xffffffff>; 70 - phandle = <0x07>; 71 - 72 - __overlay__ { 73 - status = "okay"; 74 - clock-frequency = <0x16e3600>; 75 - }; 76 - }; 77 - 78 - fragment@2 { 79 - target = <0xffffffff>; 80 - 81 - __overlay__ { 82 - status = "okay"; 83 - }; 84 - }; 85 - 86 - fragment@3 { 87 - target = <0xffffffff>; 88 - phandle = <0x08>; 89 - 90 - __overlay__ { 91 - startup-delay-us = <0x11170>; 92 - off-on-delay-us = <0x7530>; 93 - regulator-min-microvolt = <0x2932e0>; 94 - regulator-max-microvolt = <0x2932e0>; 95 - phandle = <0x09>; 96 - }; 97 - }; 98 - 99 - fragment@4 { 100 - target = <0x01>; 101 - 102 - __overlay__ { 103 - lens-focus = <0x02>; 104 - }; 105 - }; 106 - 107 - fragment@100 { 108 - target = <0xffffffff>; 109 - phandle = <0x05>; 110 - 111 - __overlay__ { 112 - #address-cells = <0x01>; 113 - #size-cells = <0x00>; 114 - status = "okay"; 115 - 116 - imx708@1a { 117 - compatible = "sony,imx708"; 118 - reg = <0x1a>; 119 - status = "okay"; 120 - clocks = <0xffffffff>; 121 - clock-names = "inclk"; 122 - vana1-supply = <0xffffffff>; 123 - vana2-supply = <0xffffffff>; 124 - vdig-supply = <0xffffffff>; 125 - vddl-supply = <0xffffffff>; 126 - rotation = <0xb4>; 127 - orientation = <0x02>; 128 - phandle = <0x01>; 129 - 130 - port { 131 - 132 - endpoint { 133 - clock-lanes = <0x00>; 134 - data-lanes = <0x01 0x02>; 135 - clock-noncontinuous; 136 - link-frequencies = <0x00 0x1ad27480>; 137 - remote-endpoint = <0x03>; 138 - phandle = <0x04>; 139 - }; 140 - }; 141 - }; 142 - 143 - dw9817@c { 144 - compatible = "dongwoon,dw9817-vcm"; 145 - reg = <0x0c>; 146 - status = "okay"; 147 - VDD-supply = <0xffffffff>; 148 - phandle = <0x02>; 149 - }; 150 - }; 151 - }; 152 - 153 - fragment@101 { 154 - target = <0xffffffff>; 155 - phandle = <0x06>; 156 - 157 - __overlay__ { 158 - status = "okay"; 159 - phandle = <0x0a>; 160 - 161 - port { 162 - 163 - endpoint { 164 - remote-endpoint = <0x04>; 165 - clock-lanes = <0x00>; 166 - data-lanes = <0x01 0x02>; 167 - clock-noncontinuous; 168 - phandle = <0x03>; 169 - }; 170 - }; 171 - }; 172 - }; 173 - 174 - fragment@102 { 175 - target = <0xffffffff>; 176 - 177 - __dormant__ { 178 - compatible = "brcm,bcm2835-unicam-legacy"; 179 - }; 180 - }; 181 - 182 - __overrides__ { 183 - rotation = [00 00 00 01 72 6f 74 61 74 69 6f 6e 3a 30 00]; 184 - orientation = [00 00 00 01 6f 72 69 65 6e 74 61 74 69 6f 6e 3a 30 00]; 185 - media-controller = [00 00 00 00 21 31 30 32 00]; 186 - cam0 = <0x05 0x74617267 0x65743a30 0x3d00ffff 0xffff0000 0x67461 0x72676574 0x3a303d00 0xffffffff 0x07 0x74617267 0x65743a30 0x3d00ffff 0xffff0000 0x87461 0x72676574 0x3a303d00 0xffffffff 0x01 0x636c6f63 0x6b733a30 0x3d00ffff 0xffff0000 0x17661 0x6e61312d 0x73757070 0x6c793a30 0x3d00ffff 0xffff0000 0x25644 0x442d7375 0x70706c79 0x3a303d00 0xffffffff>; 187 - vcm = [00 00 00 02 73 74 61 74 75 73 00 00 00 00 00 3d 34 00]; 188 - link-frequency = [00 00 00 04 6c 69 6e 6b 2d 66 72 65 71 75 65 6e 63 69 65 73 23 30 00]; 189 - }; 190 - 191 - __symbols__ { 192 - clk_frag = "/fragment@1"; 193 - reg_frag = "/fragment@3"; 194 - cam_reg = "/fragment@3/__overlay__"; 195 - i2c_frag = "/fragment@100"; 196 - cam_node = "/fragment@100/__overlay__/imx708@1a"; 197 - cam_endpoint = "/fragment@100/__overlay__/imx708@1a/port/endpoint"; 198 - vcm_node = "/fragment@100/__overlay__/dw9817@c"; 199 - csi_frag = "/fragment@101"; 200 - csi = "/fragment@101/__overlay__"; 201 - csi_ep = "/fragment@101/__overlay__/port/endpoint"; 202 - }; 203 - 204 - __fixups__ { 205 - i2c0if = "/fragment@0:target:0"; 206 - cam1_clk = "/fragment@1:target:0", "/fragment@100/__overlay__/imx708@1a:clocks:0"; 207 - i2c0mux = "/fragment@2:target:0"; 208 - cam1_reg = "/fragment@3:target:0", "/fragment@100/__overlay__/imx708@1a:vana1-supply:0", "/fragment@100/__overlay__/dw9817@c:VDD-supply:0"; 209 - i2c_csi_dsi = "/fragment@100:target:0"; 210 - cam_dummy_reg = "/fragment@100/__overlay__/imx708@1a:vana2-supply:0", "/fragment@100/__overlay__/imx708@1a:vdig-supply:0", "/fragment@100/__overlay__/imx708@1a:vddl-supply:0"; 211 - csi1 = "/fragment@101:target:0", "/fragment@102:target:0"; 212 - i2c_csi_dsi0 = "/__overrides__:cam0:14"; 213 - csi0 = "/__overrides__:cam0:32"; 214 - cam0_clk = "/__overrides__:cam0:50", "/__overrides__:cam0:86"; 215 - cam0_reg = "/__overrides__:cam0:68", "/__overrides__:cam0:110", "/__overrides__:cam0:132"; 216 - }; 217 - 218 - __local_fixups__ { 219 - 220 - fragment@4 { 221 - target = <0x00>; 222 - 223 - __overlay__ { 224 - lens-focus = <0x00>; 225 - }; 226 - }; 227 - 228 - fragment@100 { 229 - 230 - __overlay__ { 231 - 232 - imx708@1a { 233 - 234 - port { 235 - 236 - endpoint { 237 - remote-endpoint = <0x00>; 238 - }; 239 - }; 240 - }; 241 - }; 242 - }; 243 - 244 - fragment@101 { 245 - 246 - __overlay__ { 247 - 248 - port { 249 - 250 - endpoint { 251 - remote-endpoint = <0x00>; 252 - }; 253 - }; 254 - }; 255 - }; 256 - 257 - __overrides__ { 258 - rotation = <0x00>; 259 - orientation = <0x00>; 260 - cam0 = <0x00 0x12 0x24 0x36 0x48 0x5a 0x72>; 261 - vcm = <0x00>; 262 - link-frequency = <0x00>; 263 - }; 264 - }; 265 - }; 266 - ''; 267 - } 268 - ]; 269 - }; 270 - 271 - boot.initrd.supportedFilesystems.zfs = false; 272 - boot.supportedFilesystems.zfs = false; 273 - # Workaround for https://forums.raspberrypi.com/viewtopic.php?t=366155 274 - boot.kernelParams = ["brcmfmac.feature_disable=0x82000"]; 275 - 276 - #facter.reportPath = ./facter.json; 277 - 278 - systemd.tmpfiles.settings."10-iwd"."/var/lib/iwd/Beehive.psk"."L" = { 279 - mode = "0600"; 280 - argument = config.age.secrets."Beehive.psk".path; 281 - }; 282 - 283 - networking = { 284 - wireless.iwd.enable = true; 285 - domain = "lan"; 286 - interfaces.wlan0.useDHCP = true; 287 - }; 288 - 289 - services.ustreamer = { 290 - enable = true; 291 - extraArgs = [ 292 - "--resolution=1280x720" 293 - "--desired-fps=20" 294 - "--encoder=HW" 295 - "--format=MJPEG" 296 - ]; 297 - }; 298 - 299 - system.stateVersion = "25.05"; 300 - }
-30
nixosConfigurations/sonic/default.nix
··· 1 - { 2 - lib', 3 - self, 4 - ... 5 - }: let 6 - inherit (builtins) attrValues; 7 - in { 8 - flake.nixosConfigurations = lib'.mkHost { 9 - hostName = "sonic"; 10 - modules = 11 - [ 12 - (lib'.mkDeploy { 13 - targetHost = "root@sonic.lan"; 14 - extraFlags = ["--verbose" "--print-build-logs"]; 15 - }) 16 - 17 - ../common 18 - ../common/nix.nix 19 - ../common/nix-index.nix 20 - ../common/openssh.nix 21 - ../common/pkgs 22 - ../common/regional.nix 23 - ../common/server.nix 24 - ../common/utils.nix 25 - 26 - ./configuration.nix 27 - ] 28 - ++ attrValues self.nixosModules; 29 - }; 30 - }
+1 -5
nixosConfigurations/universe/postgres.nix
··· 1 - { 2 - config, 3 - pkgs, 4 - ... 5 - }: { 1 + {pkgs, ...}: { 6 2 services.postgresql = { 7 3 package = pkgs.postgresql_16; 8 4 extensions = ps: with ps; [pg_repack];
+1 -1
pkgs/default.nix
··· 14 14 }; 15 15 }; 16 16 }; 17 - flake.overlays.default = final: prev: { 17 + flake.overlays.default = final: _: { 18 18 channel-notifier = final.python3.pkgs.callPackage ./channel-notifier {}; 19 19 20 20 linux-bpir4 = final.callPackage ./linux-bpir4.nix {};