modularizing zsh
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
{
|
||||
boot.loader = {
|
||||
systemd-boot.enable = true;
|
||||
systemd-boot.graceful = true;
|
||||
efi.canTouchEfiVariables = false;
|
||||
};
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
# lanzaboote config
|
||||
{
|
||||
imports = [
|
||||
inputs.lanzaboote.nixosModules.lanzaboote
|
||||
];
|
||||
|
||||
boot = {
|
||||
lanzaboote = {
|
||||
enable = true;
|
||||
pkiBundle = "/etc/secureboot";
|
||||
};
|
||||
|
||||
# we let lanzaboote install systemd-boot
|
||||
loader.systemd-boot.enable = lib.mkForce false;
|
||||
};
|
||||
|
||||
environment.systemPackages = [pkgs.sbctl];
|
||||
}
|
||||
@@ -5,6 +5,5 @@
|
||||
./fonts
|
||||
./security
|
||||
./xdg
|
||||
./zsh
|
||||
];
|
||||
}
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
{zramSwap.enable = true;}
|
||||
@@ -1 +0,0 @@
|
||||
{ programs.zsh.enable = true; }
|
||||
@@ -49,5 +49,6 @@
|
||||
"${systemModules}/utils/npm"
|
||||
"${systemModules}/utils/obsidian"
|
||||
"${systemModules}/utils/yubikey"
|
||||
"${systemModules}/utils/zsh"
|
||||
];
|
||||
}
|
||||
|
||||
15
system/modules/utils/zsh/default.nix
Normal file
15
system/modules/utils/zsh/default.nix
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.modules.utils.zsh;
|
||||
in {
|
||||
options = {
|
||||
modules.utils.zsh.enable = mkEnableOption "Enables android tools";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
programs.zsh.enable = cfg.enable;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user