refactoring home manager modules
This commit is contained in:
parent
20de142350
commit
f59d282c12
44 changed files with 0 additions and 80 deletions
34
modules/home/editor/nano.nix
Normal file
34
modules/home/editor/nano.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
config,
|
||||
options,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkEnableOption mkIf;
|
||||
|
||||
cfg = config.sneeuwvlok.editor.nano;
|
||||
in {
|
||||
options.sneeuwvlok.editor.nano = {
|
||||
enable = mkEnableOption "nano";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = with pkgs; [nano];
|
||||
|
||||
# programs.nano = {
|
||||
# enable = true;
|
||||
# syntaxHighlight = true;
|
||||
# nanorc = ''
|
||||
# set autoindent
|
||||
# set jumpyscrolling
|
||||
# set linenumbers
|
||||
# set mouse
|
||||
# set saveonexit
|
||||
# set smarthome
|
||||
# set tabstospaces
|
||||
# set tabsize 2
|
||||
# '';
|
||||
# };
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue