Use modules from qois-infrastructure
This commit is contained in:
parent
d90be28dee
commit
c9f16dff77
5 changed files with 56 additions and 106 deletions
|
@ -4,10 +4,11 @@
|
|||
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-21.11";
|
||||
home-manager.url = "github:nix-community/home-manager/release-21.11";
|
||||
home-manager.inputs.nixpkgs.follows = "nixpkgs-stable";
|
||||
qois-infrastructure.url = "path:/etc/nixos/qois-infrastructure";
|
||||
#fabianhauser-etaxes.url = "github:fabianhauser/etaxes-sg-nix";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs-unstable, nixpkgs-stable, home-manager, ... }@inputs:
|
||||
outputs = { self, nixpkgs-unstable, nixpkgs-stable, home-manager, qois-infrastructure, ... }@inputs:
|
||||
let system = "x86_64-linux";
|
||||
pkgsUnstable = import nixpkgs-unstable {
|
||||
inherit system;
|
||||
|
@ -25,18 +26,18 @@
|
|||
# `nix build .#nixosConfigurations.<hostname>.config.system.build.toplevel
|
||||
nixosConfigurations = let
|
||||
hosts = [ "speer" "hummelberg" ];
|
||||
home-manager-modules = [ home-manager.nixosModules.home-manager {
|
||||
home-manager-config = {
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
extraSpecialArgs = { inherit pkgsUnstable; };
|
||||
users.fhauser = import ./home/fhauser/default.nix;
|
||||
};
|
||||
}];
|
||||
};
|
||||
mapHostnameToAttr = host:
|
||||
nixpkgs-stable.lib.nixosSystem {
|
||||
inherit system;
|
||||
modules = [ ./host/${host}/default.nix ] ++ home-manager-modules;
|
||||
modules = [ qois-infrastructure.nixosModule home-manager.nixosModules.home-manager home-manager-config ./host/${host}/default.nix ];
|
||||
};
|
||||
in pkgsUnstable.lib.genAttrs hosts mapHostnameToAttr;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue