Flake attempt #31
This commit is contained in:
parent
a8a1022c77
commit
3c1621b951
59
README.md
59
README.md
@ -70,37 +70,42 @@ Add to your `flake.nix` inputs:
|
|||||||
waycast.url = "git+https://gitgud.foo/thegrind/waycast";
|
waycast.url = "git+https://gitgud.foo/thegrind/waycast";
|
||||||
```
|
```
|
||||||
|
|
||||||
**Install as package:**
|
Add the overlay and Home Manager module:
|
||||||
```nix
|
```nix
|
||||||
environment.systemPackages = [ inputs.waycast.packages.${system}.default ];
|
nixpkgs.overlays = [ inputs.waycast.overlays.default ];
|
||||||
# or for home-manager:
|
|
||||||
home.packages = [ inputs.waycast.packages.${system}.default ];
|
home-manager.users.youruser = {
|
||||||
|
imports = [ inputs.waycast.homeManagerModules.default ];
|
||||||
|
|
||||||
|
programs.waycast = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
plugins.projects = {
|
||||||
|
search_paths = ["/absolute/path/to/search"];
|
||||||
|
skip_dirs = [ "node_modules" "target" ".git" ];
|
||||||
|
open_command = "code -n {path}";
|
||||||
|
};
|
||||||
|
plugins.file_search = {
|
||||||
|
search_paths = ["/absolute/path/to/search"];
|
||||||
|
ignore_dirs = ["scripts", "temp"];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
css = ''
|
||||||
|
window {
|
||||||
|
background: rgba(0, 0, 0, 0.8);
|
||||||
|
border-radius: 12px;
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
**With Home Manager module (recommended):**
|
**Just the package:**
|
||||||
```nix
|
```nix
|
||||||
imports = [ inputs.waycast.homeManagerModules.default ];
|
nixpkgs.overlays = [ inputs.waycast.overlays.default ];
|
||||||
|
environment.systemPackages = [ pkgs.waycast ];
|
||||||
programs.waycast = {
|
# or for home-manager:
|
||||||
enable = true;
|
home.packages = [ pkgs.waycast ];
|
||||||
config = {
|
|
||||||
plugins.projects = {
|
|
||||||
search_paths = ["/absolute/path/to/search"];
|
|
||||||
skip_dirs = [ "node_modules" "target" ".git" ];
|
|
||||||
open_command = "code -n {path}";
|
|
||||||
};
|
|
||||||
plugins.file_search = {
|
|
||||||
search_paths = ["/absolute/path/to/search"];
|
|
||||||
ignore_dirs = ["scripts", "temp"]; # Just directory names here
|
|
||||||
};
|
|
||||||
};
|
|
||||||
css = ''
|
|
||||||
window {
|
|
||||||
background: rgba(0, 0, 0, 0.8);
|
|
||||||
border-radius: 12px;
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
@ -100,9 +100,6 @@
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
)) // {
|
)) // {
|
||||||
homeManagerModules.default = { pkgs, ... }: import ./modules/home-manager/waycast.nix {
|
homeManagerModules.default = import ./modules/home-manager/waycast.nix;
|
||||||
inherit pkgs;
|
|
||||||
waycastPackage = self.packages.${pkgs.stdenv.hostPlatform.system}.default;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
{ pkgs, waycastPackage }:
|
{ config, lib, pkgs, ... }:
|
||||||
{ config, lib, ... }:
|
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
@ -16,7 +15,7 @@ in
|
|||||||
|
|
||||||
package = mkOption {
|
package = mkOption {
|
||||||
type = types.package;
|
type = types.package;
|
||||||
default = waycastPackage;
|
default = pkgs.waycast;
|
||||||
description = "The waycast package to use";
|
description = "The waycast package to use";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user