base: Add shared zfs options to make links config live close to related config
This commit is contained in:
parent
fe306085f4
commit
33dadf8e4c
10 changed files with 72 additions and 62 deletions
|
@ -1,23 +1,20 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
config = {
|
||||
chvp.base = {
|
||||
emacs.extraConfig = [
|
||||
''
|
||||
;; Nix syntax support
|
||||
(use-package nix-mode
|
||||
:mode "\\.nix\\'"
|
||||
)
|
||||
''
|
||||
] ++ lib.optional config.chvp.base.nix.enableDirenv ''
|
||||
;; Direnv integration in emacs.
|
||||
(use-package direnv
|
||||
:config (direnv-mode)
|
||||
chvp.base = {
|
||||
emacs.extraConfig = [
|
||||
''
|
||||
;; Nix syntax support
|
||||
(use-package nix-mode
|
||||
:mode "\\.nix\\'"
|
||||
)
|
||||
'';
|
||||
zfs.homeLinks = (lib.optional config.chvp.base.nix.enableDirenv { path = ".local/share/direnv"; type = "cache"; });
|
||||
};
|
||||
nix.gc.dates = if config.chvp.base.nix.slowGc then "daily" else "hourly";
|
||||
programs.command-not-found.enable = false;
|
||||
''
|
||||
] ++ lib.optional config.chvp.base.nix.enableDirenv ''
|
||||
;; Direnv integration in emacs.
|
||||
(use-package direnv
|
||||
:config (direnv-mode)
|
||||
)
|
||||
'';
|
||||
};
|
||||
nix.gc.dates = if config.chvp.base.nix.slowGc then "daily" else "hourly";
|
||||
programs.command-not-found.enable = false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue