38 lines
971 B
Nix
38 lines
971 B
Nix
{
|
|
description = "Nixos config flake";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
};
|
|
|
|
outputs = {nixpkgs, ...} @ inputs: {
|
|
nixosConfigurations = {
|
|
default = nixpkgs.lib.nixosSystem {
|
|
specialArgs = {inherit inputs;};
|
|
system = "x86_64-linux";
|
|
modules = [
|
|
./devices/xps13/configuration.nix
|
|
./modules
|
|
];
|
|
};
|
|
pi = nixpkgs.lib.nixosSystem {
|
|
specialArgs = {inherit inputs;};
|
|
system = "aarch64-linux";
|
|
modules = [
|
|
"${nixpkgs}/nixos/modules/installer/sd-card/sd-image-aarch64-installer.nix"
|
|
./devices/pi/configuration.nix
|
|
{
|
|
sdImage.compressImage = false;
|
|
nixpkgs.overlays = [
|
|
(final: super: {
|
|
makeModulesClosure = x:
|
|
super.makeModulesClosure (x // { allowMissing = true; });
|
|
})
|
|
];
|
|
}
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|
|
|