Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6c6164043b | |||
| e02a0a29ea | |||
| 831698b766 | |||
| 336a174a17 | |||
| 70562ceef2 | |||
| ef5b67c3e9 |
File diff suppressed because it is too large
Load Diff
Generated
+44
-26
@@ -21,14 +21,31 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"agent-lib": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1780229583,
|
||||||
|
"narHash": "sha256-WxokKtyJ0fRiTNIaf+Tfd05GhZVsqoTP5Q0cXiNipsI=",
|
||||||
|
"path": "/home/m3tam3re/p/NIX/agent-lib",
|
||||||
|
"type": "path"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"path": "/home/m3tam3re/p/NIX/agent-lib",
|
||||||
|
"type": "path"
|
||||||
|
}
|
||||||
|
},
|
||||||
"agents": {
|
"agents": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1777399938,
|
"lastModified": 1778518220,
|
||||||
"narHash": "sha256-xXPqUQezDdDtF8MbpZnwD1HkybOYwF92evx8rJ6OXCU=",
|
"narHash": "sha256-6AQs9VZ0/DuD4njPbYHRE4v+SgJc6SBrGwemTWxikVc=",
|
||||||
"ref": "refs/heads/master",
|
"ref": "refs/heads/master",
|
||||||
"rev": "9a91f1ee0cf011a7eaf1f16a9e17610b0457e055",
|
"rev": "b6e1aaa6261c5056d024d8d4785659eaa4e675e6",
|
||||||
"revCount": 85,
|
"revCount": 87,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://code.m3ta.dev/m3tam3re/AGENTS"
|
"url": "https://code.m3ta.dev/m3tam3re/AGENTS"
|
||||||
},
|
},
|
||||||
@@ -146,11 +163,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1779113444,
|
"lastModified": 1780099287,
|
||||||
"narHash": "sha256-/L61sT1PIKmGWIQpIh0uJGH/ANvcsf6y4alxtb9kelg=",
|
"narHash": "sha256-efIPwVGtIWIjWcznhaop6XN6HxnOL8800hF6CBNvlqQ=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "74f170c62d57f90e656841f1f699e6bdf40f0a24",
|
"rev": "7d8127d308c3fb9664f7e643eec944be74ebb37d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -170,11 +187,11 @@
|
|||||||
"openspec": "openspec"
|
"openspec": "openspec"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1778508052,
|
"lastModified": 1779944037,
|
||||||
"narHash": "sha256-kxzZvJv757TGfHReR21aX6N/jkGMWzGSy9GQEclYD4Y=",
|
"narHash": "sha256-jO6zAJjgc9n3SeDJW1EbV6CEqOa9DK+2AhTgWc+ImHQ=",
|
||||||
"ref": "refs/heads/master",
|
"ref": "refs/heads/master",
|
||||||
"rev": "8113723a48c4afa016881ccd5bc4be3fad2c7d5f",
|
"rev": "ae1fb97c21b311dc03a46e8d50867048e5568c88",
|
||||||
"revCount": 294,
|
"revCount": 323,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "ssh://gitea@code.m3ta.dev/m3tam3re/nixpkgs"
|
"url": "ssh://gitea@code.m3ta.dev/m3tam3re/nixpkgs"
|
||||||
},
|
},
|
||||||
@@ -235,11 +252,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs-master": {
|
"nixpkgs-master": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1778507606,
|
"lastModified": 1779457550,
|
||||||
"narHash": "sha256-6Yc2dIhijc8G+dbMNocyclxF19dUrjaT+EeXGrXmXlg=",
|
"narHash": "sha256-yALoy2CrvwvNfwMtGZDRdc+jqVNHulyuM5iVK12lUAI=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "39a7b8d815fcc8b689d56fc4a3fa8de4ef93d169",
|
"rev": "a9c18fd234dbe4fd8de4bac53760b785c47e94ff",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -251,11 +268,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1777954456,
|
"lastModified": 1779560665,
|
||||||
"narHash": "sha256-hGdgeU2Nk87RAuZyYjyDjFL6LK7dAZN5RE9+hrDTkDU=",
|
"narHash": "sha256-tpyBcxPpcQb8ukyNF7DoCwfSY3VPsxHoYwj00Cayv5o=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "549bd84d6279f9852cae6225e372cc67fb91a4c1",
|
"rev": "64c08a7ca051951c8eae34e3e3cb1e202fe36786",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -267,11 +284,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_3": {
|
"nixpkgs_3": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1777954456,
|
"lastModified": 1779560665,
|
||||||
"narHash": "sha256-hGdgeU2Nk87RAuZyYjyDjFL6LK7dAZN5RE9+hrDTkDU=",
|
"narHash": "sha256-tpyBcxPpcQb8ukyNF7DoCwfSY3VPsxHoYwj00Cayv5o=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "549bd84d6279f9852cae6225e372cc67fb91a4c1",
|
"rev": "64c08a7ca051951c8eae34e3e3cb1e202fe36786",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -287,11 +304,11 @@
|
|||||||
"nixpkgs": "nixpkgs_3"
|
"nixpkgs": "nixpkgs_3"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1778506944,
|
"lastModified": 1780228894,
|
||||||
"narHash": "sha256-lU0Bleh0reE+WU7j8Uiqsu6ekPav50L8sXsgOvEQS+0=",
|
"narHash": "sha256-7u/krCQx3loaM+kNi5i4N5ZGprILDed8JOl6wFrDEqI=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "NUR",
|
"repo": "NUR",
|
||||||
"rev": "0166493cfe4e0e9927435c1cfbf5505cfb0d10d1",
|
"rev": "e9c97d6945177c6d9cea9e5b2f78bcbfdc3f56d2",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -308,11 +325,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1778120451,
|
"lastModified": 1779302169,
|
||||||
"narHash": "sha256-MUSPD16+hoFBfQWYahtNLN2BIFEAlFFo2KNofrc947g=",
|
"narHash": "sha256-OOSPtUXC4F2umtsZPkyWlPQxhXBsxF2vqBXLeI/lqIw=",
|
||||||
"owner": "Fission-AI",
|
"owner": "Fission-AI",
|
||||||
"repo": "OpenSpec",
|
"repo": "OpenSpec",
|
||||||
"rev": "053d8a59d587f3c027a06ad80503a6b43d4f2a92",
|
"rev": "79303b521068c5f525ee61db06b915fc44b098f4",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -324,6 +341,7 @@
|
|||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"agenix": "agenix",
|
"agenix": "agenix",
|
||||||
|
"agent-lib": "agent-lib",
|
||||||
"home-manager": "home-manager_2",
|
"home-manager": "home-manager_2",
|
||||||
"m3ta-nixpkgs": "m3ta-nixpkgs",
|
"m3ta-nixpkgs": "m3ta-nixpkgs",
|
||||||
"nix-colors": "nix-colors",
|
"nix-colors": "nix-colors",
|
||||||
|
|||||||
@@ -16,6 +16,11 @@
|
|||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
agent-lib = {
|
||||||
|
url = "path:/home/m3tam3re/p/NIX/agent-lib";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
|
||||||
agenix.url = "github:ryantm/agenix";
|
agenix.url = "github:ryantm/agenix";
|
||||||
|
|
||||||
nur.url = "github:nix-community/NUR";
|
nur.url = "github:nix-community/NUR";
|
||||||
@@ -30,12 +35,18 @@
|
|||||||
in {
|
in {
|
||||||
# Home-Manager modules — import in nixos-config via:
|
# Home-Manager modules — import in nixos-config via:
|
||||||
# imports = [ inputs.m3ta-home.homeManagerModules.default ];
|
# imports = [ inputs.m3ta-home.homeManagerModules.default ];
|
||||||
homeManagerModules = import ./modules { inherit inputs; selfPath = self.outPath; };
|
homeManagerModules = import ./modules {
|
||||||
|
inherit inputs;
|
||||||
|
selfPath = self.outPath;
|
||||||
|
};
|
||||||
|
|
||||||
# Library functions — use in nixos-config via:
|
# Library functions — use in nixos-config via:
|
||||||
# m3ta-lib = inputs.m3ta-home.lib;
|
# m3ta-lib = inputs.m3ta-home.lib;
|
||||||
# imports = [ (m3ta-lib.mkHome { ... }) ];
|
# imports = [ (m3ta-lib.mkHome { ... }) ];
|
||||||
lib = import ./lib {inherit inputs; selfPath = self.outPath;};
|
lib = import ./lib {
|
||||||
|
inherit inputs;
|
||||||
|
selfPath = self.outPath;
|
||||||
|
};
|
||||||
|
|
||||||
# Overlays (re-exports from m3ta-nixpkgs)
|
# Overlays (re-exports from m3ta-nixpkgs)
|
||||||
overlays = inputs.m3ta-nixpkgs.overlays;
|
overlays = inputs.m3ta-nixpkgs.overlays;
|
||||||
|
|||||||
@@ -80,6 +80,9 @@ in {
|
|||||||
in {
|
in {
|
||||||
imports =
|
imports =
|
||||||
[
|
[
|
||||||
|
# External Home Manager modules required by selectable profiles
|
||||||
|
inputs.agent-lib.homeManagerModules.default
|
||||||
|
|
||||||
# Paths module — must be first, provides m3taHome.paths.srcRoot
|
# Paths module — must be first, provides m3taHome.paths.srcRoot
|
||||||
../modules/paths.nix
|
../modules/paths.nix
|
||||||
baseModule
|
baseModule
|
||||||
|
|||||||
@@ -13,6 +13,9 @@
|
|||||||
in {
|
in {
|
||||||
default = {
|
default = {
|
||||||
imports = [
|
imports = [
|
||||||
|
# External modules
|
||||||
|
inputs.agent-lib.homeManagerModules.default
|
||||||
|
|
||||||
# Paths — must be first, provides "m3ta-home".paths.srcRoot
|
# Paths — must be first, provides "m3ta-home".paths.srcRoot
|
||||||
./paths.nix
|
./paths.nix
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
# Hyprland window manager — Lua config for Hyprland 0.55+
|
# Hyprland window manager with keybindings, window rules, idle/lock, and hyprpaper.
|
||||||
# Home-Manager configType = "lua" generates hyprland.lua using hl.* API.
|
|
||||||
# API reference: https://wiki.hypr.land/Configuring/Start/
|
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
@@ -8,22 +6,36 @@
|
|||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.desktop.wm.hyprland;
|
cfg = config.desktop.wm.hyprland;
|
||||||
p = config.colorScheme.palette;
|
|
||||||
in {
|
in {
|
||||||
options.desktop.wm.hyprland.enable = mkEnableOption "Hyprland window manager";
|
options.desktop.wm.hyprland.enable = mkEnableOption "Hyprland window manager";
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
configType = "lua";
|
configType = "hyprlang";
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
# ── Lua local variables (rendered as: local mainMod = "SUPER") ──
|
xwayland = {
|
||||||
mainMod = {_var = "SUPER";};
|
force_zero_scaling = true;
|
||||||
terminal = {_var = "ghostty";};
|
};
|
||||||
|
|
||||||
# ── Config sections (rendered as: hl.config({...})) ──
|
exec-once = [
|
||||||
config = {
|
"hyprpanel"
|
||||||
xwayland = {force_zero_scaling = true;};
|
"while ! hyprpaper-random; do sleep 0.5; done"
|
||||||
|
"wl-paste --type text --watch cliphist store"
|
||||||
|
"wl-paste --type image --watch cliphist store"
|
||||||
|
"vibetyper"
|
||||||
|
];
|
||||||
|
|
||||||
|
env = [
|
||||||
|
"XCURSOR_SIZE,32"
|
||||||
|
"HYPRCURSOR_THEME,Bibata-Modern-Ice"
|
||||||
|
"WLR_NO_HARDWARE_CURSORS,1"
|
||||||
|
"GTK_THEME,Dracula"
|
||||||
|
"XDG_CURRENT_DESKTOP,Hyprland"
|
||||||
|
"XDG_SESSION_TYPE,wayland"
|
||||||
|
"XDG_SESSION_DESKTOP,Hyprland"
|
||||||
|
"XKB_DEFAULT_LAYOUT,de"
|
||||||
|
"NIXOS_OZONE_WL,1"
|
||||||
|
];
|
||||||
|
|
||||||
input = {
|
input = {
|
||||||
kb_layout = "de,us";
|
kb_layout = "de,us";
|
||||||
@@ -38,10 +50,8 @@ in {
|
|||||||
gaps_in = 5;
|
gaps_in = 5;
|
||||||
gaps_out = 5;
|
gaps_out = 5;
|
||||||
border_size = 1;
|
border_size = 1;
|
||||||
col = {
|
"col.active_border" = "rgba(9742b5ee) rgba(9742b5ee) 45deg";
|
||||||
active_border = {colors = ["rgba(9742b5ee)" "rgba(9742b5ee)"]; angle = 45;};
|
"col.inactive_border" = "rgba(${config.colorScheme.palette.base03}aa)";
|
||||||
inactive_border = "rgba(${p.base03}aa)";
|
|
||||||
};
|
|
||||||
layout = "dwindle";
|
layout = "dwindle";
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -50,7 +60,8 @@ in {
|
|||||||
enabled = true;
|
enabled = true;
|
||||||
range = 60;
|
range = 60;
|
||||||
render_power = 3;
|
render_power = 3;
|
||||||
color = "rgba(${p.base00}66)";
|
color = "rgba(${config.colorScheme.palette.base00}66)";
|
||||||
|
offset = "1 2";
|
||||||
scale = 0.97;
|
scale = 0.97;
|
||||||
};
|
};
|
||||||
rounding = 8;
|
rounding = 8;
|
||||||
@@ -63,162 +74,151 @@ in {
|
|||||||
inactive_opacity = 0.5;
|
inactive_opacity = 0.5;
|
||||||
};
|
};
|
||||||
|
|
||||||
animations = {enabled = true;};
|
animations = {
|
||||||
|
enabled = true;
|
||||||
|
bezier = "myBezier, 0.05, 0.9, 0.1, 1.05";
|
||||||
|
animation = [
|
||||||
|
"windows, 1, 7, myBezier"
|
||||||
|
"windowsOut, 1, 7, default, popin 80%"
|
||||||
|
"border, 1, 10, default"
|
||||||
|
"borderangle, 1, 8, default"
|
||||||
|
"fade, 1, 7, default"
|
||||||
|
"workspaces, 1, 6, default"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
dwindle = {
|
dwindle = {
|
||||||
pseudotile = true;
|
# pseudotile = true; # TODO
|
||||||
preserve_split = true;
|
preserve_split = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
master = {new_status = "master";};
|
master = {
|
||||||
|
new_status = "master";
|
||||||
};
|
};
|
||||||
|
|
||||||
# ── Environment variables (rendered as: hl.env("KEY", "VALUE")) ──
|
|
||||||
env = [
|
|
||||||
{ _args = ["XCURSOR_SIZE" "32"]; }
|
|
||||||
{ _args = ["HYPRCURSOR_THEME" "Bibata-Modern-Ice"]; }
|
|
||||||
{ _args = ["WLR_NO_HARDWARE_CURSORS" "1"]; }
|
|
||||||
{ _args = ["GTK_THEME" "Dracula"]; }
|
|
||||||
{ _args = ["XDG_CURRENT_DESKTOP" "Hyprland"]; }
|
|
||||||
{ _args = ["XDG_SESSION_TYPE" "wayland"]; }
|
|
||||||
{ _args = ["XDG_SESSION_DESKTOP" "Hyprland"]; }
|
|
||||||
{ _args = ["XKB_DEFAULT_LAYOUT" "de"]; }
|
|
||||||
{ _args = ["NIXOS_OZONE_WL" "1"]; }
|
|
||||||
];
|
|
||||||
|
|
||||||
# ── Per-device config (rendered as: hl.device({...})) ──
|
|
||||||
device = [
|
device = [
|
||||||
{name = "epic-mouse-v1"; sensitivity = -0.5;}
|
{
|
||||||
{name = "zsa-technology-labs-moonlander-mark-i"; kb_layout = "us";}
|
name = "epic-mouse-v1";
|
||||||
{name = "keychron-keychron-k7"; kb_layout = "us";}
|
sensitivity = -0.5;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "zsa-technology-labs-moonlander-mark-i";
|
||||||
|
kb_layout = "us";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "keychron-keychron-k7";
|
||||||
|
kb_layout = "us";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
windowrule = [
|
||||||
|
"match:class file_progress, float on"
|
||||||
|
"match:class confirm, float on"
|
||||||
|
"match:class dialog, float on"
|
||||||
|
"match:class download, float on"
|
||||||
|
"match:class notification, float on"
|
||||||
|
"match:class error, float on"
|
||||||
|
"match:class splash, float on"
|
||||||
|
"match:class confirmreset, float on"
|
||||||
|
"match:title Open File, float on"
|
||||||
|
"match:title branchdialog, float on"
|
||||||
|
"match:class pavucontrol-qt, float on"
|
||||||
|
"match:class pavucontrol, float on"
|
||||||
|
"match:class class:^(espanso)$, float on"
|
||||||
|
"match:class wlogout, fullscreen on"
|
||||||
|
"match:title wlogout, float on"
|
||||||
|
"match:title wlogout, fullscreen on"
|
||||||
|
"match:class mpv, float on"
|
||||||
|
"match:class mpv, idle_inhibit focus"
|
||||||
|
"match:class mpv, opacity 1.0 override"
|
||||||
|
"match:title ^(Media viewer)$, float on"
|
||||||
|
"match:title ^(Volume Control)$, float on"
|
||||||
|
"match:title ^(Picture-in-Picture)$, float on"
|
||||||
|
"match:title ^(floating-pomodoro)$, float on"
|
||||||
|
"match:title ^(floating-pomodoro)$, size 250 50"
|
||||||
|
"match:title ^(floating-pomodoro)$, move 12 (monitor_h-150)"
|
||||||
|
"match:title ^(floating-pomodoro)$, pin on"
|
||||||
|
"match:initial_title .*streamlabs.com.*, float on"
|
||||||
|
"match:initial_title .*streamlabs.com.*, pin on"
|
||||||
|
"match:initial_title .*streamlabs.com.*, size 800 400"
|
||||||
|
"match:initial_title .*alert-box.*, move 100%-820 102"
|
||||||
|
"match:initial_title .*chat-box.*, move 100%-820 512"
|
||||||
|
"match:initial_title .*streamlabs.com.*, opacity 0.5 override"
|
||||||
|
"match:initial_title .*streamlabs.com.*, idle_inhibit focus"
|
||||||
|
"match:initial_title .*streamlabs.com.*, no_anim on"
|
||||||
|
"match:initial_title .*streamlabs.com.*, decorate off"
|
||||||
|
"match:initial_title .*streamlabs.com.*, no_shadow on"
|
||||||
|
"match:initial_title .*streamlabs.com.*, no_blur on"
|
||||||
|
"match:class ^vibe-typer$, match:title ^Recording Indicator$, no_blur on"
|
||||||
|
"border_color rgb(ffffff), match:xwayland 1"
|
||||||
|
];
|
||||||
|
|
||||||
|
"$mainMod" = "SUPER";
|
||||||
|
"$terminal" = "ghostty";
|
||||||
|
|
||||||
|
bind = [
|
||||||
|
"$mainMod, return, exec, $terminal nu -c zellij-ps"
|
||||||
|
"$mainMod, t, exec, $terminal -e nu -c 'nitch; exec nu'"
|
||||||
|
"$mainMod SHIFT, t, exec, launch-timer"
|
||||||
|
"$mainMod, n, exec, $terminal -e nvim"
|
||||||
|
"$mainMod, z, exec, uwsm app -- zeditor"
|
||||||
|
"$mainMod, o, exec, hyprctl dispatch setprop activewindow opaque toggle"
|
||||||
|
"$mainMod, r, exec, hyprctl dispatch focuswindow \"initialtitle:.*alert-box.*\" && hyprctl dispatch moveactive exact 4300 102 && hyprctl dispatch focuswindow \"initialtitle:.*chat-box.*\" && hyprctl dispatch moveactive exact 4300 512"
|
||||||
|
"$mainMod, b, exec, uwsm app -- thunar"
|
||||||
|
"$mainMod SHIFT, B, exec, uwsm app -- vivaldi"
|
||||||
|
"$mainMod, Escape, exec, uwsm app -- wlogout -p layer-shell"
|
||||||
|
"$mainMod, Space, togglefloating"
|
||||||
|
"$mainMod, q, killactive"
|
||||||
|
"$mainMod, M, exit"
|
||||||
|
"$mainMod, F, fullscreen"
|
||||||
|
"$mainMod SHIFT, V, togglefloating"
|
||||||
|
"$mainMod, D, exec, uwsm app -- rofi -show drun -run-command \"uwsm app -- {cmd}\""
|
||||||
|
"$mainMod, V, exec, uwsm app -- cliphist list | rofi -dmenu | cliphist decode | wl-copy"
|
||||||
|
"$mainMod, C, exec, bash -c 'FILE=/tmp/screenshot_$(date +%s).png; grim -g \"$(slurp)\" \"$FILE\" && ksnip \"$FILE\"'"
|
||||||
|
"$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, S, exec, stt-ptt start"
|
||||||
|
# "$mainMod, J, togglesplit" # TODO
|
||||||
|
"$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"
|
||||||
|
"$mainMod, 5, workspace, 5"
|
||||||
|
"$mainMod, 6, workspace, 6"
|
||||||
|
"$mainMod, 7, workspace, 7"
|
||||||
|
"$mainMod, 8, workspace, 8"
|
||||||
|
"$mainMod, 9, workspace, 9"
|
||||||
|
"$mainMod, 0, workspace, 10"
|
||||||
|
"$mainMod SHIFT, 1, movetoworkspace, 1"
|
||||||
|
"$mainMod SHIFT, 2, movetoworkspace, 2"
|
||||||
|
"$mainMod SHIFT, 3, movetoworkspace, 3"
|
||||||
|
"$mainMod SHIFT, 4, movetoworkspace, 4"
|
||||||
|
"$mainMod SHIFT, 5, movetoworkspace, 5"
|
||||||
|
"$mainMod SHIFT, 6, movetoworkspace, 6"
|
||||||
|
"$mainMod SHIFT, 7, movetoworkspace, 7"
|
||||||
|
"$mainMod SHIFT, 8, movetoworkspace, 8"
|
||||||
|
"$mainMod SHIFT, 9, movetoworkspace, 9"
|
||||||
|
"$mainMod SHIFT, 0, movetoworkspace, 10"
|
||||||
|
"$mainMod, mouse_down, workspace, e+1"
|
||||||
|
"$mainMod, mouse_up, workspace, e-1"
|
||||||
|
];
|
||||||
|
|
||||||
|
bindr = [
|
||||||
|
"$mainMod, R, exec, stt-ptt stop"
|
||||||
|
"$mainMod, S, exec, stt-ptt format-stop"
|
||||||
|
];
|
||||||
|
|
||||||
|
bindm = [
|
||||||
|
"$mainMod, mouse:272, movewindow"
|
||||||
|
"$mainMod, mouse:273, resizewindow"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
# ── Complex Lua: curves, animations, binds, window rules, startup ──
|
|
||||||
extraConfig = ''
|
|
||||||
-- Bezier curves
|
|
||||||
hl.curve("myBezier", { type = "bezier", points = { {0.05, 0.9}, {0.1, 1.05} } })
|
|
||||||
|
|
||||||
-- Animations
|
|
||||||
hl.animation({ leaf = "windows", enabled = true, speed = 7, bezier = "myBezier" })
|
|
||||||
hl.animation({ leaf = "windowsOut", enabled = true, speed = 7, bezier = "default", style = "popin 80%" })
|
|
||||||
hl.animation({ leaf = "border", enabled = true, speed = 10, bezier = "default" })
|
|
||||||
hl.animation({ leaf = "borderangle", enabled = true, speed = 8, bezier = "default" })
|
|
||||||
hl.animation({ leaf = "fade", enabled = true, speed = 7, bezier = "default" })
|
|
||||||
hl.animation({ leaf = "workspaces", enabled = true, speed = 6, bezier = "default" })
|
|
||||||
|
|
||||||
-- Keybinds: terminals & editors
|
|
||||||
hl.bind(mainMod .. " + Return", hl.dsp.exec_cmd(terminal .. " nu -c zellij-ps"))
|
|
||||||
hl.bind(mainMod .. " + T", hl.dsp.exec_cmd(terminal .. " -e nu -c 'nitch; exec nu'"))
|
|
||||||
hl.bind(mainMod .. " + Shift + T", hl.dsp.exec_cmd("launch-timer"))
|
|
||||||
hl.bind(mainMod .. " + N", hl.dsp.exec_cmd(terminal .. " -e nvim"))
|
|
||||||
hl.bind(mainMod .. " + Z", hl.dsp.exec_cmd("uwsm app -- zeditor"))
|
|
||||||
|
|
||||||
-- Keybinds: misc
|
|
||||||
hl.bind(mainMod .. " + O", hl.dsp.exec_cmd("hyprctl dispatch setprop activewindow opaque toggle"))
|
|
||||||
hl.bind(mainMod .. " + B", hl.dsp.exec_cmd("uwsm app -- thunar"))
|
|
||||||
hl.bind(mainMod .. " + Shift + B", hl.dsp.exec_cmd("uwsm app -- vivaldi"))
|
|
||||||
hl.bind(mainMod .. " + Escape", hl.dsp.exec_cmd("uwsm app -- wlogout -p layer-shell"))
|
|
||||||
|
|
||||||
-- Keybinds: window management
|
|
||||||
hl.bind(mainMod .. " + Space", hl.dsp.window.float({ action = "toggle" }))
|
|
||||||
hl.bind(mainMod .. " + Q", hl.dsp.window.close())
|
|
||||||
hl.bind(mainMod .. " + M", hl.dsp.exit())
|
|
||||||
hl.bind(mainMod .. " + F", hl.dsp.window.fullscreen())
|
|
||||||
hl.bind(mainMod .. " + Shift + V", hl.dsp.window.float({ action = "toggle" }))
|
|
||||||
|
|
||||||
-- Keybinds: launchers
|
|
||||||
hl.bind(mainMod .. " + D", hl.dsp.exec_cmd('uwsm app -- rofi -show drun -run-command "uwsm app -- {cmd}"'))
|
|
||||||
hl.bind(mainMod .. " + V", hl.dsp.exec_cmd("uwsm app -- cliphist list | rofi -dmenu | cliphist decode | wl-copy"))
|
|
||||||
hl.bind(mainMod .. " + C", hl.dsp.exec_cmd("bash -c 'FILE=/tmp/screenshot_$(date +%s).png; grim -g \"$(slurp)\" \"$FILE\" && ksnip \"$FILE\"'"))
|
|
||||||
hl.bind(mainMod .. " + Shift + S", hl.dsp.exec_cmd("uwsm app -- rofi -show emoji"))
|
|
||||||
hl.bind(mainMod .. " + P", hl.dsp.exec_cmd("uwsm app -- rofi-pass"))
|
|
||||||
hl.bind(mainMod .. " + Shift + P", hl.dsp.window.pseudo())
|
|
||||||
|
|
||||||
-- Keybinds: STT push-to-talk
|
|
||||||
hl.bind(mainMod .. " + R", hl.dsp.exec_cmd("stt-ptt start"))
|
|
||||||
hl.bind(mainMod .. " + R", hl.dsp.exec_cmd("stt-ptt stop"), { release = true })
|
|
||||||
hl.bind(mainMod .. " + S", hl.dsp.exec_cmd("stt-ptt start"))
|
|
||||||
hl.bind(mainMod .. " + S", hl.dsp.exec_cmd("stt-ptt format-stop"), { release = true })
|
|
||||||
|
|
||||||
-- Keybinds: focus
|
|
||||||
hl.bind(mainMod .. " + H", hl.dsp.focus({ direction = "left" }))
|
|
||||||
hl.bind(mainMod .. " + L", hl.dsp.focus({ direction = "right" }))
|
|
||||||
hl.bind(mainMod .. " + K", hl.dsp.focus({ direction = "up" }))
|
|
||||||
hl.bind(mainMod .. " + J", hl.dsp.focus({ direction = "down" }))
|
|
||||||
|
|
||||||
-- Keybinds: workspaces (1-10)
|
|
||||||
for i = 1, 10 do
|
|
||||||
local key = i % 10
|
|
||||||
hl.bind(mainMod .. " + " .. key, hl.dsp.focus({ workspace = i }))
|
|
||||||
hl.bind(mainMod .. " + Shift + " .. key, hl.dsp.window.move({ workspace = i }))
|
|
||||||
end
|
|
||||||
hl.bind(mainMod .. " + mouse_down", hl.dsp.focus({ workspace = "e+1" }))
|
|
||||||
hl.bind(mainMod .. " + mouse_up", hl.dsp.focus({ workspace = "e-1" }))
|
|
||||||
|
|
||||||
-- Keybinds: mouse (drag & resize)
|
|
||||||
hl.bind(mainMod .. " + mouse:272", hl.dsp.window.drag(), { mouse = true })
|
|
||||||
hl.bind(mainMod .. " + mouse:273", hl.dsp.window.resize(), { mouse = true })
|
|
||||||
|
|
||||||
-- Window rules: floating dialogs
|
|
||||||
for _, cls in ipairs({
|
|
||||||
"file_progress", "confirm", "dialog", "download",
|
|
||||||
"notification", "error", "splash", "confirmreset",
|
|
||||||
}) do
|
|
||||||
hl.window_rule({ match = { class = cls }, float = true })
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Window rules: title-based floating
|
|
||||||
hl.window_rule({ match = { title = "Open File" }, float = true })
|
|
||||||
hl.window_rule({ match = { title = "branchdialog" }, float = true })
|
|
||||||
|
|
||||||
-- Window rules: audio/video
|
|
||||||
hl.window_rule({ match = { class = "pavucontrol-qt" }, float = true })
|
|
||||||
hl.window_rule({ match = { class = "pavucontrol" }, float = true })
|
|
||||||
hl.window_rule({ match = { class = "^espanso$" }, float = true })
|
|
||||||
|
|
||||||
-- Window rules: wlogout
|
|
||||||
hl.window_rule({ match = { class = "wlogout" }, fullscreen = true })
|
|
||||||
hl.window_rule({ match = { title = "wlogout" }, float = true, fullscreen = true })
|
|
||||||
|
|
||||||
-- Window rules: mpv
|
|
||||||
hl.window_rule({ match = { class = "mpv" }, float = true, idle_inhibit = "focus", opacity = 1.0 })
|
|
||||||
|
|
||||||
-- Window rules: misc floating
|
|
||||||
hl.window_rule({ match = { title = "^Media viewer$" }, float = true })
|
|
||||||
hl.window_rule({ match = { title = "^Volume Control$" }, float = true })
|
|
||||||
hl.window_rule({ match = { title = "^Picture-in-Picture$" }, float = true })
|
|
||||||
|
|
||||||
-- Window rules: pomodoro (consolidated)
|
|
||||||
hl.window_rule({
|
|
||||||
match = { title = "^floating-pomodoro$" },
|
|
||||||
float = true, size = { 250, 50 }, move = { 12, "monitor_h-150" }, pin = true,
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Window rules: streamlabs (consolidated)
|
|
||||||
hl.window_rule({
|
|
||||||
match = { initial_title = ".*streamlabs.com.*" },
|
|
||||||
float = true, pin = true, size = { 800, 400 }, opacity = 0.5,
|
|
||||||
idle_inhibit = "focus", no_anim = true, decorate = false, no_shadow = true, no_blur = true,
|
|
||||||
})
|
|
||||||
hl.window_rule({ match = { initial_title = ".*alert-box.*" }, move = { "100%-820", 102 } })
|
|
||||||
hl.window_rule({ match = { initial_title = ".*chat-box.*" }, move = { "100%-820", 512 } })
|
|
||||||
|
|
||||||
-- Window rules: vibe-typer
|
|
||||||
hl.window_rule({ match = { class = "^vibe-typer$", title = "^Recording Indicator$" }, no_blur = true })
|
|
||||||
|
|
||||||
-- Window rules: xwayland border
|
|
||||||
hl.window_rule({ match = { xwayland = true }, border_color = "rgb(ffffff)" })
|
|
||||||
|
|
||||||
-- Startup commands
|
|
||||||
hl.on("hyprland.start", function()
|
|
||||||
hl.exec_cmd("hyprpanel")
|
|
||||||
hl.exec_cmd("while ! hyprpaper-random; do sleep 0.5; done")
|
|
||||||
hl.exec_cmd("wl-paste --type text --watch cliphist store")
|
|
||||||
hl.exec_cmd("wl-paste --type image --watch cliphist store")
|
|
||||||
hl.exec_cmd("vibetyper")
|
|
||||||
end)
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
|
|
||||||
services.hypridle = {
|
services.hypridle = {
|
||||||
@@ -249,12 +249,12 @@ in {
|
|||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
"$font" = "JetBrainsMono Nerd Font";
|
"$font" = "JetBrainsMono Nerd Font";
|
||||||
"$base" = "rgb(${p.base00})";
|
"$base" = "rgb(${config.colorScheme.palette.base00})";
|
||||||
"$text" = "rgb(${p.base05})";
|
"$text" = "rgb(${config.colorScheme.palette.base05})";
|
||||||
"$textAlpha" = "${p.base05}";
|
"$textAlpha" = "${config.colorScheme.palette.base05}";
|
||||||
"$accentAlpha" = "${p.base0D}";
|
"$accentAlpha" = "${config.colorScheme.palette.base0D}";
|
||||||
"$red" = "rgb(${p.base08})";
|
"$red" = "rgb(${config.colorScheme.palette.base08})";
|
||||||
"$yellow" = "rgb(${p.base0A})";
|
"$yellow" = "rgb(${config.colorScheme.palette.base0A})";
|
||||||
|
|
||||||
general = {
|
general = {
|
||||||
hide_cursor = true;
|
hide_cursor = true;
|
||||||
@@ -264,7 +264,7 @@ in {
|
|||||||
monitor = "";
|
monitor = "";
|
||||||
path = "${config.home.homeDirectory}/.config/hypr/wallpapers/wallhaven-lmmo8r.jpg";
|
path = "${config.home.homeDirectory}/.config/hypr/wallpapers/wallhaven-lmmo8r.jpg";
|
||||||
blur_passes = 0;
|
blur_passes = 0;
|
||||||
color = "rgb(${p.base00})";
|
color = "rgb(${config.colorScheme.palette.base00})";
|
||||||
};
|
};
|
||||||
|
|
||||||
label = [
|
label = [
|
||||||
@@ -298,16 +298,16 @@ in {
|
|||||||
dots_size = 0.2;
|
dots_size = 0.2;
|
||||||
dots_spacing = 0.2;
|
dots_spacing = 0.2;
|
||||||
dots_center = true;
|
dots_center = true;
|
||||||
outer_color = "rgb(${p.base0D})";
|
outer_color = "rgb(${config.colorScheme.palette.base0D})";
|
||||||
inner_color = "rgb(${p.base00})";
|
inner_color = "rgb(${config.colorScheme.palette.base00})";
|
||||||
font_color = "rgb(${p.base05})";
|
font_color = "rgb(${config.colorScheme.palette.base05})";
|
||||||
fade_on_empty = false;
|
fade_on_empty = false;
|
||||||
placeholder_text = ''<span foreground="##${p.base05}"> Logged in as <span foreground="##${p.base0D}">$USER</span></span>'';
|
placeholder_text = ''<span foreground="##${config.colorScheme.palette.base05}"> Logged in as <span foreground="##${config.colorScheme.palette.base0D}">$USER</span></span>'';
|
||||||
hide_input = false;
|
hide_input = false;
|
||||||
check_color = "rgb(${p.base0D})";
|
check_color = "rgb(${config.colorScheme.palette.base0D})";
|
||||||
fail_color = "rgb(${p.base08})";
|
fail_color = "rgb(${config.colorScheme.palette.base08})";
|
||||||
fail_text = ''<i>$FAIL <b>($ATTEMPTS)</b></i>'';
|
fail_text = ''<i>$FAIL <b>($ATTEMPTS)</b></i>'';
|
||||||
capslock_color = "rgb(${p.base0A})";
|
capslock_color = "rgb(${config.colorScheme.palette.base0A})";
|
||||||
position = "0, -35";
|
position = "0, -35";
|
||||||
halign = "center";
|
halign = "center";
|
||||||
valign = "center";
|
valign = "center";
|
||||||
|
|||||||
@@ -0,0 +1,36 @@
|
|||||||
|
{config, ...}: {
|
||||||
|
programs.agent-lib = {
|
||||||
|
enable = true;
|
||||||
|
lockFile = config."m3ta-home".paths.srcRoot + "/agent-sources.lock.json";
|
||||||
|
|
||||||
|
targets.pi.enable = true;
|
||||||
|
targets.opencode.enable = true;
|
||||||
|
|
||||||
|
profiles.default = {
|
||||||
|
sources = {
|
||||||
|
m3ta-agents = {
|
||||||
|
agents = {
|
||||||
|
all = true;
|
||||||
|
};
|
||||||
|
skills = {
|
||||||
|
all = true;
|
||||||
|
exclude = ["brainstorming" "pdf" "systematic-debugging" "xlsx"];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
anthropic.skills = {
|
||||||
|
all = true;
|
||||||
|
exclude = ["skill-creator"];
|
||||||
|
};
|
||||||
|
basecamp.skills.all = true;
|
||||||
|
kestra.skills.all = true;
|
||||||
|
mattpocock.skills = {
|
||||||
|
all = true;
|
||||||
|
};
|
||||||
|
superpowers.skills = {
|
||||||
|
all = true;
|
||||||
|
};
|
||||||
|
vercel.skills.all = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -19,24 +19,14 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
# OpenCode and Pi agent configurations
|
# OpenCode, Pi, and Babysitter agent configurations
|
||||||
|
./agents-lib.nix
|
||||||
|
./babysitter.nix
|
||||||
./opencode.nix
|
./opencode.nix
|
||||||
./pi.nix
|
./pi.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
coding.agents.skills = {
|
coding.agents.babysitter.enable = true;
|
||||||
agentsInput = inputs.agents;
|
|
||||||
externalSkills = [
|
|
||||||
{
|
|
||||||
src = inputs.skills-anthropic;
|
|
||||||
selectSkills = ["pdf" "docx" "frontend-design"];
|
|
||||||
}
|
|
||||||
{src = inputs.skills-superpowers;}
|
|
||||||
{src = inputs.skills-vercel;}
|
|
||||||
{src = inputs.skills-basecamp;}
|
|
||||||
{src = inputs.skills-kestra;}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.mcp = {
|
programs.mcp = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -0,0 +1,142 @@
|
|||||||
|
# Babysitter user profile for Pi/agent workflows.
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
cfg = config.coding.agents.babysitter;
|
||||||
|
defaultTimestamp = "2026-05-29T00:00:00.000Z";
|
||||||
|
|
||||||
|
defaultUserProfile = {
|
||||||
|
name = config.home.username;
|
||||||
|
specialties = [
|
||||||
|
{
|
||||||
|
domain = "declarative-system-configuration";
|
||||||
|
subdomains = ["nix" "home-manager" "agents"];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
expertiseLevels = {};
|
||||||
|
goals = [
|
||||||
|
{
|
||||||
|
id = "goal-agents-declarative-profile";
|
||||||
|
description = "Keep Babysitter user preferences declarative and reproducible across systems.";
|
||||||
|
category = "agents";
|
||||||
|
priority = "medium";
|
||||||
|
status = "active";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
preferences = {
|
||||||
|
verbosity = "concise";
|
||||||
|
autonomyLevel = "semi-autonomous";
|
||||||
|
riskTolerance = "conservative";
|
||||||
|
};
|
||||||
|
toolPreferences = {
|
||||||
|
packageManagers = ["nix"];
|
||||||
|
languages = ["nix"];
|
||||||
|
operatingSystem = "nixos";
|
||||||
|
};
|
||||||
|
breakpointTolerance = {
|
||||||
|
global = "moderate";
|
||||||
|
skipBreakpointsForKnownPatterns = false;
|
||||||
|
alwaysBreakOn = ["destructive-operations" "secrets" "external-publication"];
|
||||||
|
};
|
||||||
|
communicationStyle = {
|
||||||
|
tone = "technical";
|
||||||
|
language = "en";
|
||||||
|
useEmojis = false;
|
||||||
|
explanationDepth = "brief";
|
||||||
|
preferredResponseFormat = "markdown";
|
||||||
|
};
|
||||||
|
experience = {};
|
||||||
|
installedPlugins = ["babysitter-pi"];
|
||||||
|
installedSkills = ["babysit" "call" "plan" "resume" "doctor" "yolo"];
|
||||||
|
installedAgents = [];
|
||||||
|
createdAt = defaultTimestamp;
|
||||||
|
updatedAt = defaultTimestamp;
|
||||||
|
version = 1;
|
||||||
|
};
|
||||||
|
|
||||||
|
effectiveProfile = lib.recursiveUpdate cfg.profile cfg.profileOverrides;
|
||||||
|
profileJsonTarget = "${cfg.profileDirectory}/user-profile.json";
|
||||||
|
profileMarkdownTarget = "${cfg.profileDirectory}/user-profile.md";
|
||||||
|
profilePreferences = effectiveProfile.preferences or {};
|
||||||
|
profileBreakpointTolerance = effectiveProfile.breakpointTolerance or {};
|
||||||
|
|
||||||
|
listMarkdown = values:
|
||||||
|
lib.concatMapStringsSep "\n" (value: "- ${toString value}") values;
|
||||||
|
|
||||||
|
specialtyDomains = map (specialty: specialty.domain or "unspecified") (effectiveProfile.specialties or []);
|
||||||
|
|
||||||
|
profileMarkdown = ''
|
||||||
|
# Babysitter User Profile
|
||||||
|
|
||||||
|
This file is generated by Home Manager from `coding.agents.babysitter`.
|
||||||
|
|
||||||
|
- Name: ${effectiveProfile.name or "unspecified"}
|
||||||
|
- Breakpoint tolerance: ${profileBreakpointTolerance.global or "unspecified"}
|
||||||
|
- Autonomy level: ${profilePreferences.autonomyLevel or "unspecified"}
|
||||||
|
- Risk tolerance: ${profilePreferences.riskTolerance or "unspecified"}
|
||||||
|
|
||||||
|
## Specialties
|
||||||
|
|
||||||
|
${listMarkdown specialtyDomains}
|
||||||
|
|
||||||
|
## Installed Babysitter Pi Skills
|
||||||
|
|
||||||
|
${listMarkdown (effectiveProfile.installedSkills or [])}
|
||||||
|
'';
|
||||||
|
in {
|
||||||
|
options.coding.agents.babysitter = {
|
||||||
|
enable = lib.mkEnableOption "Babysitter user profile for Pi/agent workflows";
|
||||||
|
|
||||||
|
profileDirectory = lib.mkOption {
|
||||||
|
type = lib.types.str;
|
||||||
|
default = ".a5c";
|
||||||
|
description = ''
|
||||||
|
Home-relative directory where Babysitter reads the user profile.
|
||||||
|
Babysitter Pi documents the user profile at ~/.a5c/user-profile.json.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
profile = lib.mkOption {
|
||||||
|
type = lib.types.attrsOf lib.types.anything;
|
||||||
|
default = defaultUserProfile;
|
||||||
|
description = "Complete non-secret Babysitter user profile JSON.";
|
||||||
|
};
|
||||||
|
|
||||||
|
profileOverrides = lib.mkOption {
|
||||||
|
type = lib.types.attrsOf lib.types.anything;
|
||||||
|
default = {};
|
||||||
|
description = ''
|
||||||
|
Recursive overrides merged into the default Babysitter user profile.
|
||||||
|
Keep this non-secret; the result is written into the Nix store.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
assertions = [
|
||||||
|
{
|
||||||
|
assertion = cfg.profileDirectory != "" && !lib.hasPrefix "/" cfg.profileDirectory;
|
||||||
|
message = "coding.agents.babysitter.profileDirectory must be a non-empty home-relative path.";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
assertion = effectiveProfile ? name && builtins.isString effectiveProfile.name;
|
||||||
|
message = "coding.agents.babysitter profile must include a string name.";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
assertion = effectiveProfile ? specialties && builtins.isList effectiveProfile.specialties;
|
||||||
|
message = "coding.agents.babysitter profile must include a specialties list.";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
assertion = effectiveProfile ? breakpointTolerance && effectiveProfile.breakpointTolerance ? global;
|
||||||
|
message = "coding.agents.babysitter profile must include breakpointTolerance.global.";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
home.file = {
|
||||||
|
"${profileJsonTarget}".text = builtins.toJSON effectiveProfile + "\n";
|
||||||
|
"${profileMarkdownTarget}".text = profileMarkdown;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -4,8 +4,8 @@
|
|||||||
agentsInput = inputs.agents;
|
agentsInput = inputs.agents;
|
||||||
|
|
||||||
modelOverrides = {
|
modelOverrides = {
|
||||||
chiron = "minimax/MiniMax-M2.7";
|
chiron = "openai-codex/gpt-5.5";
|
||||||
chiron-forge = "minimax/MiniMax-M2.7";
|
chiron-forge = "openai-codex/gpt-5.5";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Coding rules for Pi agent
|
# Coding rules for Pi agent
|
||||||
@@ -34,6 +34,7 @@
|
|||||||
settings = {
|
settings = {
|
||||||
packages = [
|
packages = [
|
||||||
"npm:@dreadedzombie/pi-init"
|
"npm:@dreadedzombie/pi-init"
|
||||||
|
"git:github.com/a5c-ai/babysitter-pi"
|
||||||
"npm:@plannotator/pi-extension"
|
"npm:@plannotator/pi-extension"
|
||||||
"npm:@thesethrose/pi-zai-provider"
|
"npm:@thesethrose/pi-zai-provider"
|
||||||
"npm:pi-agent-browser-native"
|
"npm:pi-agent-browser-native"
|
||||||
@@ -49,8 +50,8 @@
|
|||||||
"git:github.com/hk-vk/pi-connect"
|
"git:github.com/hk-vk/pi-connect"
|
||||||
];
|
];
|
||||||
|
|
||||||
defaultProvider = "minimax";
|
defaultProvider = "openai-codex";
|
||||||
defaultModel = "MiniMax-M2.7";
|
defaultModel = "gpt-5.5";
|
||||||
defaultThinkingLevel = "high";
|
defaultThinkingLevel = "high";
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -59,7 +60,7 @@
|
|||||||
# NOTE: Local project .pi/extensions/guardrails.json can override same rule IDs.
|
# NOTE: Local project .pi/extensions/guardrails.json can override same rule IDs.
|
||||||
# For immutable global policies, consider a wrapper or upstream patch.
|
# For immutable global policies, consider a wrapper or upstream patch.
|
||||||
guardrails = {
|
guardrails = {
|
||||||
enable = true;
|
enable = false;
|
||||||
config = {
|
config = {
|
||||||
enabled = true;
|
enabled = true;
|
||||||
applyBuiltinDefaults = true;
|
applyBuiltinDefaults = true;
|
||||||
|
|||||||
@@ -9,5 +9,6 @@
|
|||||||
jq
|
jq
|
||||||
ripgrep
|
ripgrep
|
||||||
tree
|
tree
|
||||||
|
worktrunk
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user