2023-06-22 18:44:25 +02:00
|
|
|
{ home-manager, stylix, ... }:
|
2023-06-22 17:43:19 +02:00
|
|
|
|
2023-06-12 20:51:30 +02:00
|
|
|
{
|
|
|
|
containers.dev = {
|
|
|
|
privateNetwork = true;
|
|
|
|
ephemeral = true;
|
|
|
|
hostAddress = "192.168.100.30";
|
|
|
|
localAddress = "192.168.100.31";
|
|
|
|
|
|
|
|
bindMounts = {
|
|
|
|
"/mnt" = {
|
2023-06-22 17:43:19 +02:00
|
|
|
hostPath = "/home/user/containers/dev";
|
2023-06-12 20:51:30 +02:00
|
|
|
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-12 20:51:30 +02:00
|
|
|
};
|
|
|
|
|
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, ... }: {
|
2023-06-12 20:51:30 +02:00
|
|
|
imports = [
|
|
|
|
home-manager.nixosModules.home-manager
|
2023-06-22 18:44:25 +02:00
|
|
|
stylix.nixosModules.stylix
|
|
|
|
../setup.nix
|
2023-06-21 00:51:39 +02:00
|
|
|
../modules/nix.nix
|
2023-06-16 20:05:23 +02:00
|
|
|
../modules/fish.nix
|
2023-06-12 20:51:30 +02:00
|
|
|
];
|
|
|
|
|
2023-06-16 13:47:20 +02:00
|
|
|
home-manager.sharedModules = [
|
2023-06-16 19:15:44 +02:00
|
|
|
../home/git.nix
|
|
|
|
../home/neovim.nix
|
2023-06-21 00:52:13 +02:00
|
|
|
../home/htop.nix
|
2023-06-16 13:47:20 +02:00
|
|
|
];
|
2023-06-12 20:51:30 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|