No description
Find a file
2024-06-08 10:59:30 +00:00
webserver mv webserver 2024-06-08 07:24:24 +00:00
.gitignore poc: containerizable flake-backed nixos using arion 2024-06-07 17:34:23 +00:00
arion-compose.nix mv webserver 2024-06-08 07:24:24 +00:00
arion-pkgs.nix poc: containerizable flake-backed nixos using arion 2024-06-07 17:34:23 +00:00
flake.lock poc: containerizable flake-backed nixos using arion 2024-06-07 17:34:23 +00:00
flake.nix mv webserver 2024-06-08 07:24:24 +00:00
README.md update readme 2024-06-08 10:59:30 +00:00
standalone.nix poc: containerizable flake-backed nixos using arion 2024-06-07 17:34:23 +00:00

arion flake poc

demonstrate having a nixos flake you can test in a container too

usage

standalone

  • add a hardware-configuration.nix
  • switch to the config (probably should be done on a server):
sudo nixos-rebuild switch --flake .#default

container

# https://github.com/hercules-ci/arion/issues/230
nix run nixpkgs/23.11#arion -- up
# https://localhost:8000/

nixos host

  systemd.enableUnifiedCgroupHierarchy = false;
  virtualisation.podman.enable = true;
  virtualisation.podman.defaultNetwork.dnsname.enable = true;
  # Use your username instead of `myuser`
  users.extraUsers.myuser.extraGroups = ["podman"];
  virtualisation.podman.dockerSocket.enable = true;
  environment.systemPackages = [
     pkgs.docker-client
  ];