automatic machine name

This commit is contained in:
Julien Malka 2024-04-05 15:37:19 +02:00
parent d7c6df94b0
commit 4c798d4f37
Signed by: Luj
GPG key ID: 6FC74C847011FD83
2 changed files with 4 additions and 1 deletions

View file

@ -43,9 +43,11 @@ inputs: lib: with lib; let
ipv6 = { public = "2a01:e0a:5f9:9681:5880:c9ff:fe9f:3dfb"; vpn = "fd7a:115c:a1e0::c"; }; ipv6 = { public = "2a01:e0a:5f9:9681:5880:c9ff:fe9f:3dfb"; vpn = "fd7a:115c:a1e0::c"; };
}; };
x2100 = { x2100 = {
inherit tld;
arch = "x86_64-linux"; arch = "x86_64-linux";
nixpkgs_version = inputs.nixpkgs_patched; nixpkgs_version = inputs.nixpkgs_patched;
hm_version = inputs.home-manager-unstable; hm_version = inputs.home-manager-unstable;
ipv4.public = "127.0.0.1";
}; };
fischer = { fischer = {
arch = "x86_64-linux"; arch = "x86_64-linux";

View file

@ -7,7 +7,7 @@ let
}; };
in in
{ host-config, modules, nixpkgs ? inputs.nixpkgs, system ? "x86_64-linux", home-manager ? inputs.home-manager }: { name, host-config, modules, nixpkgs ? inputs.nixpkgs, system ? "x86_64-linux", home-manager ? inputs.home-manager }:
let pkgs = import nixpkgs { inherit system; }; let pkgs = import nixpkgs { inherit system; };
in in
import "${nixpkgs}/nixos/lib/eval-config.nix" { import "${nixpkgs}/nixos/lib/eval-config.nix" {
@ -30,6 +30,7 @@ import "${nixpkgs}/nixos/lib/eval-config.nix" {
(import inputs.lanzaboote).nixosModules.lanzaboote (import inputs.lanzaboote).nixosModules.lanzaboote
{ {
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
networking.hostName = name;
nixpkgs.overlays = [ nixpkgs.overlays = [
(overlay-unstable system) (overlay-unstable system)
(_final: prev: (_final: prev: