Skip to content

Commit

Permalink
feat(home-manager): init swaylock module
Browse files Browse the repository at this point in the history
  • Loading branch information
Anomalocaridid committed Jan 18, 2024
1 parent 4a76ba2 commit 8b985f7
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 @@ -359,6 +359,26 @@
},
"version": "c976222e5cacbba7946fb82163944924bd5fac12"
},
"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": "2023-11-01",
Expand Down
12 changes: 12 additions & 0 deletions _sources/generated.nix
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,18 @@
};
date = "2023-08-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 = "47e33044b4b47b1c1faca1e42508fc92be12131a";
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 @@ -70,6 +70,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 @@ -65,6 +65,7 @@ in
micro = ctpEnable;
neovim = ctpEnable;
starship = ctpEnable;
swaylock = ctpEnable;
tmux = ctpEnable;
zathura = ctpEnable;
};
Expand Down

0 comments on commit 8b985f7

Please sign in to comment.