mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
profiles/dev: separate containers and virtual machines setup
This commit is contained in:
parent
3d94c89bea
commit
40d286ac3a
@ -14,7 +14,8 @@ in
|
||||
profiles.dev = {
|
||||
enable = true;
|
||||
extras.enable = true;
|
||||
virtualization.enable = true;
|
||||
containers.enable = true;
|
||||
virtual-machines.enable = true;
|
||||
neovim.enable = true;
|
||||
};
|
||||
|
||||
|
@ -33,5 +33,5 @@
|
||||
|
||||
# Setting the development environment mainly for container-related work.
|
||||
profiles.dev.enable = true;
|
||||
profiles.dev.virtualization.enable = true;
|
||||
profiles.dev.containers.enable = true;
|
||||
}
|
||||
|
@ -7,6 +7,7 @@ in {
|
||||
enable = lib.mkEnableOption "basic configuration for software development";
|
||||
extras.enable = lib.mkEnableOption "additional shell utilities";
|
||||
containers.enable = lib.mkEnableOption "containers setup";
|
||||
virtual-machines.enable = lib.mkEnableOption "virtual machines setup";
|
||||
neovim.enable = lib.mkEnableOption "Neovim setup";
|
||||
};
|
||||
|
||||
@ -122,7 +123,7 @@ in {
|
||||
})
|
||||
|
||||
# !!! Please add your user to the "libvirtd" group.
|
||||
(lib.mkIf cfg.virtualization.enable {
|
||||
(lib.mkIf cfg.containers.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
dive # Dive into container images.
|
||||
];
|
||||
@ -163,6 +164,12 @@ in {
|
||||
"registry.opensuse.org"
|
||||
];
|
||||
};
|
||||
})
|
||||
|
||||
(lib.mkIf cfg.virtual-machines.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
virt-manager # An interface for those who are lazy to read a reference manual and create a 1000-line configuration per machine.
|
||||
];
|
||||
|
||||
# Virtual machines, son. They open in response to physical needs to
|
||||
# foreign environments.
|
||||
|
Loading…
Reference in New Issue
Block a user