2024-02-29 17:06:55 -05:00
|
|
|
{
|
|
|
|
description = "Aly's NixOS configuration.";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
|
|
|
|
# handles flatpaks
|
|
|
|
nix-flatpak.url = "github:gmodena/nix-flatpak"; # unstable branch. Use github:gmodena/nix-flatpak/?ref=<tag> to pin releases.
|
|
|
|
# home-manager, used for managing user configuration
|
|
|
|
home-manager = {
|
|
|
|
url = "github:nix-community/home-manager/release-23.11";
|
|
|
|
# The `follows` keyword in inputs is used for inheritance.
|
|
|
|
# Here, `inputs.nixpkgs` of home-manager is kept consistent with
|
|
|
|
# the `inputs.nixpkgs` of the current flake,
|
|
|
|
# to avoid problems caused by different versions of nixpkgs.
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
|
|
|
};
|
|
|
|
|
2024-03-01 21:21:40 -05:00
|
|
|
outputs = inputs@{ nixpkgs, nix-flatpak, home-manager, nixos-hardware, ... }: {
|
2024-02-29 17:06:55 -05:00
|
|
|
nixosConfigurations = {
|
2024-02-29 21:27:10 -05:00
|
|
|
|
|
|
|
# T440p with i5-4210M and 16GB RAM.
|
2024-02-29 17:06:55 -05:00
|
|
|
rustboro = nixpkgs.lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
modules = [
|
|
|
|
./hosts/rustboro
|
2024-03-01 21:38:19 -05:00
|
|
|
./system
|
2024-03-02 00:08:54 -05:00
|
|
|
./users/aly.nix
|
2024-02-29 17:06:55 -05:00
|
|
|
./flatpak
|
|
|
|
./desktop/gnome
|
2024-02-29 18:29:15 -05:00
|
|
|
./programs/podman
|
2024-02-29 18:56:46 -05:00
|
|
|
./programs/steam
|
2024-02-29 19:03:08 -05:00
|
|
|
./programs/via-qmk
|
2024-02-29 17:06:55 -05:00
|
|
|
|
2024-02-29 18:10:52 -05:00
|
|
|
nix-flatpak.nixosModules.nix-flatpak
|
2024-02-29 17:06:55 -05:00
|
|
|
# make home-manager as a module of nixos
|
|
|
|
# so that home-manager configuration will be deployed automatically when executing `nixos-rebuild switch`
|
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
{
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
|
|
|
home-manager.users.aly = import ./home/aly;
|
|
|
|
# Optionally, use home-manager.extraSpecialArgs to pass arguments to home.nix
|
|
|
|
}
|
|
|
|
# nixos-hardware configuration for t440p
|
|
|
|
nixos-hardware.nixosModules.lenovo-thinkpad-t440p
|
|
|
|
];
|
|
|
|
};
|
2024-02-29 21:27:10 -05:00
|
|
|
|
|
|
|
# Lenovo Yoga 9i with i7-1360P and 16GB RAM.
|
|
|
|
petalburg = nixpkgs.lib.nixosSystem {
|
2024-02-29 17:06:55 -05:00
|
|
|
system = "x86_64-linux";
|
|
|
|
modules = [
|
2024-02-29 21:27:10 -05:00
|
|
|
./hosts/petalburg
|
2024-03-01 21:38:19 -05:00
|
|
|
./system
|
2024-03-02 00:08:54 -05:00
|
|
|
./users/aly.nix
|
2024-02-29 17:06:55 -05:00
|
|
|
./flatpak
|
|
|
|
./desktop/gnome
|
2024-02-29 21:27:10 -05:00
|
|
|
./programs/podman
|
|
|
|
./programs/steam
|
|
|
|
./programs/via-qmk
|
2024-02-29 17:06:55 -05:00
|
|
|
|
2024-02-29 18:10:52 -05:00
|
|
|
nix-flatpak.nixosModules.nix-flatpak
|
2024-02-29 17:06:55 -05:00
|
|
|
# make home-manager as a module of nixos
|
|
|
|
# so that home-manager configuration will be deployed automatically when executing `nixos-rebuild switch`
|
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
{
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
2024-03-01 21:48:08 -05:00
|
|
|
home-manager.users.aly = import ./home/aly;
|
|
|
|
# Optionally, use home-manager.extraSpecialArgs to pass arguments to home.nix
|
2024-02-29 17:06:55 -05:00
|
|
|
}
|
2024-03-01 21:48:08 -05:00
|
|
|
|
2024-02-29 17:06:55 -05:00
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|