From adf1dd9e9178f169f7fd633fbc75a5db777b37d3 Mon Sep 17 00:00:00 2001 From: Adam Stephens Date: Tue, 20 Feb 2024 14:06:40 -0500 Subject: [PATCH] add example nios configurations --- flake.nix | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index c44040e..02ee3a4 100644 --- a/flake.nix +++ b/flake.nix @@ -5,7 +5,7 @@ }; outputs = - inputs@{ flake-parts, ... }: + inputs@{ flake-parts, self, ... }: flake-parts.lib.mkFlake { inherit inputs; } { imports = [ ./packages/part.nix ]; @@ -21,5 +21,28 @@ }; flake.nixosModules.default = import ./module.nix; + + flake.nixosConfigurations.example = inputs.nixpkgs.lib.nixosSystem { + system = "aarch64-linux"; + modules = [ + self.nixosModules.default + { + nixos-x13s.enable = true; + nixos-x13s.kernel = "jhovold"; # jhovold is default, but steev and mainline supported + + # install multiple kernels! note this increases eval time for each specialization + specialisation = { + mainline.configuration.nixos-x13s.kernel = "mainline"; + steev.configuration.nixos-x13s.kernel = "steev"; + }; + + # allow unfree firmware + nixpkgs.config.allowUnfree = true; + + # define your fileSystems + fileSystems."/".device = "/dev/notreal"; + } + ]; + }; }; }