little upgrade
This commit is contained in:
parent
8ab8f79ff9
commit
ff3d01bca6
1 changed files with 9 additions and 6 deletions
15
flake.nix
15
flake.nix
|
@ -18,17 +18,20 @@
|
||||||
outputs =
|
outputs =
|
||||||
inputs@{ self, nixpkgs, ... }:
|
inputs@{ self, nixpkgs, ... }:
|
||||||
let
|
let
|
||||||
hosts = [
|
hosts = {
|
||||||
"work-ntb"
|
"work-ntb" = "x86_64-linux";
|
||||||
"lenar"
|
"lenar" = "x86_64-linux";
|
||||||
];
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
# Please replace my-nixos with your hostname
|
# Please replace my-nixos with your hostname
|
||||||
nixosConfigurations = nixpkgs.lib.genAttrs hosts (
|
nixosConfigurations = nixpkgs.lib.genAttrs (builtins.attrNames hosts) (
|
||||||
host:
|
host:
|
||||||
|
let
|
||||||
|
arch = hosts.${host};
|
||||||
|
in
|
||||||
nixpkgs.lib.nixosSystem {
|
nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = arch;
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/${host}
|
./hosts/${host}
|
||||||
./hosts/base
|
./hosts/base
|
||||||
|
|
Loading…
Reference in a new issue