fix: tweak options

This commit is contained in:
leonhard committed 2026-11-13 16:18:32 +01:00
1 parent cad486346a
commit 1129b35f8c
7 files changed
+13 -11

No files matched your search

+6 -3
View File
@@ -6,9 +6,12 @@
...
}:
{
options.nix-leonhard.neovim.enable = lib.mkEnableOption "neovim";
home.packages = lib.mkIf config.nix-leonhard.neovim.enable [
self.packages.${pkgs.stdenv.hostPlatform.system}.nixvim
];
config = lib.mkIf config.nix-leonhard.neovim.enable {
home.packages = [ self.packages.${pkgs.stdenv.hostPlatform.system}.nixvim ];
home.sessionVariables = lib.mkIf config.nix-leonhard.neovim.enable {
EDITOR = "nvim";
VISUAL = "nvim";
};
}
+1
View File
@@ -19,6 +19,7 @@ let
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.leonhard = ../home;
home-manager.extraSpecialArgs = specialArgs;
}
];
};
+3
View File
@@ -3,6 +3,9 @@
./hardware-configuration.nix
];
nix-leonhard.graphical.enable = true;
nix-leonhard.neovim.enable = true;
# Enable CUPS to print documents.
#services.printing.enable = true;
+1 -1
View File
@@ -26,7 +26,7 @@
};
config = {
nix-leonhard.graphical = false;
nix-leonhard.neovim.enable = true;
users.users.leonhard = {
initialPassword = "leonhard";
+2 -5
View File
@@ -4,10 +4,7 @@
}:
{
options.nix-leonhard = with lib.types; {
graphical = lib.mkOption {
type = bool;
default = true;
description = "Whether to enable GUI features and programs.";
};
graphical = lib.mkEnableOption "GUI features and programs";
neovim.enable = lib.mkEnableOption "neovim";
};
}
-1
View File
@@ -15,7 +15,6 @@ homeManagerConfiguration {
./base.nix
../home
{
nix-leonhard.graphical = false;
nix-leonhard.neovim.enable = true;
}
];
-1
View File
@@ -13,7 +13,6 @@
];
environment.systemPackages = with pkgs; [
vim
wget
];