blob: ce8863c27e47642d3cb4ee137b5ee01cbdcf3380 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
{
config,
lib,
pkgs,
...
}: let
cfg = config.seth.standalone;
enable = config.seth.enable && cfg.enable;
in {
options.seth.standalone = {
enable = lib.mkEnableOption "Standalone options";
};
config = lib.mkIf enable {
_module.args.osConfig = {};
programs.home-manager.enable = true;
home = {
username = "seth";
homeDirectory =
if pkgs.stdenv.isDarwin
then "/Users/${config.home.username}"
else "/home/${config.home.username}";
};
};
}
|