mirror of
https://github.com/nix-community/home-manager
synced 2024-12-24 10:49:48 +01:00
parent
2116fe6b50
commit
498c188e62
4 changed files with 49 additions and 0 deletions
2
.github/CODEOWNERS
vendored
2
.github/CODEOWNERS
vendored
|
@ -76,6 +76,8 @@
|
||||||
|
|
||||||
/modules/programs/emacs.nix @rycee
|
/modules/programs/emacs.nix @rycee
|
||||||
|
|
||||||
|
/modules/programs/eww.nix @mainrs
|
||||||
|
|
||||||
/modules/programs/exa.nix @kalhauge
|
/modules/programs/exa.nix @kalhauge
|
||||||
|
|
||||||
/modules/programs/firefox.nix @rycee
|
/modules/programs/firefox.nix @rycee
|
||||||
|
|
|
@ -2410,6 +2410,13 @@ in
|
||||||
A new module is available: 'programs.zellij'.
|
A new module is available: 'programs.zellij'.
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
time = "2022-02-17T17:12:46+00:00";
|
||||||
|
message = ''
|
||||||
|
A new module is available: 'programs.eww'.
|
||||||
|
'';
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -60,6 +60,7 @@ let
|
||||||
./programs/direnv.nix
|
./programs/direnv.nix
|
||||||
./programs/eclipse.nix
|
./programs/eclipse.nix
|
||||||
./programs/emacs.nix
|
./programs/emacs.nix
|
||||||
|
./programs/eww.nix
|
||||||
./programs/exa.nix
|
./programs/exa.nix
|
||||||
./programs/feh.nix
|
./programs/feh.nix
|
||||||
./programs/firefox.nix
|
./programs/firefox.nix
|
||||||
|
|
39
modules/programs/eww.nix
Normal file
39
modules/programs/eww.nix
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
|
||||||
|
let
|
||||||
|
|
||||||
|
cfg = config.programs.eww;
|
||||||
|
|
||||||
|
in {
|
||||||
|
meta.maintainers = [ maintainers.mainrs ];
|
||||||
|
|
||||||
|
options.programs.eww = {
|
||||||
|
enable = mkEnableOption "eww";
|
||||||
|
|
||||||
|
package = mkOption {
|
||||||
|
type = types.package;
|
||||||
|
default = pkgs.eww;
|
||||||
|
defaultText = literalExpression "pkgs.eww";
|
||||||
|
example = literalExpression "pkgs.eww";
|
||||||
|
description = ''
|
||||||
|
The eww package to install.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
configDir = mkOption {
|
||||||
|
type = types.path;
|
||||||
|
example = literalExpression "./eww-config-dir";
|
||||||
|
description = ''
|
||||||
|
The directory that gets symlinked to
|
||||||
|
<filename>$XDG_CONFIG_HOME/eww</filename>.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
home.packages = [ cfg.package ];
|
||||||
|
xdg.configFile."eww".source = cfg.configDir;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue