Refactor codebase to use nix modules
This commit is contained in:
parent
a4735423b4
commit
ffada2703c
114 changed files with 1018 additions and 744 deletions
34
hmModules/services/wal/default.nix
Normal file
34
hmModules/services/wal/default.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
let rootPath = ./.; in
|
||||
{
|
||||
options.colors = {
|
||||
enable = lib.mkEnableOption "Enables setting colors using wallust";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.colors.enable {
|
||||
home.packages = with pkgs; [
|
||||
wallust # A better pywal
|
||||
pywalfox-native # Update librewolf's colorscheme based on wal
|
||||
];
|
||||
xdg.configFile."wallust-config" = {
|
||||
target = "wallust/wallust.toml";
|
||||
text = ''
|
||||
backend = "wal"
|
||||
color_space = "lab"
|
||||
threshold = 20
|
||||
filter = "dark16"
|
||||
|
||||
# [[entry]]
|
||||
# # a relative path to a file where wallust.toml is (~/.config/wallust/)
|
||||
# template = "dunstrc"
|
||||
#
|
||||
# # absolute path to the file to write the template (after templating)
|
||||
# target = "~/.config/dunst/dunstrc"
|
||||
'';
|
||||
};
|
||||
#xdg.configFile."wallust-templates" = {
|
||||
# source = rootPath + "/templates";
|
||||
# target = "wallust/";
|
||||
#};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue