mirror of
https://github.com/mjallen18/snowfall-lib.git
synced 2026-04-18 09:05:58 -05:00
wip: better home-manager integration
This commit is contained in:
23
modules/home/user/default.nix
Normal file
23
modules/home/user/default.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{ lib, options, ... }:
|
||||
|
||||
let
|
||||
inherit (lib) types mkOption mkIf;
|
||||
|
||||
cfg = options.snowfallorg;
|
||||
in
|
||||
# (builtins.trace (cfg.user.name or "no name"))
|
||||
{
|
||||
options.snowfallorg = {
|
||||
user = {
|
||||
name = mkOption {
|
||||
type = types.str;
|
||||
description = "The user's name.";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# config = mkIf ((cfg.user.name or null) != null) {
|
||||
# @TODO(jakehamilton): Get user home directory from osConfig if
|
||||
# it exists.
|
||||
# };
|
||||
}
|
||||
Reference in New Issue
Block a user