From c228634e8084d18c5171d1b16cb27b3cbe3a779b Mon Sep 17 00:00:00 2001 From: "Mohamed C." Date: Mon, 2 Mar 2026 23:48:52 +0100 Subject: [PATCH] correct flake, global settings --- flake.nix | 7 +++---- modules/platform/nixsettings.nix | 20 ++++++++++++++++++++ 2 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 modules/platform/nixsettings.nix diff --git a/flake.nix b/flake.nix index 5614ff0..162f109 100644 --- a/flake.nix +++ b/flake.nix @@ -6,9 +6,8 @@ import-tree.url = "github:vic/import-tree"; disko.url = "github:nix-community/disko"; disko.inputs.nixpkgs.follows = "nixpkgs"; - }; - }; - - outputs = inputs: inputs.flake-parts.lib.mkFlake {inherit inputs;} (inputs.import-tree ./modules); + + outputs = inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; } + (inputs.import-tree ./modules); } diff --git a/modules/platform/nixsettings.nix b/modules/platform/nixsettings.nix new file mode 100644 index 0000000..25352cb --- /dev/null +++ b/modules/platform/nixsettings.nix @@ -0,0 +1,20 @@ +{ inputs, ... }: { + config = { + systems = [ + "aarch64-linux" + "x86_64-linux" + ]; + + perSystem = { pkgs, system, ... }: { + _module.args.pkgs = import inputs.nixpkgs { + inherit system; + config.allowUnfree = true; + }; + + _module.args.pkgs-unstable = import inputs.nixpkgs-unstable { + inherit system; + config.allowUnfree = true; + }; + }; + }; +}