refactor: standardize on formatter
This commit is contained in:
parent
723c16bbb5
commit
1284023e7a
20 changed files with 1131 additions and 1111 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue