fix: tweak options
This commit is contained in:
1 parent
cad486346a
commit
1129b35f8c
7 files changed
+13
-11
No files matched your search
+6
-3
@@ -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";
|
||||
};
|
||||
}
|
||||
@@ -19,6 +19,7 @@ let
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.leonhard = ../home;
|
||||
home-manager.extraSpecialArgs = specialArgs;
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
};
|
||||
|
||||
config = {
|
||||
nix-leonhard.graphical = false;
|
||||
nix-leonhard.neovim.enable = true;
|
||||
|
||||
users.users.leonhard = {
|
||||
initialPassword = "leonhard";
|
||||
|
||||
+2
-5
@@ -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";
|
||||
};
|
||||
}
|
||||
@@ -15,7 +15,6 @@ homeManagerConfiguration {
|
||||
./base.nix
|
||||
../home
|
||||
{
|
||||
nix-leonhard.graphical = false;
|
||||
nix-leonhard.neovim.enable = true;
|
||||
}
|
||||
];
|
||||
|
||||
@@ -13,7 +13,6 @@
|
||||
];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
vim
|
||||
wget
|
||||
];
|
||||
|
||||
|
||||
Reference in new issue
Block a user