nixcfg/flake.nix

123 lines
3.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 = {
# Unstable NixOS channel.
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
# Home-manager, used for managing user configuration.
home-manager = {
url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs";
2024-03-02 13:09:35 -05:00
};
disko = {
url = "github:nix-community/disko";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-04-01 20:29:48 -04:00
impermanence.url = "github:nix-community/impermanence";
# Latest Hyprland
hyprland.url = "github:hyprwm/Hyprland";
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 = {
2024-04-07 22:16:33 -04:00
extra-substituters = ["https://nixcache.raffauflabs.com" "https://hyprland.cachix.org"];
extra-trusted-public-keys = [
"nixcache.raffauflabs.com:yFIuJde/izA4aUDI3MZmBLzynEsqVCT1OfCUghOLlt8="
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
];
};
2024-04-07 22:16:33 -04:00
outputs = inputs @ {
nixpkgs,
home-manager,
nixos-hardware,
impermanence,
disko,
hyprland,
2024-04-07 22:16:33 -04:00
...
}: {
2024-04-25 11:18:55 -04:00
homeConfigurations = {
aly = home-manager.lib.homeManagerConfiguration {
pkgs = import nixpkgs {system = "x86_64-linux";};
modules = [hyprland.homeManagerModules.default ./aly.nix];
};
dustin = home-manager.lib.homeManagerConfiguration {
pkgs = import nixpkgs {system = "x86_64-linux";};
modules = [hyprland.homeManagerModules.default ./dustin.nix];
};
2024-04-07 22:16:33 -04:00
};
2024-04-07 22:16:33 -04:00
nixosConfigurations = {
# Framework 13 with AMD Ryzen 7640U and 32GB RAM.
lavaridge = nixpkgs.lib.nixosSystem {
2024-04-07 22:16:33 -04:00
system = "x86_64-linux";
specialArgs = {inherit inputs;};
modules = [
nixos-hardware.nixosModules.framework-13-7040-amd
home-manager.nixosModules.home-manager
2024-04-07 22:16:33 -04:00
./hosts/lavaridge
./nixosModules
];
};
# Framework 13 with 11th Gen Intel Core i5 and 16GB RAM.
fallarbor = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {inherit inputs;};
modules = [
disko.nixosModules.disko
nixos-hardware.nixosModules.framework-11th-gen-intel
home-manager.nixosModules.home-manager
./hosts/fallarbor
./nixosModules
];
};
2024-04-07 22:16:33 -04:00
# Home Lab. Ryzen 5 2600 with 16GB RAM, RX 6700.
mauville = nixpkgs.lib.nixosSystem {
2024-04-07 22:16:33 -04:00
system = "x86_64-linux";
specialArgs = {inherit inputs;};
modules = [
home-manager.nixosModules.home-manager
2024-04-07 22:16:33 -04:00
./hosts/mauville
./nixosModules
];
};
2024-04-07 22:16:33 -04:00
# Lenovo Yoga 9i with i7-1360P and 16GB RAM.
petalburg = nixpkgs.lib.nixosSystem {
2024-04-07 22:16:33 -04:00
system = "x86_64-linux";
specialArgs = {inherit inputs;};
modules = [
disko.nixosModules.disko
2024-04-07 22:16:33 -04:00
nixos-hardware.nixosModules.common-pc-laptop-ssd
nixos-hardware.nixosModules.common-cpu-intel
home-manager.nixosModules.home-manager
2024-04-07 22:16:33 -04:00
./hosts/petalburg
./nixosModules
];
};
2024-03-24 19:44:09 -04:00
2024-04-07 22:16:33 -04:00
# T440p with i5-4210M and 16GB RAM.
rustboro = nixpkgs.lib.nixosSystem {
2024-04-07 22:16:33 -04:00
system = "x86_64-linux";
specialArgs = {inherit inputs;};
modules = [
disko.nixosModules.disko
2024-04-07 22:16:33 -04:00
impermanence.nixosModules.impermanence
nixos-hardware.nixosModules.lenovo-thinkpad-t440p
home-manager.nixosModules.home-manager
2024-04-07 22:16:33 -04:00
./hosts/rustboro
./nixosModules
];
};
2024-02-29 17:06:55 -05:00
};
2024-04-07 22:16:33 -04:00
};
}