mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-26 05:40:52 +01:00
automatic machine name
This commit is contained in:
parent
d7c6df94b0
commit
4c798d4f37
2 changed files with 4 additions and 1 deletions
|
@ -43,9 +43,11 @@ inputs: lib: with lib; let
|
|||
ipv6 = { public = "2a01:e0a:5f9:9681:5880:c9ff:fe9f:3dfb"; vpn = "fd7a:115c:a1e0::c"; };
|
||||
};
|
||||
x2100 = {
|
||||
inherit tld;
|
||||
arch = "x86_64-linux";
|
||||
nixpkgs_version = inputs.nixpkgs_patched;
|
||||
hm_version = inputs.home-manager-unstable;
|
||||
ipv4.public = "127.0.0.1";
|
||||
};
|
||||
fischer = {
|
||||
arch = "x86_64-linux";
|
||||
|
|
|
@ -7,7 +7,7 @@ let
|
|||
};
|
||||
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; };
|
||||
in
|
||||
import "${nixpkgs}/nixos/lib/eval-config.nix" {
|
||||
|
@ -30,6 +30,7 @@ import "${nixpkgs}/nixos/lib/eval-config.nix" {
|
|||
(import inputs.lanzaboote).nixosModules.lanzaboote
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
networking.hostName = name;
|
||||
nixpkgs.overlays = [
|
||||
(overlay-unstable system)
|
||||
(_final: prev:
|
||||
|
|
Loading…
Add table
Reference in a new issue