mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-06-19 17:28:49 +02:00
containers: Merge dev container with setup
This change further reduces build times, removes duplicate code, and makes things simpler overall.
This commit is contained in:
parent
374a7cbe19
commit
5c38772eca
@ -1,6 +1,5 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./dev.nix
|
|
||||||
./wine.nix
|
./wine.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -1,55 +0,0 @@
|
|||||||
{ 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
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
@ -17,10 +17,12 @@
|
|||||||
|
|
||||||
home-manager.sharedModules = [
|
home-manager.sharedModules = [
|
||||||
./home/fish.nix
|
./home/fish.nix
|
||||||
|
./home/git.nix
|
||||||
./home/gtk.nix
|
./home/gtk.nix
|
||||||
./home/htop.nix
|
./home/htop.nix
|
||||||
./home/joshuto.nix
|
./home/joshuto.nix
|
||||||
./home/kitty.nix
|
./home/kitty.nix
|
||||||
|
./home/neovim.nix
|
||||||
./home/xcursor.nix
|
./home/xcursor.nix
|
||||||
./home/xresources.nix
|
./home/xresources.nix
|
||||||
];
|
];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user