diff --git a/flake.lock b/flake.lock index aa6d433..9c8d81c 100644 --- a/flake.lock +++ b/flake.lock @@ -49,11 +49,11 @@ ] }, "locked": { - "lastModified": 1780157040, - "narHash": "sha256-j2d3nj3FvOlxQ+Zlse+rMo3qHD3m4Gick5uiwtTaA2o=", + "lastModified": 1780681759, + "narHash": "sha256-eszNyFb1If4ePaJD1aQTvHFog8lvpwjCTl8F9rUlXnk=", "ref": "refs/heads/master", - "rev": "f63712a9ba03da6e2f591766d0f055aa65e6d237", - "revCount": 24, + "rev": "9a4ee71b1a9008422266e4364a76ee2f08868b5a", + "revCount": 25, "type": "git", "url": "ssh://gitea@code.m3ta.dev/m3tam3re/agent-lib" }, @@ -514,11 +514,11 @@ ] }, "locked": { - "lastModified": 1780408569, - "narHash": "sha256-s7Tv6FUQThRAvW8En8XVC6HMb0uiikzVccCcCo9u/Bg=", + "lastModified": 1780593650, + "narHash": "sha256-CHo7k65YTL3HY+WQVedDTupji+LMgNlKCdrtRHZFAK4=", "owner": "nix-community", "repo": "home-manager", - "rev": "f384af1bec6423a0d4ba1855917ab948f64e5808", + "rev": "447fd9ff62501dae7206dfe180ee89f8de27b7d5", "type": "github" }, "original": { @@ -602,11 +602,11 @@ "treefmt-nix": "treefmt-nix" }, "locked": { - "lastModified": 1780411792, - "narHash": "sha256-aaO6ogxzNZNcHU0vQ2yN3Cnkhj5gAnOQ8JceAQSERVw=", + "lastModified": 1780640554, + "narHash": "sha256-dgnL2gTgRoO1D4z6wkARGCO/gimq3/UE/mVFcQcWBn8=", "owner": "numtide", "repo": "llm-agents.nix", - "rev": "2f2a2d3e3422a7ad6a105c115db2a08a630a03c4", + "rev": "f764eba1fdd162a1f2bc923f7e7034b894a22b4a", "type": "github" }, "original": { @@ -891,11 +891,11 @@ }, "nixpkgs-master_3": { "locked": { - "lastModified": 1780414927, - "narHash": "sha256-Es9BrZp/QWTFajDsQwD3l9/GbWSohmMiMm23RTt1L5o=", + "lastModified": 1780675612, + "narHash": "sha256-0uf5rIKWl6ljqZtDdYhVpBru9cggmUyoOw+m7IZNKYk=", "owner": "nixos", "repo": "nixpkgs", - "rev": "95441e6bca60dd523c40613156e97deee90479b9", + "rev": "a08eccd152a1534c8e01e69709fd21b108e5be2d", "type": "github" }, "original": { @@ -955,11 +955,11 @@ }, "nixpkgs_3": { "locked": { - "lastModified": 1780336545, - "narHash": "sha256-vhVhuXzFrIOfcssC/9hDHx7MHzDKjF3keHuREOQqQiQ=", + "lastModified": 1780365719, + "narHash": "sha256-QfWfccTN+70ZQ4m2qlU9PiKfz2Yppq94058iJyARNwc=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "4df1b885d76a54e1aa1a318f8d16fd6005b6401f", + "rev": "ffa10e26ae11d676b2db836259889f1f571cb14f", "type": "github" }, "original": { @@ -1051,11 +1051,11 @@ }, "nixpkgs_9": { "locked": { - "lastModified": 1780336545, - "narHash": "sha256-vhVhuXzFrIOfcssC/9hDHx7MHzDKjF3keHuREOQqQiQ=", + "lastModified": 1780365719, + "narHash": "sha256-QfWfccTN+70ZQ4m2qlU9PiKfz2Yppq94058iJyARNwc=", "owner": "nixos", "repo": "nixpkgs", - "rev": "4df1b885d76a54e1aa1a318f8d16fd6005b6401f", + "rev": "ffa10e26ae11d676b2db836259889f1f571cb14f", "type": "github" }, "original": { @@ -1113,11 +1113,11 @@ ] }, "locked": { - "lastModified": 1780415344, - "narHash": "sha256-QZ3E34CsynYOJmcRmJZqY7+Ehr67H8KFKTzzrqklVeM=", + "lastModified": 1780667345, + "narHash": "sha256-JkFBPvT91un8Hq2wrMJxcJgiWwpIl6X5frAH6E8f32M=", "owner": "nix-community", "repo": "NUR", - "rev": "5b2185a32f7379509ff958a7939f512ff13d516a", + "rev": "c81bd4bb3912e373c17eaff12d67d478dfedf418", "type": "github" }, "original": { @@ -1330,11 +1330,11 @@ ] }, "locked": { - "lastModified": 1779522750, - "narHash": "sha256-IhAhPWYMomohxWmh/u/x8B44hIkt3IcuL2bsKb+vl5U=", + "lastModified": 1780564157, + "narHash": "sha256-FOemUn2RVIeosaYbe5ukB7V6nHVke0n0Kep3DNYdfh4=", "owner": "rustfs", "repo": "rustfs-flake", - "rev": "31e193047ef40f702261a93f47889c1b1962d10a", + "rev": "253266a4361fe87a6ab57a6c630aeb820925f9b7", "type": "github" }, "original": { diff --git a/hosts/m3-ares/services/default.nix b/hosts/m3-ares/services/default.nix index 6869131..d5cd37b 100644 --- a/hosts/m3-ares/services/default.nix +++ b/hosts/m3-ares/services/default.nix @@ -1,6 +1,7 @@ {pkgs, ...}: { imports = [ ./containers + ./greetd.nix ./hermes-agent.nix ./netbird.nix #./n8n.nix diff --git a/hosts/m3-ares/services/greetd.nix b/hosts/m3-ares/services/greetd.nix new file mode 100644 index 0000000..a675ad4 --- /dev/null +++ b/hosts/m3-ares/services/greetd.nix @@ -0,0 +1,38 @@ +# greetd login manager for m3-kratos (replaces broken GDM on nixos-unstable). +# Uses tuigreet as the greeter, launching Hyprland after authentication. +{ + pkgs, + config, + lib, + ... +}: let + tuigreet = "${lib.getExe pkgs.tuigreet}"; + # Use start-hyprland wrapper to avoid Hyprland startup warnings + # withUWSM=true is set in programs.nix; start-hyprland handles this correctly + hyprlandCmd = "${config.programs.hyprland.package}/bin/start-hyprland"; +in { + services.greetd = { + enable = true; + + settings = { + default_session = { + user = "greeter"; + # Minimal config: verified supported flags only + # The --time and --remember are tested; power commands omitted + # to avoid potential quoting/parsing issues + command = builtins.concatStringsSep " " [ + tuigreet + "--time" + "--remember" + "--asterisks" + "--cmd ${hyprlandCmd}" + ]; + }; + }; + }; + + # Required for --remember to persist username between logins + systemd.tmpfiles.rules = [ + "d /var/cache/tuigreet 0755 greeter greeter - -" + ]; +} diff --git a/hosts/m3-kratos/agent-lib.nix b/hosts/m3-kratos/agent-lib.nix deleted file mode 100644 index 00f0dfe..0000000 --- a/hosts/m3-kratos/agent-lib.nix +++ /dev/null @@ -1,36 +0,0 @@ -{ - programs.agent-lib = { - enable = true; - lockFile = ../../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; - }; - }; - }; -}