stt, mem0, rofi-project-opener
This commit is contained in:
79
home/features/desktop/AGENTS.md
Normal file
79
home/features/desktop/AGENTS.md
Normal file
@@ -0,0 +1,79 @@
|
||||
# DESKTOP FEATURES (home-manager)
|
||||
|
||||
**Wayland/Hyprland environment with color-coordinated tooling**
|
||||
|
||||
## OVERVIEW
|
||||
12 modular desktop features with nix-colors (Dracula) integration across all components.
|
||||
|
||||
## STRUCTURE
|
||||
```
|
||||
desktop/
|
||||
├── default.nix # Imports + XDG + Kitty config
|
||||
├── coding.nix # Development tools (VSCode, etc.)
|
||||
├── crypto.nix # Crypto wallets/tools
|
||||
├── fonts.nix # Font packages
|
||||
├── gaming.nix # Gaming tools/Steam
|
||||
├── hyprland.nix # Hyprland WM configuration
|
||||
├── media.nix # Media players/editors
|
||||
├── office.nix # LibreOffice, document tools
|
||||
├── rofi.nix # Application launcher
|
||||
├── theme.nix # GTK/Qt theming
|
||||
├── wayland.nix # Wayland utilities
|
||||
└── webapps.nix # Browser-based apps
|
||||
```
|
||||
|
||||
## WHERE TO LOOK
|
||||
|
||||
| Task | Location | Notes |
|
||||
|------|----------|-------|
|
||||
| Add desktop app | Relevant feature .nix | Update home.packages |
|
||||
| Configure Hyprland | hyprland.nix | Window manager settings |
|
||||
| Fix colors | Check colorScheme references | Uses config.colorScheme.palette.base* |
|
||||
| Add font | fonts.nix | Increases system closure size |
|
||||
|
||||
## CONVENTIONS
|
||||
|
||||
### Color Scheme Integration
|
||||
All color-aware tools reference `config.colorScheme.palette.base00` through `base0F`:
|
||||
- **base00-07**: Grayscale (dark to light)
|
||||
- **base08**: Red/errors
|
||||
- **base09**: Orange
|
||||
- **base0A**: Yellow/strings
|
||||
- **base0B**: Green/functions
|
||||
- **base0C**: Cyan
|
||||
- **base0D**: Blue/types
|
||||
- **base0E**: Purple/constants
|
||||
- **base0F**: Brown
|
||||
|
||||
Template:
|
||||
```nix
|
||||
foreground = "#${config.colorScheme.palette.base05}";
|
||||
background = "#${config.colorScheme.palette.base00}";
|
||||
```
|
||||
|
||||
### Session Variables
|
||||
Set in default.nix for Wayland/Hyprland:
|
||||
```nix
|
||||
NIXOS_OZONE_WL = "1";
|
||||
QT_QPA_PLATFORM = "wayland";
|
||||
XDG_CURRENT_DESKTOP = "Hyprland";
|
||||
```
|
||||
|
||||
### XDG Defaults
|
||||
- **PDF**: okular
|
||||
- **Text**: nvim
|
||||
- **Browser**: Zen (io.github.zen_browser.zen)
|
||||
- **Archive**: file-roller
|
||||
|
||||
## ANTI-PATTERNS
|
||||
|
||||
- **DON'T** hardcode hex colors - use colorScheme palette
|
||||
- **DON'T** install fonts globally - keep in user packages
|
||||
- **DON'T** bypass XDG defaults - set in mimeApps
|
||||
|
||||
## NOTES
|
||||
|
||||
- Kitty terminal configured in default.nix (not separate file)
|
||||
- Bibata-Modern-Ice cursor theme hardcoded
|
||||
- Session path includes cargo, npm-global, bun
|
||||
- Desktop features are always-enabled (no feature flags in this dir)
|
||||
@@ -14,6 +14,7 @@
|
||||
./rofi.nix
|
||||
./theme.nix
|
||||
./wayland.nix
|
||||
./webapps.nix
|
||||
];
|
||||
|
||||
xdg = {
|
||||
@@ -51,7 +52,7 @@
|
||||
XDG_SESSION_TYPE = "wayland";
|
||||
XDG_SESSION_DESKTOP = "Hyprland";
|
||||
};
|
||||
home.sessionPath = ["\${XDG_BIN_HOME}" "\${HOME}/.cargo/bin" "$HOME/.npm-global/bin"];
|
||||
home.sessionPath = ["\${XDG_BIN_HOME}" "\${HOME}/.cargo/bin" "$HOME/.npm-global/bin" "$HOME/.cache/.bun/bin"];
|
||||
|
||||
fonts.fontconfig.enable = true;
|
||||
|
||||
@@ -125,7 +126,7 @@
|
||||
|
||||
home.packages = with pkgs; [
|
||||
appimage-run
|
||||
anytype
|
||||
stable.anytype
|
||||
# blueberry
|
||||
bemoji
|
||||
brave
|
||||
@@ -165,7 +166,6 @@
|
||||
telegram-desktop
|
||||
vivaldi
|
||||
vivaldi-ffmpeg-codecs
|
||||
warp-terminal
|
||||
# wl-clipboard
|
||||
# wlogout
|
||||
# wtype
|
||||
|
||||
@@ -169,13 +169,13 @@ in {
|
||||
"$mainMod SHIFT, S, exec, uwsm app -- rofi -show emoji"
|
||||
"$mainMod, P, exec, uwsm app -- rofi-pass"
|
||||
"$mainMod SHIFT, P, pseudo"
|
||||
"$mainMod, R, exec, stt-ptt start"
|
||||
"$mainMod, J, togglesplit"
|
||||
"$mainMod, h, movefocus, l"
|
||||
"$mainMod, l, movefocus, r"
|
||||
"$mainMod, k, movefocus, u"
|
||||
"$mainMod, j, movefocus, d"
|
||||
"$mainMod, 1, workspace, 1"
|
||||
|
||||
"$mainMod, 2, workspace, 2"
|
||||
"$mainMod, 3, workspace, 3"
|
||||
"$mainMod, 4, workspace, 4"
|
||||
@@ -198,7 +198,9 @@ in {
|
||||
"$mainMod, mouse_down, workspace, e+1"
|
||||
"$mainMod, mouse_up, workspace, e-1"
|
||||
];
|
||||
|
||||
bindr = [
|
||||
"$mainMod, R, exec, stt-ptt stop"
|
||||
];
|
||||
bindm = [
|
||||
"$mainMod, mouse:272, movewindow"
|
||||
"$mainMod, mouse:273, resizewindow"
|
||||
|
||||
@@ -179,5 +179,13 @@ in {
|
||||
}
|
||||
'');
|
||||
};
|
||||
cli.rofi-project-opener = {
|
||||
enable = true;
|
||||
projectDirs = [
|
||||
"$HOME/p/NIX"
|
||||
];
|
||||
terminal = pkgs.kitty;
|
||||
terminalCommand = "opencode";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
icons = {
|
||||
teams = pkgs.fetchurl {
|
||||
url = "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/microsoft-teams.svg";
|
||||
sha256 = "sha256-Pr9QS8nnXJq97r4/G3c6JXi34zxHl0ps9gcyI8cN/s8=";
|
||||
};
|
||||
outlook = pkgs.fetchurl {
|
||||
url = "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/microsoft-outlook.svg";
|
||||
sha256 = "sha256-3u8t5QNHFZvrAegxBiGicO4PjtMWhEaQSCv7MSSfLLc=";
|
||||
};
|
||||
opencode = pkgs.fetchurl {
|
||||
url = "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/opencode-dark.svg";
|
||||
sha256 = "1lms4f8habamvdh2qqqz9psx4py9wx23mmlkkds44pvrbq3bkj3n";
|
||||
};
|
||||
};
|
||||
in {
|
||||
xdg.desktopEntries = {
|
||||
teams = {
|
||||
name = "Microsoft Teams";
|
||||
exec = "launch-webapp https://teams.microsoft.com";
|
||||
comment = "Open Microsoft Teams as a Desktop App";
|
||||
categories = ["Application" "Network" "Chat"];
|
||||
terminal = false;
|
||||
icon = icons.teams;
|
||||
};
|
||||
outlook = {
|
||||
name = "Microsoft Outlook";
|
||||
exec = "launch-webapp https://outlook.office.com/mail/";
|
||||
comment = "Open Microsoft Outlook as a Desktop App";
|
||||
categories = ["Application" "Network"];
|
||||
terminal = false;
|
||||
icon = icons.outlook;
|
||||
};
|
||||
basecamp = {
|
||||
name = "Basecamp";
|
||||
exec = "launch-webapp https://3.basecamp.com/5996442/";
|
||||
comment = "Open Basecamp as a Desktop App";
|
||||
categories = ["Application" "Network"];
|
||||
terminal = false;
|
||||
icon = "/home/sascha.koenig/.local/share/icons/basecamp-logo.png";
|
||||
};
|
||||
opencode = {
|
||||
name = "Opencode";
|
||||
exec = "rofi-project-opener";
|
||||
comment = "Open Opencode Terminal App";
|
||||
categories = ["Application" "Development"];
|
||||
terminal = false;
|
||||
icon = icons.opencode;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user