works again, mostly done, now we can start with server
This commit is contained in:
parent
784f214fb7
commit
270e1a0be4
38 changed files with 623 additions and 381 deletions
|
|
@ -11,44 +11,54 @@
|
|||
editor = {
|
||||
vscodium.enable = lib.mkEnableOption "enable vscodium";
|
||||
emacs.enable = lib.mkEnableOption "enable emacs";
|
||||
default = "vscodium";
|
||||
default = lib.mkOption {
|
||||
default = "vscodium";
|
||||
description = "default editor";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
config = {
|
||||
environment.systemPackages = with pkgs; [
|
||||
(lib.mkIf config.development.editor.vscodium.enable vscodium)
|
||||
nixfmt
|
||||
];
|
||||
environment.systemPackages =
|
||||
with pkgs;
|
||||
[
|
||||
nixfmt
|
||||
]
|
||||
++ (if config.development.editor.vscodium.enable then [ vscodium ] else [ ]);
|
||||
|
||||
programs = {
|
||||
vscode = lib.mkIf config.development.editor.vscodium.enable {
|
||||
enable = true;
|
||||
package = pkgs.vscodium;
|
||||
defaultEditor = lib.mkIf (config.development.editor.default == "vscodium") true;
|
||||
profiles.default.extensions = with pkgs.vscode-extensions; [
|
||||
catppuccin.catppuccin-vsc
|
||||
catppuccin.catppuccin-vsc-icons
|
||||
jnoortheen.nix-ide
|
||||
alefragnani.project-manager
|
||||
naumovs.color-highlight
|
||||
geequlim.godot-tools
|
||||
stylelint.vscode-stylelint
|
||||
ecmel.vscode-html-css
|
||||
esbenp.prettier-vscode
|
||||
];
|
||||
};
|
||||
vscode =
|
||||
if config.development.editor.vscodium.enable then
|
||||
{
|
||||
enable = true;
|
||||
package = pkgs.vscodium;
|
||||
defaultEditor = if (config.development.editor.default == "vscodium") then true else false;
|
||||
# profiles.default.extensions = with pkgs.vscode-extensions; [
|
||||
# catppuccin.catppuccin-vsc
|
||||
# catppuccin.catppuccin-vsc-icons
|
||||
# jnoortheen.nix-ide
|
||||
# alefragnani.project-manager
|
||||
# naumovs.color-highlight
|
||||
# geequlim.godot-tools
|
||||
# stylelint.vscode-stylelint
|
||||
# ecmel.vscode-html-css
|
||||
# esbenp.prettier-vscode
|
||||
# ];
|
||||
}
|
||||
else
|
||||
{ };
|
||||
};
|
||||
services = {
|
||||
emacs = lib.mkIf config.development.editor.emacs.enable {
|
||||
enable = true;
|
||||
install = true;
|
||||
defaultEditor = lib.mkIf (config.development.editor.default == "emacs") true;
|
||||
};
|
||||
};
|
||||
home.sessionVariables = {
|
||||
EDITOR = lib.mkDefault "codium";
|
||||
emacs =
|
||||
if config.development.editor.emacs.enable then
|
||||
{
|
||||
enable = true;
|
||||
install = true;
|
||||
defaultEditor = if (config.development.editor.default == "emacs") then true else false;
|
||||
}
|
||||
else
|
||||
{ };
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue