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