Compare commits
3 commits
38d35315bd
...
4ba629b0c3
| Author | SHA1 | Date | |
|---|---|---|---|
| 4ba629b0c3 | |||
| 7447b3a2e0 | |||
| 1242921bad |
6 changed files with 30 additions and 2 deletions
18
home/modules/ai.nix
Normal file
18
home/modules/ai.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
@ -21,5 +21,6 @@
|
|||
./zed.nix
|
||||
./pass.nix
|
||||
./halloy.nix
|
||||
./ai.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 = {
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@
|
|||
programs = {
|
||||
gaming.enable = true;
|
||||
mapping.enable = true;
|
||||
ai.enable = true;
|
||||
};
|
||||
|
||||
gui = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue