My dotfiles for my nixos machines and infra
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Change folder structure

MrSnowy 82821bcc 8c1ae3f8

+55 -4
+3 -3
default.nix
··· 41 41 }; 42 42 43 43 modules = [ 44 - ./desktop/default.nix 44 + ./hosts/desktop/default.nix 45 45 ]; 46 46 }; 47 47 ··· 59 59 }; 60 60 61 61 modules = [ 62 - ./home-server/default.nix 62 + ./hosts/home-server/default.nix 63 63 ]; 64 64 }; 65 65 ··· 80 80 }; 81 81 82 82 modules = [ 83 - ./server/default.nix 83 + ./hosts/server/default.nix 84 84 ]; 85 85 }; 86 86 };
desktop/default.nix hosts/desktop/default.nix
desktop/hjem-rum/snowy.nix hosts/desktop/hjem-rum/snowy.nix
desktop/hjem-rum/snowy/hypr/hyprland.conf hosts/desktop/hjem-rum/snowy/hypr/hyprland.conf
desktop/hjem-rum/snowy/mpv/mpv.conf hosts/desktop/hjem-rum/snowy/mpv/mpv.conf
desktop/hjem-rum/snowy/stow.sh hosts/desktop/hjem-rum/snowy/stow.sh
desktop/system/configuration.nix hosts/desktop/system/configuration.nix
desktop/system/hardware-configuration.nix hosts/desktop/system/hardware-configuration.nix
desktop/system/networking.nix hosts/desktop/system/networking.nix
desktop/system/services.nix hosts/desktop/system/services.nix
home-server/default.nix hosts/home-server/default.nix
home-server/home-manager/apps/fish.nix hosts/home-server/home-manager/apps/fish.nix
home-server/home-manager/user.nix hosts/home-server/home-manager/user.nix
home-server/justfile hosts/home-server/justfile
home-server/ports.nix hosts/home-server/ports.nix
home-server/system/configuration.nix hosts/home-server/system/configuration.nix
home-server/system/hardware-configuration.nix hosts/home-server/system/hardware-configuration.nix
home-server/system/network.nix hosts/home-server/system/network.nix
home-server/system/services.nix hosts/home-server/system/services.nix
+50
hosts/server/services/postgres.nix
··· 1 + { 2 + config, 3 + pkgs, 4 + ... 5 + }: 6 + 7 + { 8 + services = { 9 + postgresql = { 10 + enable = true; 11 + package = pkgs.postgresql_18; 12 + enableTCPIP = false; 13 + 14 + settings = { 15 + port = config.ports.postgres; 16 + }; 17 + 18 + ensureDatabases = [ "ente_db" ]; 19 + ensureUsers = [ 20 + { 21 + name = "ente"; 22 + ensureClauses = { 23 + login = true; 24 + }; 25 + } 26 + ]; 27 + 28 + authentication = pkgs.lib.mkOverride 10 '' 29 + #type database user auth-method [auth-options] 30 + local all postgres trust 31 + 32 + #type database user address auth-method [auth-options] 33 + host ente_db ente localhost scram-sha-256 34 + ''; 35 + 36 + initialScript = config.sops.secrets.postgres_sql.path; 37 + }; 38 + 39 + postgresqlBackup = { 40 + enable = true; 41 + backupAll = true; 42 + 43 + location = "/var/backup/postgresql"; 44 + 45 + compression = "zstd"; 46 + compressionLevel = 19; 47 + }; 48 + }; 49 + 50 + }
server/containers/default.nix hosts/server/containers/default.nix
server/containers/nixos-mailserver.nix hosts/server/containers/nixos-mailserver.nix
server/default.nix hosts/server/default.nix
server/home-manager/apps/fastfetch.nix hosts/server/home-manager/apps/fastfetch.nix
server/home-manager/apps/fish.nix hosts/server/home-manager/apps/fish.nix
server/home-manager/apps/helix.nix hosts/server/home-manager/apps/helix.nix
server/home-manager/snow.nix hosts/server/home-manager/snow.nix
server/services/caddy.nix hosts/server/services/caddy.nix
server/services/default.nix hosts/server/services/default.nix
server/services/garage.nix hosts/server/services/garage.nix
server/services/incus.nix hosts/server/services/incus.nix
server/services/random.nix hosts/server/services/random.nix
server/system/configuration.nix hosts/server/system/configuration.nix
server/system/hardware-configuration.nix hosts/server/system/hardware-configuration.nix
server/system/network.nix hosts/server/system/network.nix
+2 -1
server/system/ports.nix hosts/server/system/ports.nix
··· 1 1 # All http ports 2 - { lib, config, ... }: 2 + { lib, ... }: 3 3 4 4 { 5 5 options.ports = lib.mkOption { ··· 34 34 35 35 syncthing = 3020; 36 36 headscale = 3443; 37 + postgres = 5432; 37 38 incus = 8444; 38 39 }; 39 40 };