editor shit
This commit is contained in:
parent
633a966e52
commit
b11e8347c1
14 changed files with 160 additions and 16 deletions
|
|
@ -11,8 +11,10 @@
|
|||
editor = {
|
||||
vscodium.enable = lib.mkEnableOption "enable vscodium";
|
||||
emacs.enable = lib.mkEnableOption "enable emacs";
|
||||
neovim.enable = lib.mkEnableOption "enable neovim";
|
||||
zed.enable = lib.mkEnableOption "enable zed";
|
||||
default = lib.mkOption {
|
||||
default = "vscodium";
|
||||
default = "neovim";
|
||||
description = "default editor";
|
||||
};
|
||||
};
|
||||
|
|
@ -24,10 +26,26 @@
|
|||
with pkgs;
|
||||
[
|
||||
nixfmt
|
||||
fd
|
||||
nil
|
||||
nixd
|
||||
]
|
||||
++ (if config.apps.development.editor.vscodium.enable then [ vscodium ] else [ ]);
|
||||
++ (if config.apps.development.editor.vscodium.enable then [ vscodium ] else [ ])
|
||||
++ (if config.apps.development.editor.zed.enable then [ zed-editor ] else [ ]);
|
||||
|
||||
programs = {
|
||||
neovim =
|
||||
if
|
||||
config.apps.development.editor.neovim.enable
|
||||
then
|
||||
{
|
||||
enable = true;
|
||||
defaultEditor = if (config.apps.development.editor.default == "neovim") then true else false;
|
||||
viAlias = true;
|
||||
vimAlias = true;
|
||||
}
|
||||
else
|
||||
{ };
|
||||
vscode =
|
||||
if config.apps.development.editor.vscodium.enable then
|
||||
{
|
||||
|
|
|
|||
|
|
@ -16,7 +16,16 @@
|
|||
environment.systemPackages =
|
||||
with pkgs;
|
||||
[
|
||||
nixd
|
||||
nil
|
||||
]
|
||||
++ (if config.apps.development.languages.python.enable then [ virtualenv ] else [ ]);
|
||||
++ (
|
||||
if config.apps.development.languages.python.enable then
|
||||
[
|
||||
virtualenv
|
||||
]
|
||||
else
|
||||
[ ]
|
||||
);
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,7 +20,15 @@
|
|||
environment.systemPackages =
|
||||
with pkgs;
|
||||
[ ]
|
||||
++ (if config.apps.messaging.element.enable then [ element-desktop ] else [ ])
|
||||
++ (
|
||||
if config.apps.messaging.element.enable then
|
||||
[
|
||||
element-desktop
|
||||
fluffychat
|
||||
]
|
||||
else
|
||||
[ ]
|
||||
)
|
||||
++ (if config.apps.messaging.signal.enable then [ signal-desktop ] else [ ]);
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue