small tweaks

This commit is contained in:
Chris Kruining 2025-03-29 00:17:42 +01:00
parent 0d7d4d3a76
commit ac8aee70c0
Signed by: chris
SSH key fingerprint: SHA256:nG82MUfuVdRVyCKKWqhY+pCrbz9nbX6uzUns4RKa1Pg
3 changed files with 7 additions and 10 deletions

View file

@ -14,9 +14,6 @@
modules = {
system.audio.enable = true;
# EXPERIMENTS
services.auth.enable = true;
root = {
user = {
full_name = "__ROOT__";

View file

@ -59,7 +59,7 @@ in rec
++ (map (user: (args@{ inputs, lib, pkgs, config, options, ... }: {
imports = mapModulesRec' ../modules/home (file: (import file (args // { inherit user; })));
modules.${user} = (import "${path}/users/${user}/default.nix" args);
config.modules.${user} = (import "${path}/users/${user}/default.nix" args);
})) users);
};

View file

@ -1,20 +1,20 @@
{ options, config, lib, pkgs, user, ... }:
{ config, lib, pkgs, user, ... }:
let
inherit (lib.attrsets) attrValues;
inherit (lib.modules) mkIf mkMerge;
inherit (lib.options) mkOption mkEnableOption;
inherit (lib.types) nullOr enum;
cfg = config.modules.${user}.shell;
in
{
options.modules.${user}.shell = let
inherit (lib.options) mkOption mkEnableOption;
inherit (lib.types) nullOr enum;
in {
options.modules.${user}.shell = {
default = mkOption {
type = nullOr (enum ["fish" "zsh" "xonsh"]);
type = nullOr (enum ["fish" "zsh" "bash"]);
default = null;
description = "Default system shell";
};
corePkgs.enable = mkEnableOption "core shell packages";
};