builders: default system

main
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";
system = "x86_64-linux";
}
];
@ -34,12 +33,10 @@
{
user = "zynh";
hostname = "msiserver";
system = "x86_64-linux";
}
{
user = "val";
hostname = "caveserver";
system = "x86_64-linux";
}
{
user = "zynh";

View File

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