modularizing zsh

This commit is contained in:
cnst
2024-10-03 19:16:22 +02:00
parent 92d9e7bda3
commit e271e32e70
11 changed files with 81 additions and 79 deletions

View File

@@ -1,7 +0,0 @@
{
boot.loader = {
systemd-boot.enable = true;
systemd-boot.graceful = true;
efi.canTouchEfiVariables = false;
};
}

View File

@@ -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];
}

View File

@@ -5,6 +5,5 @@
./fonts
./security
./xdg
./zsh
];
}

View File

@@ -1 +0,0 @@
{zramSwap.enable = true;}

View File

@@ -1 +0,0 @@
{ programs.zsh.enable = true; }

View File

@@ -49,5 +49,6 @@
"${systemModules}/utils/npm"
"${systemModules}/utils/obsidian"
"${systemModules}/utils/yubikey"
"${systemModules}/utils/zsh"
];
}

View 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;
};
}