commit b440d12d5b6847eee02f094b570d4b647a3cd21d
parent 083bd09ae4033e1116a0fc32ed8f41f1e09f5c1a
Author: breadcat <breadcat@users.noreply.github.com>
Date: Mon, 15 Sep 2025 14:12:39 +0100
Iamb config using variables
Diffstat:
4 files changed, 20 insertions(+), 4 deletions(-)
diff --git a/entrypoint.nix b/entrypoint.nix
@@ -5,7 +5,7 @@
...
}: let
vars = import ./variables.nix { inherit lib; };
- inherit (vars) fullname username domain email sshkey sshport timezone htpasswd vpnusername vpnpassword todosecret privatekey;
+ inherit (vars) fullname username domain email sshkey sshport timezone htpasswd vpnusername vpnpassword todosecret privatekey matrixuser matrixserver;
hostname =
if builtins.pathExists "/etc/hostname"
@@ -16,6 +16,6 @@
osConfigPath = ./machines + "/${machine}.nix";
in {
imports = [
- (import osConfigPath { inherit config pkgs lib fullname username domain email sshkey sshport timezone htpasswd vpnusername vpnpassword todosecret privatekey machine ; })
+ (import osConfigPath { inherit config pkgs lib fullname username domain email sshkey sshport timezone htpasswd vpnusername vpnpassword todosecret privatekey machine matrixuser matrixserver ; })
];
}
\ No newline at end of file
diff --git a/home/iamb.nix b/home/iamb.nix
@@ -0,0 +1,14 @@
+{ matrixuser, matrixserver, ... }:
+
+{
+ programs.iamb = {
+ enable = true;
+ settings = {
+ "default_profile" = "user";
+ profiles.user = {
+ "user_id" = "${matrixuser}";
+ "url" = "${matrixserver}";
+ };
+ };
+ };
+}
diff --git a/machines/minerva.nix b/machines/minerva.nix
@@ -43,7 +43,7 @@ in
(import ../home/git.nix {inherit fullname email;})
../home/htop.nix
../home/hyprland.nix
- ../home/iamb.nix
+ (import ../home/iamb.nix {inherit matrixuser matrixserver;})
../home/lf.nix
../home/mpv.nix
../home/neovim.nix
diff --git a/variables.sample.nix b/variables.sample.nix
@@ -13,6 +13,8 @@ let
vpnpassword = "";
todosecret = "JWTtoken";
privatekey = "path/to/private.key";
+ matrixuser = "";
+ matrixserver = "";
in {
- inherit fullname username domain email sshkey sshport timezone vpnusername vpnpassword todosecret privatekey;
+ inherit fullname username domain email sshkey sshport timezone vpnusername vpnpassword todosecret privatekey matrixuser matrixserver;
}
\ No newline at end of file