refactor: standardize on formatter

This commit is contained in:
Jake Hamilton 2024-02-14 01:29:59 -08:00
parent 723c16bbb5
commit 1284023e7a
No known key found for this signature in database
GPG key ID: 9762169A1B35EA68
20 changed files with 1131 additions and 1111 deletions

View file

@ -1,6 +1,10 @@
inputs@{ pkgs, lib, options, config, ... }:
let
inputs @ {
pkgs,
lib,
options,
config,
...
}: let
inherit (lib) types mkOption mkIf mkDefault;
cfg = config.snowfallorg;
@ -12,14 +16,12 @@ let
has-user-name = (cfg.user.name or null) != null;
default-home-directory =
if (os-user-home != null) then
os-user-home
else if pkgs.stdenv.isDarwin then
"/Users/${cfg.user.name}"
else
"/home/${cfg.user.name}";
in
{
if (os-user-home != null)
then os-user-home
else if pkgs.stdenv.isDarwin
then "/Users/${cfg.user.name}"
else "/home/${cfg.user.name}";
in {
options.snowfallorg = {
user = {
enable = mkOption {