From 088facf700946cb8f2d96c6089185bdc2a67180a Mon Sep 17 00:00:00 2001 From: seth Date: Sun, 30 Jun 2024 09:56:30 -0400 Subject: alejandra -> nixfmt-rfc-style --- users/seth/base/default.nix | 18 ++++++------------ users/seth/base/standalone.nix | 12 ++++++------ 2 files changed, 12 insertions(+), 18 deletions(-) (limited to 'users/seth/base') 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}"; }; }; } -- cgit v1.2.3