nixcfg/flake.nix

85 lines
2.5 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, tracked by FlakeHub.
nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/*.tar.gz";
2024-03-02 13:09:35 -05:00
2024-03-13 14:17:21 -04:00
# Tracks latest stable home-manager using FlakeHub.
2024-02-29 17:06:55 -05:00
home-manager = {
url = "https://flakehub.com/f/nix-community/home-manager/0.*.*.tar.gz";
2024-02-29 17:06:55 -05:00
inputs.nixpkgs.follows = "nixpkgs";
};
# Unstable NixOS channel.
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
# Home-manager, used for managing user configuration.
home-manager-unstable = {
url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs-unstable";
2024-03-02 13:09:35 -05:00
};
# # Declarative Flatpaks.
# nix-flatpak.url = "github:gmodena/nix-flatpak/?ref=v0.3.0";
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";
};
2024-02-29 17:06:55 -05:00
nixConfig = {
extra-substituters = [
"https://nixcache.raffauflabs.com"
];
extra-trusted-public-keys = [
"nixcache.raffauflabs.com:yFIuJde/izA4aUDI3MZmBLzynEsqVCT1OfCUghOLlt8="
];
};
outputs = inputs@{ nixpkgs, home-manager, nixpkgs-unstable, home-manager-unstable, nixos-hardware, ... }: {
2024-03-02 13:09:35 -05:00
2024-02-29 17:06:55 -05:00
nixosConfigurations = {
# Framework 13 with AMD Ryzen 7640U and 32GB RAM.
lavaridge = nixpkgs-unstable.lib.nixosSystem {
system = "x86_64-linux";
modules = [
nixos-hardware.nixosModules.framework-13-7040-amd
home-manager-unstable.nixosModules.home-manager
./hosts/lavaridge
];
};
# Home Lab. Ryzen 5 2600 with 16GB RAM, RX 6700.
mauville = nixpkgs-unstable.lib.nixosSystem {
2024-02-29 17:06:55 -05:00
system = "x86_64-linux";
modules = [
2024-03-13 14:17:21 -04:00
home-manager-unstable.nixosModules.home-manager
./hosts/mauville
2024-02-29 17:06:55 -05:00
];
};
# Lenovo Yoga 9i with i7-1360P and 16GB RAM.
petalburg = nixpkgs-unstable.lib.nixosSystem {
2024-02-29 17:06:55 -05:00
system = "x86_64-linux";
modules = [
nixos-hardware.nixosModules.common-pc-laptop-ssd
nixos-hardware.nixosModules.common-cpu-intel
2024-03-13 14:17:21 -04:00
home-manager-unstable.nixosModules.home-manager
./hosts/petalburg
2024-02-29 17:06:55 -05:00
];
};
# T440p with i5-4210M and 16GB RAM.
rustboro = nixpkgs-unstable.lib.nixosSystem {
system = "x86_64-linux";
modules = [
nixos-hardware.nixosModules.lenovo-thinkpad-t440p
2024-03-13 14:17:21 -04:00
home-manager-unstable.nixosModules.home-manager
./hosts/rustboro
];
};
2024-02-29 17:06:55 -05:00
};
};
}