summaryrefslogtreecommitdiff
path: root/users/seth/base
diff options
context:
space:
mode:
Diffstat (limited to 'users/seth/base')
-rw-r--r--users/seth/base/default.nix18
-rw-r--r--users/seth/base/standalone.nix12
2 files changed, 12 insertions, 18 deletions
diff --git a/users/seth/base/default.nix b/users/seth/base/default.nix
index b6c7571..7b97b51 100644
--- a/users/seth/base/default.nix
+++ b/users/seth/base/default.nix
@@ -1,19 +1,13 @@
-{
- config,
- lib,
- ...
-}: let
+{ config, lib, ... }:
+let
cfg = config.seth;
-in {
+in
+{
options.seth = {
enable = lib.mkEnableOption "Seth's home configuration";
};
- imports = [
- ./standalone.nix
- ];
+ imports = [ ./standalone.nix ];
- config = lib.mkIf cfg.enable {
- home.stateVersion = "23.11";
- };
+ config = lib.mkIf cfg.enable { home.stateVersion = "23.11"; };
}
diff --git a/users/seth/base/standalone.nix b/users/seth/base/standalone.nix
index ce8863c..14845dc 100644
--- a/users/seth/base/standalone.nix
+++ b/users/seth/base/standalone.nix
@@ -3,24 +3,24 @@
lib,
pkgs,
...
-}: let
+}:
+let
cfg = config.seth.standalone;
enable = config.seth.enable && cfg.enable;
-in {
+in
+{
options.seth.standalone = {
enable = lib.mkEnableOption "Standalone options";
};
config = lib.mkIf enable {
- _module.args.osConfig = {};
+ _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}";
+ if pkgs.stdenv.isDarwin then "/Users/${config.home.username}" else "/home/${config.home.username}";
};
};
}