mirror of
https://codeberg.org/mart-w/nixos-x13s.git
synced 2024-11-22 07:04:47 +01:00
add example nios configurations
This commit is contained in:
parent
0653faf396
commit
adf1dd9e91
25
flake.nix
25
flake.nix
|
@ -5,7 +5,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
inputs@{ flake-parts, ... }:
|
inputs@{ flake-parts, self, ... }:
|
||||||
flake-parts.lib.mkFlake { inherit inputs; } {
|
flake-parts.lib.mkFlake { inherit inputs; } {
|
||||||
imports = [ ./packages/part.nix ];
|
imports = [ ./packages/part.nix ];
|
||||||
|
|
||||||
|
@ -21,5 +21,28 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
flake.nixosModules.default = import ./module.nix;
|
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";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue