mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-29 07:10:51 +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"; };
|
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";
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Add table
Reference in a new issue