mirror of
https://github.com/librephoenix/nixos-config
synced 2025-11-30 14:43:59 +05:30
Updated system + trying zed
This commit is contained in:
parent
e15e4d817e
commit
6f6d16dff1
10 changed files with 166 additions and 84 deletions
|
|
@ -8,7 +8,7 @@ in {
|
|||
userSettings.editor = lib.mkOption {
|
||||
default = "vscodium";
|
||||
description = "Default editor";
|
||||
type = lib.types.enum [ "emacs" "kate" "vscodium" ];
|
||||
type = lib.types.enum [ "emacs" "kate" "vscodium" "zed"];
|
||||
# TODO add more editors
|
||||
#type = lib.types.enum [ "emacs" "vim" "nvim" "neovide" "nano" "micro" "vscodium" "kate" "pulsar" ];
|
||||
};
|
||||
|
|
@ -19,6 +19,7 @@ in {
|
|||
};
|
||||
|
||||
config = {
|
||||
userSettings.zed.enable = lib.mkIf (config.userSettings.editor == "zed") true;
|
||||
userSettings.emacs.enable = lib.mkIf (config.userSettings.editor == "emacs") true;
|
||||
userSettings.vscodium.enable = lib.mkIf (config.userSettings.editor == "vscodium") true;
|
||||
home.packages = with pkgs;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue