diff --git a/flake.nix b/flake.nix index e864fc6..2a7ad86 100644 --- a/flake.nix +++ b/flake.nix @@ -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; diff --git a/nixosConfigurations/damocles/default.nix b/nixosConfigurations/damocles/default.nix new file mode 100644 index 0000000..36ef5b9 --- /dev/null +++ b/nixosConfigurations/damocles/default.nix @@ -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; +} diff --git a/nixosConfigurations/muede-lpt2/default.nix b/nixosConfigurations/muede-lpt2/default.nix index dcb580f..29f97bc 100644 --- a/nixosConfigurations/muede-lpt2/default.nix +++ b/nixosConfigurations/muede-lpt2/default.nix @@ -60,5 +60,11 @@ ]; boot.binfmt.emulatedSystems = [ "aarch64-linux" ]; + + containers.damocles = { + autoStart = false; + privateNetwork = false; + path = self.nixosConfigurations.damocles.config.system.build.toplevel; + }; }; }