summaryrefslogtreecommitdiff
path: root/users/seth/module/standalone.nix
blob: c08d2ae65bd91c4c4e70d69e23645bd9e1e49eee (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
{
  config,
  lib,
  pkgs,
  inputs,
  ...
}: let
  cfg = config.seth.standalone;
in {
  options.seth.standalone = {
    enable = lib.mkEnableOption "Standalone options";
  };

  config = lib.mkIf cfg.enable {
    home = {
      username = "seth";
      homeDirectory =
        if pkgs.stdenv.isDarwin
        then "/Users/${config.home.username}"
        else "/home/${config.home.username}";
    };

    nixpkgs.overlays = [inputs.self.overlays.default];
  };
}