1
0
forked from extern/nix-config
donovanglover-nix-config/containers/gui.nix
Donovan Glover 410e5f50bb
containers: Simplify
isReadOnly is true by default.
2023-07-07 05:26:52 -04:00

43 lines
850 B
Nix

{ home-manager, stylix, ... }:
{
containers.gui = {
privateNetwork = true;
ephemeral = true;
bindMounts = {
"/mnt" = {
hostPath = "/home/user/containers/gui";
isReadOnly = false;
};
waylandDisplay = rec {
hostPath = "/run/user/1000";
mountPoint = hostPath;
};
x11Display = rec {
hostPath = "/tmp/.X11-unix";
mountPoint = hostPath;
};
};
config = { pkgs, ... }: {
imports = [
home-manager.nixosModules.home-manager
stylix.nixosModules.stylix
../setup.nix
];
environment.systemPackages = with pkgs; [
audacity # Audio editing
gimp # Video editing
anki # Spaced repetition
sqlitebrowser # SQL
kanjidraw # Kanji draw
libreoffice
];
};
};
}