add damocles container

This commit is contained in:
müde 2026-04-10 11:49:11 +02:00
parent fb7d4981b1
commit f30165eada
3 changed files with 27 additions and 0 deletions

View file

@ -132,6 +132,9 @@
epimetheus = {
system = "aarch64-linux";
};
damocles = {
system = "x86_64-linux";
};
};
inherit (nixpkgs) lib;
forDevice = f: lib.mapAttrs (device: value: f (value // { inherit device; })) devices;

View file

@ -0,0 +1,18 @@
{ pkgs, ... }:
{
boot.isContainer = true;
allowedUnfreePackages = [ "claude-code" ];
environment.systemPackages = with pkgs; [
unstable.claude-code
git
];
users.users.muede = {
isNormalUser = true;
extraGroups = [ "wheel" ];
};
security.sudo.wheelNeedsPassword = false;
}

View file

@ -60,5 +60,11 @@
];
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
containers.damocles = {
autoStart = false;
privateNetwork = false;
path = self.nixosConfigurations.damocles.config.system.build.toplevel;
};
};
}