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 = {
|
2024-03-05 17:54:51 -05:00
|
|
|
# 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 = {
|
2024-03-05 17:54:51 -05:00
|
|
|
url = "https://flakehub.com/f/nix-community/home-manager/0.*.*.tar.gz";
|
2024-02-29 17:06:55 -05:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-03-05 17:54:51 -05:00
|
|
|
|
|
|
|
# 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
|
|
|
};
|
2024-03-05 17:54:51 -05:00
|
|
|
|
2024-04-01 20:29:48 -04:00
|
|
|
disko-unstable.url = "github:nix-community/disko";
|
|
|
|
disko-unstable.inputs.nixpkgs.follows = "nixpkgs-unstable";
|
|
|
|
|
2024-04-02 02:08:25 -04:00
|
|
|
impermanence.url = "github:nix-community/impermanence";
|
|
|
|
|
2024-03-31 14:51:25 -04:00
|
|
|
# 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-03-12 22:44:08 -04:00
|
|
|
};
|
2024-02-29 17:06:55 -05:00
|
|
|
|
2024-03-21 13:00:26 -04:00
|
|
|
nixConfig = {
|
2024-04-07 22:16:33 -04:00
|
|
|
extra-substituters = ["https://nixcache.raffauflabs.com" "https://hyprland.cachix.org"];
|
2024-03-21 13:00:26 -04:00
|
|
|
extra-trusted-public-keys = [
|
|
|
|
"nixcache.raffauflabs.com:yFIuJde/izA4aUDI3MZmBLzynEsqVCT1OfCUghOLlt8="
|
2024-03-31 14:51:25 -04:00
|
|
|
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
|
2024-03-21 13:00:26 -04:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2024-04-07 22:16:33 -04:00
|
|
|
outputs = inputs @ {
|
|
|
|
nixpkgs,
|
|
|
|
nixpkgs-unstable,
|
|
|
|
home-manager,
|
|
|
|
home-manager-unstable,
|
|
|
|
nixos-hardware,
|
|
|
|
impermanence,
|
|
|
|
disko,
|
|
|
|
disko-unstable,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
homeConfigurations.aly = home-manager-unstable.lib.homeManagerConfiguration {
|
|
|
|
pkgs = import nixpkgs-unstable {system = "x86_64-linux";};
|
|
|
|
modules = [./home.nix];
|
|
|
|
};
|
2024-03-12 23:11:10 -04:00
|
|
|
|
2024-04-07 22:16:33 -04:00
|
|
|
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
|
|
|
|
];
|
|
|
|
};
|
2024-03-16 20:58:21 -04:00
|
|
|
|
2024-04-07 22:16:33 -04:00
|
|
|
# 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
|
|
|
|
];
|
|
|
|
};
|
2024-02-29 21:27:10 -05:00
|
|
|
|
2024-04-07 22:16:33 -04:00
|
|
|
# Lenovo Yoga 9i with i7-1360P and 16GB RAM.
|
|
|
|
petalburg = nixpkgs-unstable.lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
specialArgs = {inherit inputs;};
|
|
|
|
modules = [
|
|
|
|
disko-unstable.nixosModules.disko
|
|
|
|
nixos-hardware.nixosModules.common-pc-laptop-ssd
|
|
|
|
nixos-hardware.nixosModules.common-cpu-intel
|
|
|
|
home-manager-unstable.nixosModules.home-manager
|
|
|
|
./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-unstable.lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
specialArgs = {inherit inputs;};
|
|
|
|
modules = [
|
|
|
|
disko-unstable.nixosModules.disko
|
|
|
|
impermanence.nixosModules.impermanence
|
|
|
|
nixos-hardware.nixosModules.lenovo-thinkpad-t440p
|
|
|
|
home-manager-unstable.nixosModules.home-manager
|
|
|
|
./hosts/rustboro
|
|
|
|
./nixosModules
|
|
|
|
];
|
2024-03-03 21:42:59 -05:00
|
|
|
};
|
2024-02-29 17:06:55 -05:00
|
|
|
};
|
2024-04-07 22:16:33 -04:00
|
|
|
};
|
2024-03-06 22:14:16 -05:00
|
|
|
}
|