feat(home-manager): add support for sway (#26)
This commit is contained in:
parent
be6320c4b1
commit
12733d64c3
2 changed files with 20 additions and 0 deletions
|
@ -12,6 +12,7 @@ in {
|
||||||
./helix.nix
|
./helix.nix
|
||||||
./gtk.nix
|
./gtk.nix
|
||||||
./polybar.nix
|
./polybar.nix
|
||||||
|
./sway.nix
|
||||||
./tmux.nix
|
./tmux.nix
|
||||||
];
|
];
|
||||||
in extendedLib.ctp.mapModules config pkgs extendedLib files;
|
in extendedLib.ctp.mapModules config pkgs extendedLib files;
|
||||||
|
|
19
modules/home-manager/sway.nix
Normal file
19
modules/home-manager/sway.nix
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
{ config, pkgs, lib, ... }:
|
||||||
|
let
|
||||||
|
cfg = config.wayland.windowManager.sway.catppuccin;
|
||||||
|
theme = pkgs.fetchFromGitHub
|
||||||
|
{
|
||||||
|
owner = "catppuccin";
|
||||||
|
repo = "sway";
|
||||||
|
rev = "c89098fc3517b64f0422aaaccb98dcab6ae9348f";
|
||||||
|
sha256 = "sha256-6Cvsmdl3OILz1vZovyBIuuSpm207I3W0dmUGowR9Ugk=";
|
||||||
|
} + "/themes/catppuccin-${cfg.flavour}";
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.wayland.windowManager.sway.catppuccin =
|
||||||
|
lib.ctp.mkCatppuccinOpt "sway" config;
|
||||||
|
|
||||||
|
config.wayland.windowManager.sway.extraConfigEarly = with lib;
|
||||||
|
with builtins;
|
||||||
|
mkIf cfg.enable (readFile theme);
|
||||||
|
}
|
Loading…
Reference in a new issue