builders: default system

sh-initrd-on-root
Zynh Ludwig 2024-08-22 00:03:54 -07:00
parent 19423844ad
commit b0572534d9
2 changed files with 2 additions and 5 deletions

View File

@ -24,7 +24,6 @@
[ [
{ {
hostname = "snowhawk"; hostname = "snowhawk";
system = "x86_64-linux";
} }
]; ];
@ -34,12 +33,10 @@
{ {
user = "zynh"; user = "zynh";
hostname = "msiserver"; hostname = "msiserver";
system = "x86_64-linux";
} }
{ {
user = "val"; user = "val";
hostname = "caveserver"; hostname = "caveserver";
system = "x86_64-linux";
} }
{ {
user = "zynh"; user = "zynh";

View File

@ -17,7 +17,7 @@ let
in in
rec { rec {
toPartialNixosConfig = toPartialNixosConfig =
{ hostname, system }: { hostname, system ? "x86_64-linux" }:
nameValuePair nameValuePair
hostname hostname
(nixosSystem rec { (nixosSystem rec {
@ -44,7 +44,7 @@ rec {
systems; systems;
toPartialHomeManagerConfig = toPartialHomeManagerConfig =
{ user, system, hostname ? "", configHostname ? "" }: { user, system ? "x86_64-linux", hostname ? "", configHostname ? "" }:
let let
configHost = if builtins.stringLength configHostname > 0 then configHostname else hostname; configHost = if builtins.stringLength configHostname > 0 then configHostname else hostname;
hostStr = optionalString (builtins.stringLength hostname > 0) "@${hostname}"; hostStr = optionalString (builtins.stringLength hostname > 0) "@${hostname}";