diff --git a/flake.lock b/flake.lock index 063f20c..0c8ca78 100644 --- a/flake.lock +++ b/flake.lock @@ -168,6 +168,27 @@ "type": "github" } }, + "flake-parts_5": { + "inputs": { + "nixpkgs-lib": [ + "walker", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1709336216, + "narHash": "sha256-Dt/wOWeW6Sqm11Yh+2+t0dfEWxoMxGBvv3JpIocFl9E=", + "owner": "hercules-ci", + "repo": "flake-parts", + "rev": "f7b3c975cf067e56e7cda6cb098ebe3fb4d74ca2", + "type": "github" + }, + "original": { + "owner": "hercules-ci", + "repo": "flake-parts", + "type": "github" + } + }, "flake-utils": { "inputs": { "systems": "systems" @@ -498,7 +519,8 @@ "nixpak": "nixpak", "nixpkgs": "nixpkgs", "schizofox": "schizofox", - "spicetify": "spicetify" + "spicetify": "spicetify", + "walker": "walker" } }, "rust-overlay": { @@ -640,6 +662,27 @@ "repo": "default", "type": "github" } + }, + "walker": { + "inputs": { + "flake-parts": "flake-parts_5", + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1718214030, + "narHash": "sha256-9RI5CMXhijihasmqG7v+0NDDctKAnsUgRYdSWuVLevQ=", + "owner": "abenz1267", + "repo": "walker", + "rev": "afcf8f694772682999a4384ec24746b9dd702a71", + "type": "github" + }, + "original": { + "owner": "abenz1267", + "repo": "walker", + "type": "github" + } } }, "root": "root", diff --git a/flake.nix b/flake.nix index c3929a8..76b361e 100644 --- a/flake.nix +++ b/flake.nix @@ -37,6 +37,14 @@ nixpkgs.follows = "nixpkgs"; }; }; + + # Application launcher + walker = { + url = "github:abenz1267/walker"; + inputs = { + nixpkgs.follows = "nixpkgs"; + }; + }; }; outputs = {self, nixpkgs, ...} @ inputs: { diff --git a/home/programs/graphical/launchers/walker/default.nix b/home/programs/graphical/launchers/walker/default.nix index ed21743..fa10293 100644 --- a/home/programs/graphical/launchers/walker/default.nix +++ b/home/programs/graphical/launchers/walker/default.nix @@ -1,4 +1,5 @@ { + inputs, osConfig, pkgs, lib, @@ -7,14 +8,14 @@ inherit (lib) mkIf; cfg = osConfig.myOptions.home-manager.programs.launchers.walker; in { + imports = [ inputs.walker.homeManagerModules.walker ]; config = mkIf cfg.enable { - home.packages = with pkgs; [ - walker - ]; + programs.walker = { + enable = true; + runAsService = true; # makes walker a lot faster when starting - xdg.configFile = { - "walker/config.json".source = ./config.json; - "walker/style.css".source = ./style.css; + config = builtins.fromJSON (builtins.readFile ./config.json); + style = builtins.readFile ./style.css; }; }; } diff --git a/system/shared/nix/cachix.nix b/system/shared/nix/cachix.nix index cd638b6..13b4ae7 100644 --- a/system/shared/nix/cachix.nix +++ b/system/shared/nix/cachix.nix @@ -12,6 +12,7 @@ _: { "https://hyprland.cachix.org" # hyprland "https://hyprland-community.cachix.org" # hyprland-community "https://ags.cachix.org" # ags + "https://walker.cachix.org" # walker ]; trusted-public-keys = [ "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" @@ -22,6 +23,7 @@ _: { "hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc=" "hyprland-community.cachix.org-1:5dTHY+TjAJjnQs23X+vwMQG4va7j+zmvkTKoYuSXnmE=" "ags.cachix.org-1:naAvMrz0CuYqeyGNyLgE010iUiuf/qx6kYrUv3NwAJ8=" + "walker.cachix.org-1:fG8q+uAaMqhsMxWjwvk0IMb4mFPFLqHjuvfwQxE4oJM=" ]; }; }