mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-22 08:14:00 +01:00
410e5f50bb
isReadOnly is true by default.
56 lines
1.0 KiB
Nix
56 lines
1.0 KiB
Nix
{ home-manager, stylix, ... }:
|
|
|
|
{
|
|
containers.dev = {
|
|
privateNetwork = true;
|
|
ephemeral = true;
|
|
hostAddress = "192.168.100.30";
|
|
localAddress = "192.168.100.31";
|
|
|
|
bindMounts = {
|
|
"/mnt" = {
|
|
hostPath = "/home/user/containers/dev";
|
|
isReadOnly = false;
|
|
};
|
|
|
|
waylandDisplay = rec {
|
|
hostPath = "/run/user/1000";
|
|
mountPoint = hostPath;
|
|
};
|
|
|
|
x11Display = rec {
|
|
hostPath = "/tmp/.X11-unix";
|
|
mountPoint = hostPath;
|
|
};
|
|
|
|
dri = rec {
|
|
hostPath = "/dev/dri";
|
|
mountPoint = hostPath;
|
|
};
|
|
};
|
|
|
|
allowedDevices = [
|
|
{
|
|
modifier = "rw";
|
|
node = "/dev/dri/renderD128";
|
|
}
|
|
];
|
|
|
|
config = { pkgs, ... }: {
|
|
imports = [
|
|
home-manager.nixosModules.home-manager
|
|
stylix.nixosModules.stylix
|
|
../setup.nix
|
|
../modules/nix.nix
|
|
../modules/fish.nix
|
|
];
|
|
|
|
home-manager.sharedModules = [
|
|
../home/git.nix
|
|
../home/neovim.nix
|
|
../home/htop.nix
|
|
];
|
|
};
|
|
};
|
|
}
|