nixcfg/flake.nix

70 lines
1.7 KiB
Nix
Raw Normal View History

2024-02-29 17:06:55 -05:00
{
2024-03-13 14:17:21 -04:00
description = "Aly's NixOS flake.";
2024-02-29 17:06:55 -05:00
inputs = {
# Latest stable NixOS release.
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
# Stable home-manager, synced with latest stable nixpkgs.
home-manager = {
url = "github:nix-community/home-manager/release-24.05";
inputs.nixpkgs.follows = "nixpkgs";
2024-03-02 13:09:35 -05:00
};
# Unstable NixOS.
nixpkgsUnstable.url = "github:nixos/nixpkgs/nixos-unstable";
# Automated disk partitioning.
disko = {
url = "github:nix-community/disko";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-04-01 20:29:48 -04:00
2024-03-02 09:35:58 -05:00
# Pre-baked hardware support for various devices.
2024-02-29 17:06:55 -05:00
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
# Useful modules for Steam Deck.
jovian = {
url = "github:Jovian-Experiments/Jovian-NixOS";
inputs.nixpkgs.follows = "nixpkgs";
};
};
2024-02-29 17:06:55 -05:00
nixConfig = {
2024-05-05 22:00:46 -04:00
extra-substituters = ["https://nixcache.raffauflabs.com"];
extra-trusted-public-keys = [
"nixcache.raffauflabs.com:yFIuJde/izA4aUDI3MZmBLzynEsqVCT1OfCUghOLlt8="
];
};
outputs = inputs @ {self, ...}: {
formatter = inputs.nixpkgs.lib.genAttrs [
"aarch64-darwin"
"aarch64-linux"
"x86_64-darwin"
"x86_64-linux"
] (system: inputs.nixpkgs.legacyPackages.${system}.alejandra);
nixosModules.default =
import ./nixosModules inputs;
nixosConfigurations =
inputs.nixpkgs.lib.genAttrs [
"fallarbor"
"lavaridge"
"mauville"
"mossdeep"
"petalburg"
"rustboro"
] (
host:
inputs.nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs self;};
modules = [
./hosts/${host}
];
}
);
2024-04-07 22:16:33 -04:00
};
}