home-manager: Use minimal module set and import everything else manually

This commit is contained in:
SebastianStork 2026-02-19 18:05:49 +01:00
parent 0b87addc97
commit 0c25e7fd34
Signed by: SebastianStork
SSH key fingerprint: SHA256:tRrGdjYOwgHxpSc/wTOZQZEjxcb15P0tyXRsbAfd+2Q
18 changed files with 98 additions and 6 deletions

View file

@ -1,10 +1,13 @@
{
config,
modulesPath,
pkgs,
lib,
...
}:
{
imports = [ "${modulesPath}/programs/zoxide.nix" ];
options.custom.programs.shell.aliases.enable = lib.mkEnableOption "";
config = lib.mkIf config.custom.programs.shell.aliases.enable {

View file

@ -1,11 +1,14 @@
{
config,
osConfig,
modulesPath,
pkgs,
lib,
...
}:
{
imports = [ "${modulesPath}/programs/atuin.nix" ];
options.custom.programs.shell.atuin.enable = lib.mkEnableOption "";
config = lib.mkIf config.custom.programs.shell.atuin.enable {

View file

@ -1,5 +1,12 @@
{ config, lib, ... }:
{
config,
modulesPath,
lib,
...
}:
{
imports = [ "${modulesPath}/programs/direnv.nix" ];
options.custom.programs.shell.direnv.enable = lib.mkEnableOption "";
config = lib.mkIf config.custom.programs.shell.direnv.enable {

View file

@ -1,10 +1,16 @@
{
config,
modulesPath,
pkgs,
lib,
...
}:
{
imports = [
"${modulesPath}/programs/fish.nix"
"${modulesPath}/programs/fzf.nix"
"${modulesPath}/programs/man.nix"
];
options.custom.programs.shell.zsh.enable = lib.mkEnableOption "";
config = lib.mkIf config.custom.programs.shell.zsh.enable {