mirror of
https://github.com/mjallen18/snowfall-lib.git
synced 2026-04-18 09:05:58 -05:00
refactor: standardize on formatter
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user