Compare commits
2 Commits
c7567330b8
...
1203d1174b
| Author | SHA1 | Date | |
|---|---|---|---|
|
1203d1174b
|
|||
|
1995c04b1d
|
@@ -8,16 +8,24 @@ let
|
|||||||
utils = import ../utils { inherit lib; };
|
utils = import ../utils { inherit lib; };
|
||||||
hostnames = utils.dirNames ../hosts;
|
hostnames = utils.dirNames ../hosts;
|
||||||
|
|
||||||
mkNode = hostname: meta: {
|
mkNode =
|
||||||
|
hostname:
|
||||||
|
let
|
||||||
|
meta = utils.hostMeta ../hosts/${hostname};
|
||||||
|
isLocal = builtins.elem "local" meta.tags;
|
||||||
|
in
|
||||||
|
{
|
||||||
imports = [ ../hosts/${hostname} ];
|
imports = [ ../hosts/${hostname} ];
|
||||||
host.name = hostname;
|
host.name = hostname;
|
||||||
deployment = {
|
deployment = {
|
||||||
inherit (meta.deployment) targetHost targetUser tags;
|
inherit (meta) tags;
|
||||||
buildOnTarget = builtins.any (t: t != "local" && t != "arm") meta.deployment.tags;
|
targetUser = meta.host.username;
|
||||||
|
targetHost = if isLocal then "" else hostname;
|
||||||
|
buildOnTarget = builtins.any (t: t != "local" && t != "arm") meta.tags;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
nodes = lib.genAttrs hostnames (hostname: mkNode hostname (utils.hostMeta ../hosts/${hostname}));
|
nodes = lib.genAttrs hostnames mkNode;
|
||||||
in
|
in
|
||||||
inputs.colmena.lib.makeHive (
|
inputs.colmena.lib.makeHive (
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -29,12 +29,13 @@ in
|
|||||||
hostname:
|
hostname:
|
||||||
let
|
let
|
||||||
meta = myUtils.hostMeta (hostDir + "/${hostname}");
|
meta = myUtils.hostMeta (hostDir + "/${hostname}");
|
||||||
|
isLocal = builtins.elem "local" meta.tags;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
User = meta.deployment.targetUser;
|
User = meta.host.username;
|
||||||
}
|
}
|
||||||
// lib.optionalAttrs (meta.deployment.targetHost != "") {
|
// lib.optionalAttrs (!isLocal) {
|
||||||
HostName = meta.deployment.targetHost;
|
HostName = hostname;
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
// {
|
// {
|
||||||
|
|||||||
@@ -7,13 +7,12 @@
|
|||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
meta = import ./meta.nix;
|
||||||
wolInterfaces = import ./wol-interfaces.nix;
|
wolInterfaces = import ./wol-interfaces.nix;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
inputs.disko.nixosModules.disko
|
inputs.disko.nixosModules.disko
|
||||||
./hard.nix
|
|
||||||
./host.nix
|
|
||||||
inputs.nixos-hardware.nixosModules.common-cpu-intel
|
inputs.nixos-hardware.nixosModules.common-cpu-intel
|
||||||
inputs.nixos-hardware.nixosModules.common-pc
|
inputs.nixos-hardware.nixosModules.common-pc
|
||||||
inputs.nixos-hardware.nixosModules.common-pc-ssd
|
inputs.nixos-hardware.nixosModules.common-pc-ssd
|
||||||
@@ -24,6 +23,9 @@ in
|
|||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
|
inherit (meta) host;
|
||||||
|
|
||||||
|
hardware.facter.reportPath = ./facter.json;
|
||||||
home-manager.users.${config.host.username} = import ../../home/hosts/${config.host.name};
|
home-manager.users.${config.host.username} = import ../../home/hosts/${config.host.name};
|
||||||
|
|
||||||
"ai-tools".enable = true;
|
"ai-tools".enable = true;
|
||||||
@@ -52,7 +54,11 @@ in
|
|||||||
desktop.ly.enable = true;
|
desktop.ly.enable = true;
|
||||||
docker.enable = true;
|
docker.enable = true;
|
||||||
hcloud.enable = true;
|
hcloud.enable = true;
|
||||||
networking.enable = true;
|
networking = {
|
||||||
|
enable = true;
|
||||||
|
hostId = "80eef97e";
|
||||||
|
useDHCP = lib.mkDefault true;
|
||||||
|
};
|
||||||
nvidia.enable = true;
|
nvidia.enable = true;
|
||||||
restic-backup.enable = true;
|
restic-backup.enable = true;
|
||||||
secrets = {
|
secrets = {
|
||||||
@@ -101,6 +107,4 @@ in
|
|||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.plocate;
|
package = pkgs.plocate;
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.hostId = "80eef97e";
|
|
||||||
}
|
}
|
||||||
|
|||||||
6221
hosts/andromache/facter.json
Normal file
6221
hosts/andromache/facter.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,42 +0,0 @@
|
|||||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
|
||||||
# and may be overwritten by future invocations. Please make changes
|
|
||||||
# to /etc/nixos/configuration.nix instead.
|
|
||||||
{
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
modulesPath,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
(modulesPath + "/installer/scan/not-detected.nix")
|
|
||||||
];
|
|
||||||
|
|
||||||
boot = {
|
|
||||||
initrd.availableKernelModules = [
|
|
||||||
"vmd"
|
|
||||||
"xhci_pci"
|
|
||||||
"ahci"
|
|
||||||
"nvme"
|
|
||||||
"usbhid"
|
|
||||||
"usb_storage"
|
|
||||||
"uas"
|
|
||||||
"sd_mod"
|
|
||||||
];
|
|
||||||
initrd.kernelModules = [ ];
|
|
||||||
kernelModules = [ "kvm-intel" ];
|
|
||||||
extraModulePackages = [ ];
|
|
||||||
};
|
|
||||||
|
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
|
||||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
|
||||||
# still possible to use this option, but it's recommended to use it in conjunction
|
|
||||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
|
||||||
networking.useDHCP = lib.mkDefault true;
|
|
||||||
# networking.interfaces.eno1.useDHCP = lib.mkDefault true;
|
|
||||||
# networking.interfaces.wlp0s20f3.useDHCP = lib.mkDefault true;
|
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
||||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
{
|
|
||||||
host = {
|
|
||||||
username = "h";
|
|
||||||
highRam = true;
|
|
||||||
admin = true;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,9 +1,10 @@
|
|||||||
{
|
{
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
deployment = {
|
|
||||||
tags = [ "local" ];
|
|
||||||
targetHost = "";
|
|
||||||
targetUser = "h";
|
|
||||||
};
|
|
||||||
role = "desktop";
|
role = "desktop";
|
||||||
|
tags = [ "local" ];
|
||||||
|
host = {
|
||||||
|
username = "h";
|
||||||
|
highRam = true;
|
||||||
|
admin = true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,11 +6,12 @@
|
|||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
meta = import ./meta.nix;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
inputs.disko.nixosModules.disko
|
inputs.disko.nixosModules.disko
|
||||||
./hard.nix
|
|
||||||
./host.nix
|
|
||||||
inputs.nixos-hardware.nixosModules.common-pc
|
inputs.nixos-hardware.nixosModules.common-pc
|
||||||
inputs.nixos-hardware.nixosModules.common-pc-ssd
|
inputs.nixos-hardware.nixosModules.common-pc-ssd
|
||||||
# inputs.nixos-hardware.nixosModules.lenovo-thinkpad-e14-intel-gen7 (not available yet?)
|
# inputs.nixos-hardware.nixosModules.lenovo-thinkpad-e14-intel-gen7 (not available yet?)
|
||||||
@@ -21,6 +22,9 @@
|
|||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
|
inherit (meta) host;
|
||||||
|
|
||||||
|
hardware.facter.reportPath = ./facter.json;
|
||||||
home-manager.users.${config.host.username} = import ../../home/hosts/${config.host.name};
|
home-manager.users.${config.host.username} = import ../../home/hosts/${config.host.name};
|
||||||
|
|
||||||
"ai-tools".enable = true;
|
"ai-tools".enable = true;
|
||||||
|
|||||||
4028
hosts/astyanax/facter.json
Normal file
4028
hosts/astyanax/facter.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,39 +0,0 @@
|
|||||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
|
||||||
# and may be overwritten by future invocations. Please make changes
|
|
||||||
# to /etc/nixos/configuration.nix instead.
|
|
||||||
{
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
modulesPath,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
(modulesPath + "/installer/scan/not-detected.nix")
|
|
||||||
];
|
|
||||||
|
|
||||||
boot = {
|
|
||||||
initrd.availableKernelModules = [
|
|
||||||
"xhci_pci"
|
|
||||||
"thunderbolt"
|
|
||||||
"nvme"
|
|
||||||
"uas"
|
|
||||||
"sd_mod"
|
|
||||||
];
|
|
||||||
initrd.kernelModules = [ ];
|
|
||||||
kernelModules = [ "kvm-intel" ];
|
|
||||||
extraModulePackages = [ ];
|
|
||||||
};
|
|
||||||
|
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
|
||||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
|
||||||
# still possible to use this option, but it's recommended to use it in conjunction
|
|
||||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
|
||||||
networking.useDHCP = lib.mkDefault true;
|
|
||||||
# networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true;
|
|
||||||
# networking.interfaces.wlan0.useDHCP = lib.mkDefault true;
|
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
||||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
{
|
|
||||||
host = {
|
|
||||||
username = "h";
|
|
||||||
highRam = true;
|
|
||||||
admin = true;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,9 +1,10 @@
|
|||||||
{
|
{
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
deployment = {
|
|
||||||
tags = [ "local" ];
|
|
||||||
targetHost = "";
|
|
||||||
targetUser = "h";
|
|
||||||
};
|
|
||||||
role = "laptop";
|
role = "laptop";
|
||||||
|
tags = [ "local" ];
|
||||||
|
host = {
|
||||||
|
username = "h";
|
||||||
|
highRam = true;
|
||||||
|
admin = true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,13 +3,17 @@
|
|||||||
# Raspberry Pi 3
|
# Raspberry Pi 3
|
||||||
# See <https://nixos.wiki/wiki/NixOS_on_ARM/Raspberry_Pi_3>
|
# See <https://nixos.wiki/wiki/NixOS_on_ARM/Raspberry_Pi_3>
|
||||||
|
|
||||||
|
let
|
||||||
|
meta = import ./meta.nix;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./hard.nix
|
./hard.nix
|
||||||
./host.nix
|
|
||||||
../../modules
|
../../modules
|
||||||
];
|
];
|
||||||
|
|
||||||
|
inherit (meta) host;
|
||||||
|
|
||||||
ssh.enable = true;
|
ssh.enable = true;
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
host = {
|
|
||||||
username = "h";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,9 +1,8 @@
|
|||||||
{
|
{
|
||||||
system = "aarch64-linux";
|
system = "aarch64-linux";
|
||||||
deployment = {
|
|
||||||
tags = [ "arm" ];
|
|
||||||
targetHost = "eetion-02";
|
|
||||||
targetUser = "h";
|
|
||||||
};
|
|
||||||
role = "embedded";
|
role = "embedded";
|
||||||
|
tags = [ "arm" ];
|
||||||
|
host = {
|
||||||
|
username = "h";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,13 +3,17 @@
|
|||||||
# Orange Pi Zero2 H616
|
# Orange Pi Zero2 H616
|
||||||
# See <https://nixos.wiki/wiki/NixOS_on_ARM/Orange_Pi_Zero2_H616>
|
# See <https://nixos.wiki/wiki/NixOS_on_ARM/Orange_Pi_Zero2_H616>
|
||||||
|
|
||||||
|
let
|
||||||
|
meta = import ./meta.nix;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./hard.nix
|
./hard.nix
|
||||||
./host.nix
|
|
||||||
../../modules
|
../../modules
|
||||||
];
|
];
|
||||||
|
|
||||||
|
inherit (meta) host;
|
||||||
|
|
||||||
ssh.enable = true;
|
ssh.enable = true;
|
||||||
tailscale.enable = true;
|
tailscale.enable = true;
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
host = {
|
|
||||||
username = "h";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,9 +1,8 @@
|
|||||||
{
|
{
|
||||||
system = "aarch64-linux";
|
system = "aarch64-linux";
|
||||||
deployment = {
|
|
||||||
tags = [ "arm" ];
|
|
||||||
targetHost = "eetion";
|
|
||||||
targetUser = "h";
|
|
||||||
};
|
|
||||||
role = "embedded";
|
role = "embedded";
|
||||||
|
tags = [ "arm" ];
|
||||||
|
host = {
|
||||||
|
username = "h";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,16 +7,21 @@
|
|||||||
|
|
||||||
# also see <https://wiki.nixos.org/wiki/Install_NixOS_on_Hetzner_Cloud>
|
# also see <https://wiki.nixos.org/wiki/Install_NixOS_on_Hetzner_Cloud>
|
||||||
|
|
||||||
|
let
|
||||||
|
meta = import ./meta.nix;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
inputs.disko.nixosModules.disko
|
inputs.disko.nixosModules.disko
|
||||||
./hard.nix
|
"${inputs.nixpkgs}/nixos/modules/profiles/qemu-guest.nix"
|
||||||
inputs.comin.nixosModules.comin
|
inputs.comin.nixosModules.comin
|
||||||
./host.nix
|
|
||||||
../../modules
|
../../modules
|
||||||
];
|
];
|
||||||
|
|
||||||
docker.enable = true;
|
inherit (meta) host;
|
||||||
|
|
||||||
|
hardware.facter.reportPath = ./facter.json;
|
||||||
|
|
||||||
ssh.enable = true;
|
ssh.enable = true;
|
||||||
tailscale.enable = true;
|
tailscale.enable = true;
|
||||||
|
|
||||||
|
|||||||
2695
hosts/hecuba/facter.json
Normal file
2695
hosts/hecuba/facter.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,39 +0,0 @@
|
|||||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
|
||||||
# and may be overwritten by future invocations. Please make changes
|
|
||||||
# to /etc/nixos/configuration.nix instead.
|
|
||||||
{
|
|
||||||
lib,
|
|
||||||
modulesPath,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
(modulesPath + "/profiles/qemu-guest.nix")
|
|
||||||
];
|
|
||||||
|
|
||||||
boot = {
|
|
||||||
initrd = {
|
|
||||||
availableKernelModules = [
|
|
||||||
"ahci"
|
|
||||||
"xhci_pci"
|
|
||||||
"virtio_pci"
|
|
||||||
"virtio_scsi"
|
|
||||||
"sd_mod"
|
|
||||||
"sr_mod"
|
|
||||||
];
|
|
||||||
kernelModules = [ ];
|
|
||||||
};
|
|
||||||
kernelModules = [ ];
|
|
||||||
extraModulePackages = [ ];
|
|
||||||
};
|
|
||||||
|
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
|
||||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
|
||||||
# still possible to use this option, but it's recommended to use it in conjunction
|
|
||||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
|
||||||
networking.useDHCP = lib.mkDefault true;
|
|
||||||
# networking.interfaces.enp1s0.useDHCP = lib.mkDefault true;
|
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
||||||
}
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
host = {
|
|
||||||
username = "username";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,9 +1,8 @@
|
|||||||
{
|
{
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
deployment = {
|
|
||||||
tags = [ "cloud" ];
|
|
||||||
targetHost = "hecuba";
|
|
||||||
targetUser = "username";
|
|
||||||
};
|
|
||||||
role = "server";
|
role = "server";
|
||||||
|
tags = [ "cloud" ];
|
||||||
|
host = {
|
||||||
|
username = "username";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,15 +3,20 @@
|
|||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
let
|
||||||
|
meta = import ./meta.nix;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
inputs.disko.nixosModules.disko
|
inputs.disko.nixosModules.disko
|
||||||
./hard.nix
|
"${inputs.nixpkgs}/nixos/modules/profiles/qemu-guest.nix"
|
||||||
./host.nix
|
|
||||||
./disk.nix
|
./disk.nix
|
||||||
../../modules
|
../../modules
|
||||||
];
|
];
|
||||||
|
|
||||||
|
inherit (meta) host;
|
||||||
|
|
||||||
|
hardware.facter.reportPath = ./facter.json;
|
||||||
home-manager.users.${config.host.username} = import ../../home/hosts/vm;
|
home-manager.users.${config.host.username} = import ../../home/hosts/vm;
|
||||||
|
|
||||||
"ai-tools".enable = true;
|
"ai-tools".enable = true;
|
||||||
|
|||||||
2217
hosts/vm/facter.json
Normal file
2217
hosts/vm/facter.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,38 +0,0 @@
|
|||||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
|
||||||
# and may be overwritten by future invocations. Please make changes
|
|
||||||
# to /etc/nixos/configuration.nix instead.
|
|
||||||
{
|
|
||||||
lib,
|
|
||||||
modulesPath,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
(modulesPath + "/profiles/qemu-guest.nix")
|
|
||||||
];
|
|
||||||
|
|
||||||
boot = {
|
|
||||||
initrd = {
|
|
||||||
availableKernelModules = [
|
|
||||||
"ahci"
|
|
||||||
"xhci_pci"
|
|
||||||
"virtio_pci"
|
|
||||||
"sr_mod"
|
|
||||||
"virtio_blk"
|
|
||||||
];
|
|
||||||
kernelModules = [ ];
|
|
||||||
};
|
|
||||||
kernelModules = [ "kvm-intel" ];
|
|
||||||
extraModulePackages = [ ];
|
|
||||||
};
|
|
||||||
|
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
|
||||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
|
||||||
# still possible to use this option, but it's recommended to use it in conjunction
|
|
||||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
|
||||||
networking.useDHCP = lib.mkDefault true;
|
|
||||||
# networking.interfaces.enp1s0.useDHCP = lib.mkDefault true;
|
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
||||||
}
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
host = {
|
|
||||||
username = "h";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,9 +1,8 @@
|
|||||||
{
|
{
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
deployment = {
|
|
||||||
tags = [ "local" ];
|
|
||||||
targetHost = "";
|
|
||||||
targetUser = "h";
|
|
||||||
};
|
|
||||||
role = "vm";
|
role = "vm";
|
||||||
|
tags = [ "local" ];
|
||||||
|
host = {
|
||||||
|
username = "h";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,11 +9,11 @@ in
|
|||||||
if builtins.pathExists (hostDir + "/meta.nix") then
|
if builtins.pathExists (hostDir + "/meta.nix") then
|
||||||
import (hostDir + "/meta.nix")
|
import (hostDir + "/meta.nix")
|
||||||
else
|
else
|
||||||
throw "meta.nix required in ${hostDir}";
|
throw "meta.nix required in ${toString hostDir}";
|
||||||
|
|
||||||
adminHosts =
|
adminHosts =
|
||||||
hostsPath:
|
hostsPath:
|
||||||
builtins.filter (host: ((import (hostsPath + "/${host}/host.nix")).host.admin or false)) (
|
builtins.filter (host: ((import (hostsPath + "/${host}/meta.nix")).host.admin or false)) (
|
||||||
fs.dirNames hostsPath
|
fs.dirNames hostsPath
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user