refactoring
This commit is contained in:
parent
9313d89b15
commit
3adc5e9f73
40 changed files with 73 additions and 73 deletions
26
modules/mizukios/features/management/cockpit.nix
Normal file
26
modules/mizukios/features/management/cockpit.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
virtualisation.libvirtd = {
|
||||
enable = true;
|
||||
dbus.enable = true;
|
||||
};
|
||||
users.groups.libvirtd.members = [ "imnyang" ];
|
||||
|
||||
services.cockpit = {
|
||||
enable = true;
|
||||
plugins = with pkgs; [
|
||||
cockpit-machines
|
||||
cockpit-files
|
||||
cockpit-podman
|
||||
];
|
||||
openFirewall = true;
|
||||
allowed-origins = [ "*" ];
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
libvirt-dbus
|
||||
virt-manager
|
||||
virt-viewer
|
||||
];
|
||||
}
|
||||
4
modules/mizukios/features/management/docker.nix
Normal file
4
modules/mizukios/features/management/docker.nix
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{ ... }:
|
||||
{
|
||||
virtualisation.docker.enable = true;
|
||||
}
|
||||
29
modules/mizukios/features/management/podman.nix
Normal file
29
modules/mizukios/features/management/podman.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
virtualisation = {
|
||||
containers.enable = true;
|
||||
podman = {
|
||||
enable = true;
|
||||
dockerCompat = true;
|
||||
defaultNetwork.settings.dns_enabled = true; # Required for containers under podman-compose to be able to talk to each other.
|
||||
};
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
podman-compose
|
||||
podman
|
||||
podman-tui
|
||||
];
|
||||
|
||||
users.users.imnyang = {
|
||||
extraGroups = [
|
||||
"podman"
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue