feat(home-manager): init swaylock module (#92)
This commit is contained in:
parent
be4f122fee
commit
6ab5126dbe
5 changed files with 53 additions and 0 deletions
|
@ -399,6 +399,26 @@
|
|||
},
|
||||
"version": "c7e54561a2539024020837f23068f70c6d2ae424"
|
||||
},
|
||||
"swaylock": {
|
||||
"cargoLocks": null,
|
||||
"date": "2024-01-17",
|
||||
"extract": null,
|
||||
"name": "swaylock",
|
||||
"passthru": null,
|
||||
"pinned": false,
|
||||
"src": {
|
||||
"deepClone": false,
|
||||
"fetchSubmodules": false,
|
||||
"leaveDotGit": false,
|
||||
"name": null,
|
||||
"owner": "catppuccin",
|
||||
"repo": "swaylock",
|
||||
"rev": "ac089b8b8ae7852816fa709f6d97659221b75e18",
|
||||
"sha256": "sha256-e17JVWyj+ES9qII8Ukj6JxZh4bWUK+gOKsTvUIu3Qq4=",
|
||||
"type": "github"
|
||||
},
|
||||
"version": "ac089b8b8ae7852816fa709f6d97659221b75e18"
|
||||
},
|
||||
"tmux": {
|
||||
"cargoLocks": null,
|
||||
"date": "2024-03-13",
|
||||
|
|
|
@ -241,6 +241,18 @@
|
|||
};
|
||||
date = "2023-12-20";
|
||||
};
|
||||
swaylock = {
|
||||
pname = "swaylock";
|
||||
version = "ac089b8b8ae7852816fa709f6d97659221b75e18";
|
||||
src = fetchFromGitHub {
|
||||
owner = "catppuccin";
|
||||
repo = "swaylock";
|
||||
rev = "ac089b8b8ae7852816fa709f6d97659221b75e18";
|
||||
fetchSubmodules = false;
|
||||
sha256 = "sha256-e17JVWyj+ES9qII8Ukj6JxZh4bWUK+gOKsTvUIu3Qq4=";
|
||||
};
|
||||
date = "2024-01-17";
|
||||
};
|
||||
tmux = {
|
||||
pname = "tmux";
|
||||
version = "cece0c36772483d1343bcace2b1cedb007057c2e";
|
||||
|
|
16
modules/home-manager/swaylock.nix
Normal file
16
modules/home-manager/swaylock.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{ config
|
||||
, lib
|
||||
, sources
|
||||
, ...
|
||||
}:
|
||||
let
|
||||
cfg = config.programs.swaylock.catppuccin;
|
||||
enable = cfg.enable && config.programs.swaylock.enable;
|
||||
in
|
||||
{
|
||||
options.programs.swaylock.catppuccin =
|
||||
lib.ctp.mkCatppuccinOpt "swaylock";
|
||||
|
||||
config.programs.swaylock.settings = lib.mkIf enable
|
||||
(lib.ctp.fromINI (sources.swaylock + /themes/${cfg.flavour}.conf));
|
||||
}
|
|
@ -78,6 +78,10 @@ fetch.github = "catppuccin/starship"
|
|||
src.git = "https://github.com/catppuccin/sway.git"
|
||||
fetch.github = "catppuccin/sway"
|
||||
|
||||
[swaylock]
|
||||
src.git = "https://github.com/catppuccin/swaylock.git"
|
||||
fetch.github = "catppuccin/swaylock"
|
||||
|
||||
[tmux]
|
||||
src.git = "https://github.com/catppuccin/tmux.git"
|
||||
fetch.github = "catppuccin/tmux"
|
||||
|
|
1
test.nix
1
test.nix
|
@ -69,6 +69,7 @@ in
|
|||
micro = ctpEnable;
|
||||
neovim = ctpEnable;
|
||||
starship = ctpEnable;
|
||||
swaylock = ctpEnable;
|
||||
tmux = ctpEnable;
|
||||
zathura = ctpEnable;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue