fix: Change how enabled users are handled
This commit is contained in:
committed by
Hunter Halloran
parent
0ffdfdf0d8
commit
7ac453e1f7
@@ -19,10 +19,10 @@
|
||||
# home-manager.users.myuser.imports = [ inputs.nixos-systems.homeManagerModules.theme ];
|
||||
#
|
||||
# # Neovim module (requires user parameter):
|
||||
# home-manager.users.myuser.imports = [
|
||||
# (inputs.nixos-systems.homeManagerModules.nvim {
|
||||
# home-manager.users.myuser.imports = [
|
||||
# (inputs.nixos-systems.homeManagerModules.nvim {
|
||||
# user = config.ugaif.users.accounts.myuser;
|
||||
# })
|
||||
# })
|
||||
# ];
|
||||
|
||||
{ inputs }:
|
||||
@@ -39,8 +39,8 @@ let
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
../sw/ghostty.nix # Terminal emulator
|
||||
../sw/python.nix # Python environment
|
||||
../sw/ghostty.nix # Terminal emulator
|
||||
../sw/python.nix # Python environment
|
||||
(import ../sw/${swType} {
|
||||
inherit
|
||||
config
|
||||
@@ -60,32 +60,30 @@ let
|
||||
|
||||
# Helper to create a Home Manager module for nvim (requires user context)
|
||||
# External users can import this with their user data
|
||||
mkNvimModule =
|
||||
user:
|
||||
(import ../sw/nvim.nix { inherit user; });
|
||||
mkNvimModule = user: (import ../sw/nvim.nix { inherit user; });
|
||||
in
|
||||
{
|
||||
# ========== Full Host Type Modules ==========
|
||||
# Complete system configurations including hardware, boot, and software
|
||||
nix-desktop = import ../hosts/types/nix-desktop.nix { inherit inputs; }; # Desktop workstations
|
||||
nix-laptop = import ../hosts/types/nix-laptop.nix { inherit inputs; }; # Laptop systems
|
||||
nix-surface = import ../hosts/types/nix-surface.nix { inherit inputs; }; # Surface tablets
|
||||
nix-lxc = import ../hosts/types/nix-lxc.nix { inherit inputs; }; # Proxmox containers
|
||||
nix-wsl = import ../hosts/types/nix-wsl.nix { inherit inputs; }; # WSL2 systems
|
||||
nix-desktop = import ../hosts/types/nix-desktop.nix { inherit inputs; }; # Desktop workstations
|
||||
nix-laptop = import ../hosts/types/nix-laptop.nix { inherit inputs; }; # Laptop systems
|
||||
nix-surface = import ../hosts/types/nix-surface.nix { inherit inputs; }; # Surface tablets
|
||||
nix-lxc = import ../hosts/types/nix-lxc.nix { inherit inputs; }; # Proxmox containers
|
||||
nix-wsl = import ../hosts/types/nix-wsl.nix { inherit inputs; }; # WSL2 systems
|
||||
nix-ephemeral = import ../hosts/types/nix-ephemeral.nix { inherit inputs; }; # Diskless/RAM-only
|
||||
|
||||
# ========== Software-Only Modules (NixOS) ==========
|
||||
# For use with custom hardware configurations
|
||||
sw-desktop = mkSwModule "desktop"; # Full desktop environment
|
||||
sw-headless = mkSwModule "headless"; # CLI-only systems
|
||||
sw-stateless-kiosk = mkSwModule "stateless-kiosk"; # Netboot kiosk
|
||||
sw-tablet-kiosk = mkSwModule "tablet-kiosk"; # Touch-based kiosk
|
||||
sw-desktop = mkSwModule "desktop"; # Full desktop environment
|
||||
sw-headless = mkSwModule "headless"; # CLI-only systems
|
||||
sw-stateless-kiosk = mkSwModule "stateless-kiosk"; # Netboot kiosk
|
||||
sw-tablet-kiosk = mkSwModule "tablet-kiosk"; # Touch-based kiosk
|
||||
|
||||
# ========== Home Manager Modules ==========
|
||||
# User-level configuration modules
|
||||
# Usage: home-manager.users.myuser.imports = [ (inputs.nixos-systems.homeManagerModules.nvim { user = <user-data>; }) ];
|
||||
homeModules = {
|
||||
theme = ../sw/theme.nix; # Zsh theme (no params needed)
|
||||
nvim = mkNvimModule; # Neovim (requires user param)
|
||||
theme = ../sw/theme.nix; # Zsh theme (no params needed)
|
||||
nvim = mkNvimModule; # Neovim (requires user param)
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user