walker: Use flake instead of manual config

This commit is contained in:
ItsDrike 2024-06-28 16:25:17 +02:00
parent bfb1adb3bc
commit 61ada8f1cf
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0
4 changed files with 61 additions and 7 deletions

View file

@ -168,6 +168,27 @@
"type": "github" "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": { "flake-utils": {
"inputs": { "inputs": {
"systems": "systems" "systems": "systems"
@ -498,7 +519,8 @@
"nixpak": "nixpak", "nixpak": "nixpak",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"schizofox": "schizofox", "schizofox": "schizofox",
"spicetify": "spicetify" "spicetify": "spicetify",
"walker": "walker"
} }
}, },
"rust-overlay": { "rust-overlay": {
@ -640,6 +662,27 @@
"repo": "default", "repo": "default",
"type": "github" "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", "root": "root",

View file

@ -37,6 +37,14 @@
nixpkgs.follows = "nixpkgs"; nixpkgs.follows = "nixpkgs";
}; };
}; };
# Application launcher
walker = {
url = "github:abenz1267/walker";
inputs = {
nixpkgs.follows = "nixpkgs";
};
};
}; };
outputs = {self, nixpkgs, ...} @ inputs: { outputs = {self, nixpkgs, ...} @ inputs: {

View file

@ -1,4 +1,5 @@
{ {
inputs,
osConfig, osConfig,
pkgs, pkgs,
lib, lib,
@ -7,14 +8,14 @@
inherit (lib) mkIf; inherit (lib) mkIf;
cfg = osConfig.myOptions.home-manager.programs.launchers.walker; cfg = osConfig.myOptions.home-manager.programs.launchers.walker;
in { in {
imports = [ inputs.walker.homeManagerModules.walker ];
config = mkIf cfg.enable { config = mkIf cfg.enable {
home.packages = with pkgs; [ programs.walker = {
walker enable = true;
]; runAsService = true; # makes walker a lot faster when starting
xdg.configFile = { config = builtins.fromJSON (builtins.readFile ./config.json);
"walker/config.json".source = ./config.json; style = builtins.readFile ./style.css;
"walker/style.css".source = ./style.css;
}; };
}; };
} }

View file

@ -12,6 +12,7 @@ _: {
"https://hyprland.cachix.org" # hyprland "https://hyprland.cachix.org" # hyprland
"https://hyprland-community.cachix.org" # hyprland-community "https://hyprland-community.cachix.org" # hyprland-community
"https://ags.cachix.org" # ags "https://ags.cachix.org" # ags
"https://walker.cachix.org" # walker
]; ];
trusted-public-keys = [ trusted-public-keys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
@ -22,6 +23,7 @@ _: {
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc=" "hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
"hyprland-community.cachix.org-1:5dTHY+TjAJjnQs23X+vwMQG4va7j+zmvkTKoYuSXnmE=" "hyprland-community.cachix.org-1:5dTHY+TjAJjnQs23X+vwMQG4va7j+zmvkTKoYuSXnmE="
"ags.cachix.org-1:naAvMrz0CuYqeyGNyLgE010iUiuf/qx6kYrUv3NwAJ8=" "ags.cachix.org-1:naAvMrz0CuYqeyGNyLgE010iUiuf/qx6kYrUv3NwAJ8="
"walker.cachix.org-1:fG8q+uAaMqhsMxWjwvk0IMb4mFPFLqHjuvfwQxE4oJM="
]; ];
}; };
} }