The caller defines the system.

This commit is contained in:
R-VdP 2023-02-01 16:59:24 +00:00
parent 504f413c02
commit dbe192d11e
No known key found for this signature in database

View file

@ -7,13 +7,13 @@
outputs = { self, nixpkgs, flake-utils }: { outputs = { self, nixpkgs, flake-utils }: {
serviceConfig = self.lib.makeServiceConfig { serviceConfig = self.lib.makeServiceConfig {
system = flake-utils.lib.system.x86_64-linux;
module = { imports = [ ./modules ]; }; module = { imports = [ ./modules ]; };
}; };
lib = { lib = {
makeServiceConfig = { module }: makeServiceConfig = { system, module }:
let let
system = flake-utils.lib.system.x86_64-linux;
lib = nixpkgs.lib; lib = nixpkgs.lib;
nixosConfig = nixpkgs.lib.nixosSystem { nixosConfig = nixpkgs.lib.nixosSystem {
inherit system; inherit system;