diff --git a/nix/configuration/configuration.nix b/nix/configuration/configuration.nix index aaf2cb3..d965cd4 100644 --- a/nix/configuration/configuration.nix +++ b/nix/configuration/configuration.nix @@ -26,6 +26,7 @@ in ./roles/build_in_ram ./roles/chromecast ./roles/chromium + ./roles/claude ./roles/d2 ./roles/direnv ./roles/disko diff --git a/nix/configuration/hosts/robot/default.nix b/nix/configuration/hosts/robot/default.nix index 2754f43..8e512ab 100644 --- a/nix/configuration/hosts/robot/default.nix +++ b/nix/configuration/hosts/robot/default.nix @@ -74,6 +74,7 @@ # nix.sshServe.enable = true; # nix.sshServe.keys = [ "ssh-dss AAAAB3NzaC1k... bob@example.org" ]; + me.claude.enable = true; me.dont_use_substituters.enable = true; me.minimal_base.enable = true; me.pi_coding_agent.enable = true; diff --git a/nix/configuration/roles/claude/default.nix b/nix/configuration/roles/claude/default.nix new file mode 100644 index 0000000..c40bda2 --- /dev/null +++ b/nix/configuration/roles/claude/default.nix @@ -0,0 +1,27 @@ +{ + config, + lib, + pkgs, + ... +}: + +{ + imports = [ ]; + + options.me = { + claude.enable = lib.mkOption { + type = lib.types.bool; + default = false; + example = true; + description = "Whether we want to install claude."; + }; + }; + + config = lib.mkIf config.me.claude.enable { + environment.systemPackages = with pkgs; [ + claude-code + ]; + + allowedUnfree = [ "claude-code" ]; + }; +}