mirror of
https://github.com/librephoenix/nixos-config
synced 2025-10-18 09:34:00 +05:30
Major update to handle multiple systems
This commit is contained in:
parent
0453901d17
commit
cd1d2d866b
34 changed files with 2040 additions and 456 deletions
|
@ -8,7 +8,7 @@ in {
|
|||
userSettings.editor = lib.mkOption {
|
||||
default = "emacs";
|
||||
description = "Default editor";
|
||||
type = lib.types.enum [ "emacs" ];
|
||||
type = lib.types.enum [ "emacs" "kate" ];
|
||||
# TODO add more editors
|
||||
#type = lib.types.enum [ "emacs" "vim" "nvim" "neovide" "nano" "micro" "vscodium" "kate" "pulsar" ];
|
||||
};
|
||||
|
@ -20,6 +20,8 @@ in {
|
|||
|
||||
config = {
|
||||
userSettings.emacs.enable = lib.mkIf (config.userSettings.editor == "emacs") true;
|
||||
home.packages = with pkgs;
|
||||
lib.optionals (editor == "kate") [ kdePackages.kate];
|
||||
userSettings.spawnEditor = lib.mkMerge [
|
||||
(lib.mkIf (editor == "emacs") "emacsclient -c -a 'emacs'")
|
||||
(lib.mkIf (editor == "neovide") "neovide -- --listen /tmp/nvimsocket")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue