mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:59:37 +08:00
2
.github/CODEOWNERS
vendored
2
.github/CODEOWNERS
vendored
@@ -76,6 +76,8 @@
|
||||
|
||||
/modules/programs/emacs.nix @rycee
|
||||
|
||||
/modules/programs/eww.nix @mainrs
|
||||
|
||||
/modules/programs/exa.nix @kalhauge
|
||||
|
||||
/modules/programs/firefox.nix @rycee
|
||||
|
||||
@@ -2410,6 +2410,13 @@ in
|
||||
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/eclipse.nix
|
||||
./programs/emacs.nix
|
||||
./programs/eww.nix
|
||||
./programs/exa.nix
|
||||
./programs/feh.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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user