feat: renamed computers to hosts

This commit is contained in:
Artur Manuel 2024-11-30 15:18:36 +00:00
commit b03c70b486
34 changed files with 5 additions and 6 deletions

View file

@ -63,7 +63,7 @@
} {
systems = ["x86_64-linux"];
imports = [
./computers
./hosts
./overlays
inputs.git-hooks-nix.flakeModule
];

View file

@ -4,7 +4,7 @@
...
}: {
flake = {
nixosConfigurations = lib.mkComputers {
nixosConfigurations = lib.mkHosts {
python = {
system = "x86_64-linux";
user = "artur";

View file

@ -1,8 +1,7 @@
{inputs}: _: _: let
mkComputer = {
mkHost = {
host,
system,
user,
extraModules ? [],
}:
inputs.nixpkgs.lib.nixosSystem {
@ -10,7 +9,7 @@
modules =
extraModules
++ [
../computers/${host}
../hosts/${host}
inputs.self.nixosModules.default
({config, ...}: {
config = {
@ -43,5 +42,5 @@
};
};
in {
mkComputers = computers: builtins.mapAttrs (n: v: mkComputer (v // {host = n;})) computers;
mkHosts = builtins.mapAttrs (n: v: mkHost (v // {host = n;}));
}