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; + }; + }; + }; +}