Skip to content

Commit

Permalink
feat(home-manager): init swaylock module (catppuccin#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anomalocaridid authored and Liassica committed Apr 10, 2024
1 parent 095489c commit 9d8109a
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 0 deletions.
20 changes: 20 additions & 0 deletions _sources/generated.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
12 changes: 12 additions & 0 deletions _sources/generated.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
16 changes: 16 additions & 0 deletions modules/home-manager/swaylock.nix
Original file line number Diff line number Diff line change
@@ -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));
}
4 changes: 4 additions & 0 deletions nvfetcher.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions test.nix
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ in
micro = ctpEnable;
neovim = ctpEnable;
starship = ctpEnable;
swaylock = ctpEnable;
tmux = ctpEnable;
zathura = ctpEnable;
};
Expand Down

0 comments on commit 9d8109a

Please sign in to comment.