Compare commits

...

3 commits

6 changed files with 30 additions and 2 deletions

18
home/modules/ai.nix Normal file
View file

@ -0,0 +1,18 @@
{
pkgs,
lib,
config,
...
}:
with lib; let
cfg = config.local.programs.ai;
in {
options.local.programs.ai = {
enable = mkEnableOption "ai apps";
};
config = mkIf cfg.enable {
home.packages = with pkgs; [
claude-code
];
};
}

View file

@ -21,5 +21,6 @@
./zed.nix
./pass.nix
./halloy.nix
./ai.nix
];
}

View file

@ -152,6 +152,9 @@ in {
};
startup = [
{
command = "${lib.getExe pkgs.foot} --app-id scratchterm ${lib.getExe pkgs.tmux}";
}
{
command = "${lib.getExe pkgs.sway} 'workspace 1; exec ${lib.getExe pkgs.firefox}'";
}
@ -171,6 +174,11 @@ in {
];
};
extraConfig = ''
for_window [app_id="scratchterm"] floating enable
for_window [app_id="scratchterm"] move to scratchpad
'';
extraSessionCommands = ''
export SDL_VIDEODRIVER=wayland
# needs qt5.qtwayland in systemPackages

View file

@ -22,7 +22,7 @@ in {
font-italic = "JetBrainsMono Nerd Font:style=Italic:size=15";
font-bold-italic = "JetBrainsMono Nerd Font:style=Bold Italic:size=15";
dpi-aware = "yes";
initial-window-size-pixels = "1200x600";
initial-window-size-pixels = "1920x1080";
};
cursor = {

View file

@ -21,6 +21,7 @@
programs = {
gaming.enable = true;
mapping.enable = true;
ai.enable = true;
};
gui = {