1
Fork 0
mirror of https://github.com/thegeneralist01/config.git synced 2026-05-30 08:37:01 +02:00

exclude bird

This commit is contained in:
TheGeneralist 2026-03-15 08:07:51 +01:00
parent dc9740d867
commit b68229b94a
Signed by: thegeneralist01
SSH key fingerprint: SHA256:pp9qddbCNmVNoSjevdvQvM5z0DHN7LTa8qBMbcMq/R4
4 changed files with 63 additions and 16 deletions

33
flake.lock generated
View file

@ -331,21 +331,20 @@
"flake-utils": "flake-utils_3", "flake-utils": "flake-utils_3",
"home-manager": "home-manager_2", "home-manager": "home-manager_2",
"nix-steipete-tools": "nix-steipete-tools", "nix-steipete-tools": "nix-steipete-tools",
"nixpkgs": [ "nixpkgs": "nixpkgs_2"
"nixpkgs"
]
}, },
"locked": { "locked": {
"lastModified": 1773517170, "lastModified": 1773558880,
"narHash": "sha256-KkToSYtLmzarxUIRtMPkQbjyENFAT20LOxQB4q8pya4=", "narHash": "sha256-hBkRVF4qzFa8GPUXe6X1hH9TmpuQhrqZUeKJZWFQwu4=",
"owner": "openclaw", "owner": "openclaw",
"repo": "nix-openclaw", "repo": "nix-openclaw",
"rev": "b16bde62d32b8a853ed865379fe567e087165808", "rev": "3d784abe7f0305a4bd1b6f5c9a5a5de213637cf3",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "openclaw", "owner": "openclaw",
"repo": "nix-openclaw", "repo": "nix-openclaw",
"rev": "3d784abe7f0305a4bd1b6f5c9a5a5de213637cf3",
"type": "github" "type": "github"
} }
}, },
@ -416,6 +415,22 @@
} }
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": {
"lastModified": 1767767207,
"narHash": "sha256-Mj3d3PfwltLmukFal5i3fFt27L6NiKXdBezC1EBuZs4=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "5912c1772a44e31bf1c63c0390b90501e5026886",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_3": {
"locked": { "locked": {
"lastModified": 1755186698, "lastModified": 1755186698,
"narHash": "sha256-wNO3+Ks2jZJ4nTHMuks+cxAiVBGNuEBXsT29Bz6HASo=", "narHash": "sha256-wNO3+Ks2jZJ4nTHMuks+cxAiVBGNuEBXsT29Bz6HASo=",
@ -431,7 +446,7 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_3": { "nixpkgs_4": {
"locked": { "locked": {
"lastModified": 1769789167, "lastModified": 1769789167,
"narHash": "sha256-kKB3bqYJU5nzYeIROI82Ef9VtTbu4uA3YydSk/Bioa8=", "narHash": "sha256-kKB3bqYJU5nzYeIROI82Ef9VtTbu4uA3YydSk/Bioa8=",
@ -450,7 +465,7 @@
"readlater-bot": { "readlater-bot": {
"inputs": { "inputs": {
"flake-utils": "flake-utils_4", "flake-utils": "flake-utils_4",
"nixpkgs": "nixpkgs_3" "nixpkgs": "nixpkgs_4"
}, },
"locked": { "locked": {
"lastModified": 1772524468, "lastModified": 1772524468,
@ -478,7 +493,7 @@
"nix-darwin": "nix-darwin", "nix-darwin": "nix-darwin",
"nix-homebrew": "nix-homebrew", "nix-homebrew": "nix-homebrew",
"nix-openclaw": "nix-openclaw", "nix-openclaw": "nix-openclaw",
"nixpkgs": "nixpkgs_2", "nixpkgs": "nixpkgs_3",
"readlater-bot": "readlater-bot" "readlater-bot": "readlater-bot"
} }
}, },

View file

@ -34,8 +34,7 @@
}; };
nix-openclaw = { nix-openclaw = {
url = "github:openclaw/nix-openclaw"; url = "github:openclaw/nix-openclaw/3d784abe7f0305a4bd1b6f5c9a5a5de213637cf3";
inputs.nixpkgs.follows = "nixpkgs";
}; };
ghostty = { ghostty = {

View file

@ -86,8 +86,31 @@
{ {
osConfig, osConfig,
lib, lib,
pkgs,
inputs,
... ...
}: }:
let
openclawPkgs =
let
pkgsAarch64 = import inputs.nix-openclaw.inputs.nixpkgs { system = "aarch64-linux"; };
steipetePkgs =
if inputs.nix-openclaw.inputs.nix-steipete-tools ? packages
&& builtins.hasAttr
"aarch64-linux"
inputs.nix-openclaw.inputs.nix-steipete-tools.packages
then
inputs.nix-openclaw.inputs.nix-steipete-tools.packages.aarch64-linux
else
{ };
in
import "${inputs.nix-openclaw}/nix/packages" {
pkgs = pkgsAarch64;
sourceInfo = import "${inputs.nix-openclaw}/nix/sources/openclaw-source.nix";
inherit steipetePkgs;
};
openclawPackage = openclawPkgs.openclaw;
in
{ {
home = { home = {
username = "thegeneralist"; username = "thegeneralist";
@ -97,6 +120,7 @@
programs.openclaw = { programs.openclaw = {
documents = ./openclaw-documents; documents = ./openclaw-documents;
package = openclawPackage;
config = { config = {
gateway = { gateway = {
mode = "local"; mode = "local";
@ -113,7 +137,10 @@
}; };
}; };
instances.default.enable = true; instances.default = {
enable = true;
package = openclawPackage;
};
}; };
systemd.user.services.openclaw-gateway.Service.EnvironmentFile = [ systemd.user.services.openclaw-gateway.Service.EnvironmentFile = [

View file

@ -13,12 +13,18 @@ let
# Collect modules from flake inputs with fallback handling # Collect modules from flake inputs with fallback handling
collectInputModules = packagePath: collectInputModules = packagePath:
let let
getModule = input: getModule = name: input:
if hasAttrByPath packagePath input if name == "nix-openclaw" && packagePath == [ "overlays" "default" ] then
[]
else if hasAttrByPath packagePath input
then [ (getAttrFromPath packagePath input) ] then [ (getAttrFromPath packagePath input) ]
else []; else [];
in in
concatMap getModule (attrValues inputs); concatMap (entry: getModule entry.name entry.value) (
mapAttrsToList (name: value: {
inherit name value;
}) inputs
);
# Collect platform-specific modules # Collect platform-specific modules