From f70a89367201ce58941dbedbff6e4d60d2b27dc2 Mon Sep 17 00:00:00 2001 From: iFargle Date: Wed, 31 Jan 2024 12:20:05 +0900 Subject: [PATCH] test --- flake.nix | 3 +-- lib/default.nix | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index f4d29625..3427deba 100644 --- a/flake.nix +++ b/flake.nix @@ -47,8 +47,7 @@ inherit (self) outputs; stateVersion = "23.11"; hmStateVersion = "23.11"; - system = builtins.currentSystem; - libx = import ./lib { inherit self inputs outputs stateVersion hmStateVersion system; }; + libx = import ./lib { inherit self inputs outputs stateVersion hmStateVersion; }; in { nixosConfigurations = { osaka-linode-01 = libx.mkHost { hostname = "osaka-linode-01"; }; diff --git a/lib/default.nix b/lib/default.nix index 7954e2e3..3bc4c42e 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -1,4 +1,4 @@ -{ self, inputs, outputs, stateVersion, hmStateVersion, system , ... }: { +{ self, inputs, outputs, stateVersion, hmStateVersion , ... }: { deploy = { hostname, platform ? "x86_64-linux", @@ -44,7 +44,7 @@ repo ? "nixpkgs" }: inputs.nixpkgs.lib.nixosSystem { specialArgs = { inherit inputs outputs desktop hostname username stateVersion gpu platform theme; }; - pkgs = import inputs.${repo} { inherit system; }; + pkgs = import inputs.${repo} { inherit "${platform}"; }; modules = [ # Types are 'default', 'small', and 'minimal'