diff options
| author | Franck Cuny <franck@fcuny.net> | 2025-08-12 10:05:08 -0700 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2025-08-12 10:05:08 -0700 |
| commit | 3c0ce6e60b69fbd7236aadd0b339341709c360bc (patch) | |
| tree | e63e428dd48e6a07b3dbc5709a5a1516e6e94c1f | |
| parent | add profile for motd (diff) | |
| download | infra-3c0ce6e60b69fbd7236aadd0b339341709c360bc.tar.gz | |
use podman for containers on nixos
| -rw-r--r-- | machines/nixos/x86_64-linux/do-rproxy/default.nix | 1 | ||||
| -rw-r--r-- | machines/nixos/x86_64-linux/synology-vm/default.nix | 1 | ||||
| -rw-r--r-- | profiles/admin-user/user.nix | 1 | ||||
| -rw-r--r-- | profiles/server.nix | 3 | ||||
| -rw-r--r-- | profiles/services/podman.nix | 5 |
5 files changed, 7 insertions, 4 deletions
diff --git a/machines/nixos/x86_64-linux/do-rproxy/default.nix b/machines/nixos/x86_64-linux/do-rproxy/default.nix index 9c61dc9..d6b357e 100644 --- a/machines/nixos/x86_64-linux/do-rproxy/default.nix +++ b/machines/nixos/x86_64-linux/do-rproxy/default.nix @@ -29,6 +29,7 @@ "${self}/profiles/core/motd.nix" "${self}/profiles/nix/gc.nix" "${self}/profiles/network/networkd.nix" + "${self}/profiles/services/podman.nix" ]; # do not use DHCP, as DigitalOcean provisions IPs using cloud-init diff --git a/machines/nixos/x86_64-linux/synology-vm/default.nix b/machines/nixos/x86_64-linux/synology-vm/default.nix index 3480706..7309285 100644 --- a/machines/nixos/x86_64-linux/synology-vm/default.nix +++ b/machines/nixos/x86_64-linux/synology-vm/default.nix @@ -43,6 +43,7 @@ "${self}/profiles/core/motd.nix" "${self}/profiles/nix/gc.nix" "${self}/profiles/network/networkd.nix" + "${self}/profiles/services/podman.nix" ]; # Use the systemd-boot EFI boot loader. diff --git a/profiles/admin-user/user.nix b/profiles/admin-user/user.nix index 1a6b1dc..d500650 100644 --- a/profiles/admin-user/user.nix +++ b/profiles/admin-user/user.nix @@ -16,7 +16,6 @@ ]; extraGroups = [ "wheel" - "docker" ]; }; }; diff --git a/profiles/server.nix b/profiles/server.nix index 9f9e01c..6fe6f22 100644 --- a/profiles/server.nix +++ b/profiles/server.nix @@ -8,9 +8,6 @@ ./default.nix ]; - #Virtualization settings - virtualisation.docker.enable = true; - boot.kernelPackages = pkgs.linuxPackages_latest; boot.kernel.sysctl = { diff --git a/profiles/services/podman.nix b/profiles/services/podman.nix new file mode 100644 index 0000000..4a132d2 --- /dev/null +++ b/profiles/services/podman.nix @@ -0,0 +1,5 @@ +{ + virtualisation.podman = { + enable = true; + }; +} |
