mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 14:23:55 -05:00
98 lines
3 KiB
Nix
98 lines
3 KiB
Nix
{
|
|
description = "Aly's NixOS flake.";
|
|
|
|
inputs = {
|
|
# Latest Stable NixOS, tracked by FlakeHub.
|
|
nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/*.tar.gz";
|
|
|
|
# Tracks latest stable home-manager using FlakeHub.
|
|
home-manager = {
|
|
url = "https://flakehub.com/f/nix-community/home-manager/0.*.*.tar.gz";
|
|
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";
|
|
};
|
|
|
|
# # Declarative Flatpaks.
|
|
# nix-flatpak.url = "github:gmodena/nix-flatpak/?ref=v0.3.0";
|
|
|
|
# Pre-baked hardware support for various devices.
|
|
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
|
};
|
|
|
|
nixConfig = {
|
|
extra-substituters = [ "https://nixcache.raffauflabs.com" ];
|
|
extra-trusted-public-keys = [
|
|
"nixcache.raffauflabs.com:yFIuJde/izA4aUDI3MZmBLzynEsqVCT1OfCUghOLlt8="
|
|
];
|
|
};
|
|
|
|
outputs =
|
|
inputs@{ nixpkgs-unstable, home-manager-unstable, nixos-hardware, ... }: {
|
|
|
|
homeConfigurations."aly" =
|
|
home-manager-unstable.lib.homeManagerConfiguration {
|
|
pkgs = import nixpkgs-unstable { system = "x86_64-linux"; };
|
|
modules = [ ./homeManagerModules ];
|
|
};
|
|
|
|
nixosConfigurations = {
|
|
|
|
# Framework 13 with AMD Ryzen 7640U and 32GB RAM.
|
|
lavaridge = nixpkgs-unstable.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = { inherit inputs; };
|
|
modules = [
|
|
nixos-hardware.nixosModules.framework-13-7040-amd
|
|
home-manager-unstable.nixosModules.home-manager
|
|
./hosts/lavaridge
|
|
./nixosModules
|
|
];
|
|
};
|
|
|
|
# Home Lab. Ryzen 5 2600 with 16GB RAM, RX 6700.
|
|
mauville = nixpkgs-unstable.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = { inherit inputs; };
|
|
modules = [
|
|
home-manager-unstable.nixosModules.home-manager
|
|
./hosts/mauville
|
|
./nixosModules
|
|
];
|
|
};
|
|
|
|
# Lenovo Yoga 9i with i7-1360P and 16GB RAM.
|
|
petalburg = nixpkgs-unstable.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = { inherit inputs; };
|
|
modules = [
|
|
nixos-hardware.nixosModules.common-pc-laptop-ssd
|
|
nixos-hardware.nixosModules.common-cpu-intel
|
|
home-manager-unstable.nixosModules.home-manager
|
|
./hosts/petalburg
|
|
./nixosModules
|
|
];
|
|
};
|
|
|
|
# T440p with i5-4210M and 16GB RAM.
|
|
rustboro = nixpkgs-unstable.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = { inherit inputs; };
|
|
modules = [
|
|
nixos-hardware.nixosModules.lenovo-thinkpad-t440p
|
|
home-manager-unstable.nixosModules.home-manager
|
|
./hosts/rustboro
|
|
./nixosModules
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|