1
0
forked from extern/nix-config
donovanglover-nix-config/containers/dev.nix

57 lines
1.1 KiB
Nix
Raw Normal View History

2023-06-22 18:44:25 +02:00
{ 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;
};
2023-06-24 18:06:13 +02:00
waylandDisplay = rec {
hostPath = "/run/user/1000";
mountPoint = hostPath;
};
x11Display = rec {
hostPath = "/tmp/.X11-unix";
mountPoint = hostPath;
isReadOnly = true;
};
dri = rec {
hostPath = "/dev/dri";
mountPoint = hostPath;
};
};
2023-06-24 18:06:13 +02:00
allowedDevices = [
{
modifier = "rw";
node = "/dev/dri/renderD128";
}
];
2023-06-13 15:06:39 +02:00
config = { pkgs, ... }: {
imports = [
home-manager.nixosModules.home-manager
2023-06-22 18:44:25 +02:00
stylix.nixosModules.stylix
../setup.nix
../modules/nix.nix
2023-06-16 20:05:23 +02:00
../modules/fish.nix
];
home-manager.sharedModules = [
2023-06-16 19:15:44 +02:00
../home/git.nix
../home/neovim.nix
../home/htop.nix
];
};
};
}