From dd6f43e02da9c161dca2ac0b79db07069600223d Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Fri, 23 Jun 2023 10:39:37 -0400 Subject: [PATCH] containers: Add iamb iamb is a TUI matrix client written in Rust. --- containers/default.nix | 1 + containers/iamb.nix | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 containers/iamb.nix diff --git a/containers/default.nix b/containers/default.nix index 849bf61..120191f 100644 --- a/containers/default.nix +++ b/containers/default.nix @@ -2,6 +2,7 @@ imports = [ ./dev.nix ./gui.nix + ./iamb.nix ./obsidian.nix ./rar.nix ./srb2.nix diff --git a/containers/iamb.nix b/containers/iamb.nix new file mode 100644 index 0000000..9233a48 --- /dev/null +++ b/containers/iamb.nix @@ -0,0 +1,40 @@ +{ stylix, home-manager, ... }: + +{ + containers.iamb = { + privateNetwork = true; + ephemeral = true; + hostAddress = "192.168.100.70"; + localAddress = "192.168.100.71"; + + bindMounts = { + "/home/user" = { + hostPath = "/home/user/containers/iamb"; + isReadOnly = false; + }; + + waylandDisplay = rec { + hostPath = "/run/user/1000"; + mountPoint = hostPath; + }; + + x11Display = rec { + hostPath = "/tmp/.X11-unix"; + mountPoint = hostPath; + isReadOnly = true; + }; + }; + + config = { pkgs, ... }: { + imports = [ + stylix.nixosModules.stylix + home-manager.nixosModules.home-manager + ../setup.nix + ]; + + environment.systemPackages = with pkgs; [ + iamb + ]; + }; + }; +}