Use lib and modules from patched nixpkgs
This commit is contained in:
parent
d1d9c0b47d
commit
b4e47c3495
1 changed files with 19 additions and 16 deletions
11
flake.nix
11
flake.nix
|
@ -107,7 +107,7 @@
|
|||
nur.overlay
|
||||
www-chvp-be.overlays.default
|
||||
];
|
||||
baseModules = [
|
||||
commonModules = [
|
||||
accentor.nixosModules.default
|
||||
agenix.nixosModules.age
|
||||
home-manager.nixosModule
|
||||
|
@ -115,11 +115,14 @@
|
|||
nix-index-database.nixosModules.nix-index
|
||||
./modules
|
||||
];
|
||||
nixosSystem = system: name: nixpkgs.lib.nixosSystem {
|
||||
nixosSystem = system: name: let nixpkgs = nixpkgsForSystem system; in
|
||||
inputs.nixpkgs.lib.nixosSystem {
|
||||
lib = (import nixpkgs { inherit overlays system; }).lib;
|
||||
specialArgs = { modulesPath = toString (nixpkgs + "/nixos/modules"); };
|
||||
system = "x86_64-linux";
|
||||
modules = baseModules ++ [
|
||||
baseModules = import (nixpkgs + "/nixos/modules/module-list.nix");
|
||||
modules = commonModules ++ [
|
||||
({ config, ... }:
|
||||
let nixpkgs = nixpkgsForSystem system; in
|
||||
{
|
||||
nixpkgs.pkgs = import nixpkgs { inherit overlays system; config = config.nixpkgs.config; };
|
||||
networking.hostName = name;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue