Add lemp11
and t490
hosts
This commit is contained in:
parent
d305535b01
commit
df5834fcaf
3 changed files with 31 additions and 6 deletions
7
modules2/hosts/lemp11/imports.nix
Normal file
7
modules2/hosts/lemp11/imports.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{ config, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
flake.modules.nixos."hosts/lemp11".imports = with config.flake.modules.nixos; [
|
||||||
|
pc
|
||||||
|
];
|
||||||
|
}
|
7
modules2/hosts/t490/imports.nix
Normal file
7
modules2/hosts/t490/imports.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{ config, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
flake.modules.nixos."hosts/t490".imports = with config.flake.modules.nixos; [
|
||||||
|
pc
|
||||||
|
];
|
||||||
|
}
|
|
@ -15,16 +15,15 @@
|
||||||
mkNixosConfiguration =
|
mkNixosConfiguration =
|
||||||
{
|
{
|
||||||
hostname,
|
hostname,
|
||||||
|
modules ? [],
|
||||||
stateVersion ? "22.11",
|
stateVersion ? "22.11",
|
||||||
system ? "x86_64-linux",
|
system ? "x86_64-linux",
|
||||||
}:
|
}:
|
||||||
inputs.nixpkgs.lib.nixosSystem {
|
inputs.nixpkgs.lib.nixosSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
|
|
||||||
modules = [
|
modules = modules ++ [
|
||||||
"${self}/hosts/${hostname}/configuration.nix"
|
"${self}/hosts/${hostname}/configuration.nix"
|
||||||
|
|
||||||
config.flake.modules.nixos."hosts/${hostname}"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
specialArgs = specialArgs // {
|
specialArgs = specialArgs // {
|
||||||
|
@ -34,16 +33,28 @@
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
lemp11 = mkNixosConfiguration { hostname = "lemp11"; };
|
lemp11 = mkNixosConfiguration rec {
|
||||||
|
hostname = "lemp11";
|
||||||
|
|
||||||
|
modules = [ config.flake.modules.nixos."hosts/${hostname}" ];
|
||||||
|
};
|
||||||
|
|
||||||
nixedo = mkNixosConfiguration {
|
nixedo = mkNixosConfiguration {
|
||||||
hostname = "nixedo";
|
hostname = "nixedo";
|
||||||
stateVersion = "24.11";
|
stateVersion = "24.11";
|
||||||
};
|
};
|
||||||
|
|
||||||
t480 = mkNixosConfiguration { hostname = "t480"; };
|
t480 = mkNixosConfiguration rec {
|
||||||
|
hostname = "t480";
|
||||||
|
|
||||||
t490 = mkNixosConfiguration { hostname = "t490"; };
|
modules = [ config.flake.modules.nixos."hosts/${hostname}" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
t490 = mkNixosConfiguration rec {
|
||||||
|
hostname = "t490";
|
||||||
|
|
||||||
|
modules = [ config.flake.modules.nixos."hosts/${hostname}" ];
|
||||||
|
};
|
||||||
|
|
||||||
PW05CH3L = mkNixosConfiguration { hostname = "PW05CH3L"; };
|
PW05CH3L = mkNixosConfiguration { hostname = "PW05CH3L"; };
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue