modular common programs
This commit is contained in:
parent
4a70e04625
commit
911b6e8f3d
@ -41,6 +41,7 @@
|
||||
programs = {
|
||||
nv.enable = true;
|
||||
shell.enable = true;
|
||||
common.enable = true;
|
||||
};
|
||||
|
||||
xdg.configFile = {
|
||||
|
@ -1,6 +1,15 @@
|
||||
{ pkgs, ... }: {
|
||||
{ pkgs, lib, config, ... }:
|
||||
let
|
||||
cfg = config.programs.common;
|
||||
in
|
||||
{
|
||||
imports = [ ./neovim ./neomutt ./sway ./tmux.nix ./zsh.nix ./lf ];
|
||||
|
||||
options.programs.common = {
|
||||
enable = lib.mkEnableOption "common";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs = {
|
||||
thunderbird = {
|
||||
enable = true;
|
||||
@ -46,4 +55,5 @@
|
||||
reloadTime = 1;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{ pkgs, lib, config, ... }:
|
||||
let
|
||||
cfg = config.programs.nv;
|
||||
cfg = config.programs.shell;
|
||||
in
|
||||
{
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user