From 9b5af0c075a3527365bb0d5fe7b85d825825f7e1 Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Mon, 2 Dec 2024 10:45:17 -0500 Subject: [PATCH] conduit and other changes --- .gitattributes | 1 + configuration.nix | 2 ++ flake.lock | 18 ++++++++--------- flake.nix | 12 ++++------- secrets/matrix_reg_token.nix | Bin 0 -> 134 bytes services/caddy.nix | 20 +++++++++++++++++- services/matrix.nix | 38 +++++++++++++++++++++++++++++++++++ 7 files changed, 73 insertions(+), 18 deletions(-) create mode 100644 secrets/matrix_reg_token.nix create mode 100644 services/matrix.nix diff --git a/.gitattributes b/.gitattributes index 4910fb3..59bbd76 100644 --- a/.gitattributes +++ b/.gitattributes @@ -3,3 +3,4 @@ secrets/hashedPass filter=git-crypt diff=git-crypt secrets/minecraft-whitelist.nix filter=git-crypt diff=git-crypt secrets/wg0.conf filter=git-crypt diff=git-crypt secrets/caddy_auth.nix filter=git-crypt diff=git-crypt +secrets/matrix_reg_token.nix filter=git-crypt diff=git-crypt diff --git a/configuration.nix b/configuration.nix index 4c2e6d1..78f947f 100644 --- a/configuration.nix +++ b/configuration.nix @@ -19,6 +19,8 @@ ./services/wg.nix ./services/qbittorrent.nix ./services/bitmagnet.nix + + ./services/matrix.nix ]; systemd.targets = { diff --git a/flake.lock b/flake.lock index 0365f42..754ba3c 100644 --- a/flake.lock +++ b/flake.lock @@ -43,11 +43,11 @@ ] }, "locked": { - "lastModified": 1732499634, - "narHash": "sha256-RFtqNl1OOi5uKxP2UwYKz4zknpG7CnaocqOf7jcp1AY=", + "lastModified": 1733104667, + "narHash": "sha256-77V9I6NiwUaDswdsc5TilIREd7OFs8UAVQ3+++cIPN0=", "owner": "Infinidoge", "repo": "nix-minecraft", - "rev": "6f29ed33273eef383a33ac7e10e6cfb4949ef3d4", + "rev": "5747ec35c936d9d9f58c281111f5ab7115fe13cc", "type": "github" }, "original": { @@ -58,11 +58,11 @@ }, "nixos-hardware": { "locked": { - "lastModified": 1732483221, - "narHash": "sha256-kF6rDeCshoCgmQz+7uiuPdREVFuzhIorGOoPXMalL2U=", + "lastModified": 1733139194, + "narHash": "sha256-PVQW9ovo0CJbhuhCsrhFJGGdD1euwUornspKpBIgdok=", "owner": "NixOS", "repo": "nixos-hardware", - "rev": "45348ad6fb8ac0e8415f6e5e96efe47dd7f39405", + "rev": "c6c90887f84c02ce9ebf33b95ca79ef45007bf88", "type": "github" }, "original": { @@ -74,11 +74,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1732014248, - "narHash": "sha256-y/MEyuJ5oBWrWAic/14LaIr/u5E0wRVzyYsouYY3W6w=", + "lastModified": 1733015953, + "narHash": "sha256-t4BBVpwG9B4hLgc6GUBuj3cjU7lP/PJfpTHuSqE+crk=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "23e89b7da85c3640bbc2173fe04f4bd114342367", + "rev": "ac35b104800bff9028425fec3b6e8a41de2bbfff", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index 1cf68f3..1264196 100644 --- a/flake.nix +++ b/flake.nix @@ -3,7 +3,6 @@ inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; - # nixpkgs.url = "github:NixOS/nixpkgs/master"; nixos-hardware.url = "github:NixOS/nixos-hardware/master"; @@ -97,14 +96,11 @@ # import the `services.qbittorrent` module (nixpkgs-qbt + "/nixos/modules/services/torrent/qbittorrent.nix") - # get nix-minercaft working! + # get nix-minecraft working! nix-minecraft.nixosModules.minecraft-servers - ( - { ... }: - { - nixpkgs.overlays = [ nix-minecraft.overlay ]; - } - ) + { + nixpkgs.overlays = [ nix-minecraft.overlay ]; + } ] ++ (with nixos-hardware.nixosModules; [ common-cpu-amd-pstate diff --git a/secrets/matrix_reg_token.nix b/secrets/matrix_reg_token.nix new file mode 100644 index 0000000000000000000000000000000000000000..52490c1df3cc68d7a18880c8386f2de6a393788b GIT binary patch literal 134 zcmZQ@_Y83kiVO&02;KN1=;o}6@0aqQeOYiT-&Mvq;O(~etBjKFv!6Kk;+Nju6@g`$ zA9gk|A6@%-sf2#I;*-yhITyZ5c`UPYW~1nCk*bx&w(i0c&IblaUtn2rGMLR|(W99C sg6B