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 ./zed.nix
./pass.nix ./pass.nix
./halloy.nix ./halloy.nix
./ai.nix
]; ];
} }

View file

@ -152,6 +152,9 @@ in {
}; };
startup = [ 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}'"; 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 = '' extraSessionCommands = ''
export SDL_VIDEODRIVER=wayland export SDL_VIDEODRIVER=wayland
# needs qt5.qtwayland in systemPackages # needs qt5.qtwayland in systemPackages

View file

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

View file

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

View file

@ -71,7 +71,7 @@ in {
enableNotifications = true; enableNotifications = true;
}; };
}; };
networking.useDHCP = false; # The global useDHCP flag is deprecated, therefore explicitly set to false here. networking.useDHCP = false; # The global useDHCP flag is deprecated, therefore explicitly set to false here.
programs.dconf.enable = true; programs.dconf.enable = true;