treewide format
This commit is contained in:
parent
653eb2d606
commit
b346790feb
31 changed files with 150 additions and 104 deletions
|
|
@ -1,3 +1,4 @@
|
|||
{lib, ...}: {
|
||||
{ lib, ... }:
|
||||
{
|
||||
imports = lib.custom.scanPaths ./.;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,8 @@
|
|||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
}:
|
||||
{
|
||||
options.hostSpec = {
|
||||
# Data variables that don't dictate configuration settings
|
||||
username = lib.mkOption {
|
||||
|
|
@ -20,7 +21,7 @@
|
|||
description = "The email of the user";
|
||||
};
|
||||
networking = lib.mkOption {
|
||||
default = {};
|
||||
default = { };
|
||||
type = lib.types.attrsOf lib.types.anything;
|
||||
description = "An attribute set of networking information";
|
||||
};
|
||||
|
|
@ -44,12 +45,11 @@
|
|||
home = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = "The home directory of the user";
|
||||
default = let
|
||||
user = config.hostSpec.username;
|
||||
in
|
||||
if pkgs.stdenv.isLinux
|
||||
then "/home/${user}"
|
||||
else "/Users/${user}";
|
||||
default =
|
||||
let
|
||||
user = config.hostSpec.username;
|
||||
in
|
||||
if pkgs.stdenv.isLinux then "/home/${user}" else "/Users/${user}";
|
||||
};
|
||||
persistFolder = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue