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-05-23 19:02:05 -04:00
|
|
|
# Latest stable NixOS release.
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
|
2024-03-05 17:54:51 -05:00
|
|
|
|
2024-05-23 19:02:05 -04:00
|
|
|
# Stable home-manager, synced with latest stable nixpkgs.
|
2024-04-18 14:21:33 -04:00
|
|
|
home-manager = {
|
2024-05-23 19:02:05 -04:00
|
|
|
url = "github:nix-community/home-manager/release-24.05";
|
2024-04-18 14:21:33 -04:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
2024-03-02 13:09:35 -05:00
|
|
|
};
|
2024-03-05 17:54:51 -05:00
|
|
|
|
2024-05-23 19:02:05 -04:00
|
|
|
# Unstable NixOS.
|
|
|
|
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
|
|
|
|
# # Unstable version of home-manager.
|
|
|
|
# home-manager-unstable = {
|
|
|
|
# url = "github:nix-community/home-manager/master";
|
|
|
|
# inputs.nixpkgs.follows = "nixpkgs-unstable";
|
|
|
|
# };
|
|
|
|
|
2024-04-18 14:21:33 -04:00
|
|
|
disko = {
|
|
|
|
url = "github:nix-community/disko";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-04-01 20:29:48 -04:00
|
|
|
|
2024-05-23 19:02:05 -04:00
|
|
|
# impermanence.url = "github:nix-community/impermanence";
|
2024-04-02 02:08:25 -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";
|
2024-04-26 17:54:51 -04:00
|
|
|
|
|
|
|
jovian = {
|
|
|
|
url = "github:Jovian-Experiments/Jovian-NixOS";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
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-05-05 22:00:46 -04:00
|
|
|
extra-substituters = ["https://nixcache.raffauflabs.com"];
|
2024-03-21 13:00:26 -04:00
|
|
|
extra-trusted-public-keys = [
|
|
|
|
"nixcache.raffauflabs.com:yFIuJde/izA4aUDI3MZmBLzynEsqVCT1OfCUghOLlt8="
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2024-04-07 22:16:33 -04:00
|
|
|
outputs = inputs @ {
|
|
|
|
nixpkgs,
|
2024-05-23 19:02:05 -04:00
|
|
|
nixpkgs-unstable,
|
2024-04-07 22:16:33 -04:00
|
|
|
home-manager,
|
|
|
|
nixos-hardware,
|
|
|
|
disko,
|
2024-04-26 17:54:51 -04:00
|
|
|
jovian,
|
2024-04-07 22:16:33 -04:00
|
|
|
...
|
|
|
|
}: {
|
2024-04-30 17:55:51 -04:00
|
|
|
formatter."x86_64-linux" = nixpkgs.legacyPackages."x86_64-linux".alejandra;
|
2024-04-25 11:18:55 -04:00
|
|
|
homeConfigurations = {
|
2024-05-23 19:02:05 -04:00
|
|
|
aly = home-manager.lib.homeManagerConfiguration rec {
|
2024-04-25 11:18:55 -04:00
|
|
|
pkgs = import nixpkgs {system = "x86_64-linux";};
|
2024-05-03 07:04:07 -04:00
|
|
|
modules = [./aly.nix];
|
2024-05-23 19:02:05 -04:00
|
|
|
extraSpecialArgs = {
|
|
|
|
inherit inputs;
|
|
|
|
unstable = import nixpkgs-unstable {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
config.allowUnfree = true;
|
|
|
|
};
|
|
|
|
};
|
2024-04-25 11:18:55 -04:00
|
|
|
};
|
2024-05-23 19:02:05 -04:00
|
|
|
dustin = home-manager.lib.homeManagerConfiguration rec {
|
2024-04-25 11:18:55 -04:00
|
|
|
pkgs = import nixpkgs {system = "x86_64-linux";};
|
2024-05-03 07:04:07 -04:00
|
|
|
modules = [./dustin.nix];
|
2024-05-23 19:02:05 -04:00
|
|
|
extraSpecialArgs = {
|
|
|
|
inherit inputs;
|
|
|
|
unstable = import nixpkgs-unstable {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
config.allowUnfree = true;
|
|
|
|
};
|
|
|
|
};
|
2024-04-25 11:18:55 -04:00
|
|
|
};
|
2024-04-07 22:16:33 -04:00
|
|
|
};
|
2024-03-12 23:11:10 -04:00
|
|
|
|
2024-04-07 22:16:33 -04:00
|
|
|
nixosConfigurations = {
|
2024-04-26 17:54:51 -04:00
|
|
|
# Steam Deck OLED
|
2024-05-23 19:02:05 -04:00
|
|
|
mossdeep = nixpkgs.lib.nixosSystem rec {
|
2024-04-26 17:54:51 -04:00
|
|
|
system = "x86_64-linux";
|
2024-05-23 19:02:05 -04:00
|
|
|
specialArgs = {
|
|
|
|
inherit inputs;
|
|
|
|
unstable = import nixpkgs-unstable {
|
|
|
|
inherit system;
|
|
|
|
config.allowUnfree = true;
|
|
|
|
};
|
|
|
|
};
|
2024-04-26 17:54:51 -04:00
|
|
|
modules = [
|
|
|
|
disko.nixosModules.disko
|
|
|
|
jovian.nixosModules.default
|
2024-04-30 00:23:07 -04:00
|
|
|
nixos-hardware.nixosModules.common-pc-laptop-ssd
|
2024-04-26 17:54:51 -04:00
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
./hosts/mossdeep
|
|
|
|
./nixosModules
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2024-04-07 22:16:33 -04:00
|
|
|
# Framework 13 with AMD Ryzen 7640U and 32GB RAM.
|
2024-05-23 19:02:05 -04:00
|
|
|
lavaridge = nixpkgs.lib.nixosSystem rec {
|
2024-04-07 22:16:33 -04:00
|
|
|
system = "x86_64-linux";
|
2024-05-23 19:02:05 -04:00
|
|
|
specialArgs = {
|
|
|
|
inherit inputs;
|
|
|
|
unstable = import nixpkgs-unstable {
|
|
|
|
inherit system;
|
|
|
|
config.allowUnfree = true;
|
|
|
|
};
|
|
|
|
};
|
2024-04-07 22:16:33 -04:00
|
|
|
modules = [
|
2024-05-01 22:12:13 -04:00
|
|
|
disko.nixosModules.disko
|
2024-04-07 22:16:33 -04:00
|
|
|
nixos-hardware.nixosModules.framework-13-7040-amd
|
2024-04-18 14:21:33 -04:00
|
|
|
home-manager.nixosModules.home-manager
|
2024-04-07 22:16:33 -04:00
|
|
|
./hosts/lavaridge
|
|
|
|
./nixosModules
|
|
|
|
];
|
|
|
|
};
|
2024-03-16 20:58:21 -04:00
|
|
|
|
2024-04-18 14:21:33 -04:00
|
|
|
# Framework 13 with 11th Gen Intel Core i5 and 16GB RAM.
|
2024-05-23 19:02:05 -04:00
|
|
|
fallarbor = nixpkgs.lib.nixosSystem rec {
|
2024-04-18 14:21:33 -04:00
|
|
|
system = "x86_64-linux";
|
2024-05-23 19:02:05 -04:00
|
|
|
specialArgs = {
|
|
|
|
inherit inputs;
|
|
|
|
unstable = import nixpkgs-unstable {
|
|
|
|
inherit system;
|
|
|
|
config.allowUnfree = true;
|
|
|
|
};
|
|
|
|
};
|
2024-04-18 14:21:33 -04:00
|
|
|
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.
|
2024-05-23 19:02:05 -04:00
|
|
|
mauville = nixpkgs.lib.nixosSystem rec {
|
2024-04-07 22:16:33 -04:00
|
|
|
system = "x86_64-linux";
|
2024-05-23 19:02:05 -04:00
|
|
|
specialArgs = {
|
|
|
|
inherit inputs;
|
|
|
|
unstable = import nixpkgs-unstable {
|
|
|
|
inherit system;
|
|
|
|
config.allowUnfree = true;
|
|
|
|
};
|
|
|
|
};
|
2024-04-07 22:16:33 -04:00
|
|
|
modules = [
|
2024-04-30 00:23:07 -04:00
|
|
|
nixos-hardware.nixosModules.common-pc-ssd
|
|
|
|
nixos-hardware.nixosModules.common-cpu-amd
|
2024-04-18 14:21:33 -04:00
|
|
|
home-manager.nixosModules.home-manager
|
2024-04-07 22:16:33 -04:00
|
|
|
./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.
|
2024-05-23 19:02:05 -04:00
|
|
|
petalburg = nixpkgs.lib.nixosSystem rec {
|
2024-04-07 22:16:33 -04:00
|
|
|
system = "x86_64-linux";
|
2024-05-23 19:02:05 -04:00
|
|
|
specialArgs = {
|
|
|
|
inherit inputs;
|
|
|
|
unstable = import nixpkgs-unstable {
|
|
|
|
inherit system;
|
|
|
|
config.allowUnfree = true;
|
|
|
|
};
|
|
|
|
};
|
2024-04-07 22:16:33 -04:00
|
|
|
modules = [
|
2024-04-18 14:21:33 -04:00
|
|
|
disko.nixosModules.disko
|
2024-04-07 22:16:33 -04:00
|
|
|
nixos-hardware.nixosModules.common-pc-laptop-ssd
|
|
|
|
nixos-hardware.nixosModules.common-cpu-intel
|
2024-04-18 14:21:33 -04:00
|
|
|
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.
|
2024-05-23 19:02:05 -04:00
|
|
|
rustboro = nixpkgs.lib.nixosSystem rec {
|
2024-04-07 22:16:33 -04:00
|
|
|
system = "x86_64-linux";
|
2024-05-23 19:02:05 -04:00
|
|
|
specialArgs = {
|
|
|
|
inherit inputs;
|
|
|
|
unstable = import nixpkgs-unstable {
|
|
|
|
inherit system;
|
|
|
|
config.allowUnfree = true;
|
|
|
|
};
|
|
|
|
};
|
2024-04-07 22:16:33 -04:00
|
|
|
modules = [
|
2024-04-18 14:21:33 -04:00
|
|
|
disko.nixosModules.disko
|
2024-04-30 00:23:07 -04:00
|
|
|
nixos-hardware.nixosModules.common-pc-laptop-ssd
|
2024-04-07 22:16:33 -04:00
|
|
|
nixos-hardware.nixosModules.lenovo-thinkpad-t440p
|
2024-04-18 14:21:33 -04:00
|
|
|
home-manager.nixosModules.home-manager
|
2024-04-07 22:16:33 -04:00
|
|
|
./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
|
|
|
}
|