mirror of
https://github.com/ItsDrike/nixdots
synced 2024-11-09 22:19:42 +00:00
walker: Use flake instead of manual config
This commit is contained in:
parent
bfb1adb3bc
commit
61ada8f1cf
45
flake.lock
45
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",
|
||||
|
|
|
@ -37,6 +37,14 @@
|
|||
nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
# Application launcher
|
||||
walker = {
|
||||
url = "github:abenz1267/walker";
|
||||
inputs = {
|
||||
nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
outputs = {self, nixpkgs, ...} @ inputs: {
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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="
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue