From f1b9e4ff65c952d91134f626bc8f94a786fef977 Mon Sep 17 00:00:00 2001 From: sefidel Date: Tue, 25 Jan 2022 22:40:31 +0900 Subject: lib/mk_*: set default values for system --- lib/mk_home.nix | 2 +- lib/mk_system.nix | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/mk_home.nix b/lib/mk_home.nix index a83194a..ba1a657 100644 --- a/lib/mk_home.nix +++ b/lib/mk_home.nix @@ -1,6 +1,6 @@ { self, home-manager, ... } @ inputs: -{ username, hostname, system, pkgs, version, extraModules }: +{ username, hostname, system ? "x86_64-linux", pkgs, version, extraModules }: let entrypoint = "${self}/home/${hostname}/${username}.nix"; in diff --git a/lib/mk_system.nix b/lib/mk_system.nix index 8af0aa6..9916a2c 100644 --- a/lib/mk_system.nix +++ b/lib/mk_system.nix @@ -1,6 +1,6 @@ { self, ... } @ args: -{ name, nixpkgs, overlays ? null, extraModules ? null }: +{ name, nixpkgs, system ? "x86_64-linux", overlays ? null, extraModules ? null }: nixpkgs.lib.nixosSystem ( let configFolder = "${self}/nixos"; @@ -8,7 +8,7 @@ nixpkgs.lib.nixosSystem ( hardware = "${configFolder}/${name}/hardware-configuration.nix"; in { - system = "x86_64-linux"; + system = system; modules = [ { -- cgit 1.4.1