From c3c4ba98a1a9fe7c9d058f5c854815e74b5eb0a6 Mon Sep 17 00:00:00 2001 From: Christoph Schmatzler Date: Mon, 11 Aug 2025 15:29:11 +0000 Subject: [PATCH] yay --- flake.lock | 18 +++++++------- hosts/nixos/tahani/default.nix | 33 ++++++++++++++++++++++++++ profiles/base/home-manager/zellij.nix | 4 ++-- profiles/nixos/home-manager/zellij.nix | 4 ++-- profiles/nixos/packages.nix | 14 +---------- 5 files changed, 47 insertions(+), 26 deletions(-) diff --git a/flake.lock b/flake.lock index e9e68f9..9e04008 100644 --- a/flake.lock +++ b/flake.lock @@ -184,11 +184,11 @@ "nixpkgs": "nixpkgs_2" }, "locked": { - "lastModified": 1754886238, - "narHash": "sha256-LTQomWOwG70lZR+78ZYSZ9sYELWNq3HJ7/tdHzfif/s=", + "lastModified": 1754920958, + "narHash": "sha256-id7UDxIVVpRrcIt+y5gJQA8TEHLo4xcrrkuikIX+TQk=", "owner": "nix-community", "repo": "home-manager", - "rev": "0d492b89d1993579e63b9dbdaed17fd7824834da", + "rev": "e11d6c321f3f848178a3fb2a8984aa5fe08c0996", "type": "github" }, "original": { @@ -216,11 +216,11 @@ "homebrew-cask": { "flake": false, "locked": { - "lastModified": 1754888431, - "narHash": "sha256-THFqG3phkQl9RTqOWmdG9tdwi8B2fbc+q80xKnRLuuE=", + "lastModified": 1754920273, + "narHash": "sha256-YYbCs8TV5n9WuYgNLJlmVtq7pv5JKlQ+HxGp/gH/aZ4=", "owner": "homebrew", "repo": "homebrew-cask", - "rev": "163cca357e67a3b4a92e893337b3120d9706a9eb", + "rev": "42a9951dac62afe5dcd4364cfb0c38fe7bf08ae6", "type": "github" }, "original": { @@ -232,11 +232,11 @@ "homebrew-core": { "flake": false, "locked": { - "lastModified": 1754895029, - "narHash": "sha256-nyCEWDtQOWqPcuDQ7nudvTpc1E1iICEcHXOtW+0rPts=", + "lastModified": 1754920235, + "narHash": "sha256-mhb5fC3AXxKzvckSO6LDnzy4Q2RQvUm8mb38kJOsl5Q=", "owner": "homebrew", "repo": "homebrew-core", - "rev": "d8b3db519f1475b2eb7c907ae30c420f65f3088d", + "rev": "120959346c9ef2a21c4021f5a0a407a873d4d3b0", "type": "github" }, "original": { diff --git a/hosts/nixos/tahani/default.nix b/hosts/nixos/tahani/default.nix index 0da9c19..3fc1f63 100644 --- a/hosts/nixos/tahani/default.nix +++ b/hosts/nixos/tahani/default.nix @@ -43,6 +43,39 @@ useDHCP = true; }; + services.postgresql = { + enable = true; + package = pkgs.postgresql_17; + extensions = [pkgs.postgresql17Packages.timescaledb]; + enableTCPIP = true; + ensureDatabases = ["postgres"]; + ensureUsers = [ + { + name = "postgres"; + ensureDBOwnership = true; + } + { + name = "cschmatzler"; + ensureClauses = { + superuser = true; + createdb = true; + }; + } + ]; + authentication = pkgs.lib.mkOverride 10 '' + local all all trust + host all all 127.0.0.1/32 trust + host all all ::1/128 trust + ''; + settings = { + shared_preload_libraries = ["timescaledb"]; + }; + }; + + services.clickhouse = { + enable = true; + }; + home-manager.users.${user} = { programs.git.userEmail = "christoph@schmatzler.com"; }; diff --git a/profiles/base/home-manager/zellij.nix b/profiles/base/home-manager/zellij.nix index 52c3442..acb3a5a 100644 --- a/profiles/base/home-manager/zellij.nix +++ b/profiles/base/home-manager/zellij.nix @@ -1,7 +1,7 @@ -{pkgs, ...}: { +{lib, pkgs, ...}: { programs.zellij = { enable = true; - enableFishIntegration = false; + enableFishIntegration = lib.mkDefault false; settings = { theme = "catppuccin-latte"; default_layout = "compact"; diff --git a/profiles/nixos/home-manager/zellij.nix b/profiles/nixos/home-manager/zellij.nix index d444437..94f3bbb 100644 --- a/profiles/nixos/home-manager/zellij.nix +++ b/profiles/nixos/home-manager/zellij.nix @@ -1,5 +1,5 @@ -{pkgs, ...}: { +{ programs.zellij = { enableFishIntegration = true; }; -} \ No newline at end of file +} diff --git a/profiles/nixos/packages.nix b/profiles/nixos/packages.nix index 7c6eb16..8c148ed 100644 --- a/profiles/nixos/packages.nix +++ b/profiles/nixos/packages.nix @@ -1,14 +1,2 @@ {pkgs}: -with pkgs; [ - nix-ld - ncurses - automake - gnumake - gcc - pkg-config - openssl - zlib - libxml2 - libxslt - libiconv -] +with pkgs; []