52 lines
1.4 KiB
Nix
52 lines
1.4 KiB
Nix
{
|
|
description = "NixOS Configuration";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
|
|
# ^^^^^^^^^^^^^ this part is optional
|
|
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = { self, nixpkgs, nixpkgs-unstable, home-manager, ... }:
|
|
let
|
|
lib = nixpkgs.lib;
|
|
lib-unstable = nixpkgs-unstable.lib;
|
|
username = "nullbite";
|
|
|
|
enableHomeManager = user: home-manager.nixosModules.home-manager {
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPackages = true;
|
|
home-manager.users."${user}" = ./home.nix ; # TODO replace me
|
|
};
|
|
in {
|
|
nixosConfigurations = {
|
|
slab = lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
modules = [
|
|
./hosts/slab/configuration.nix
|
|
./hosts/slab/nvidia-optimus.nix
|
|
./roles/remote.nix
|
|
./roles/plasma.nix
|
|
./fragments/opengl.nix
|
|
./roles/gaming.nix
|
|
];
|
|
};
|
|
nullbox = lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
modules = [
|
|
./hosts/nullbox/configuration.nix
|
|
./roles/remote.nix
|
|
./roles/plasma.nix
|
|
./fragments/hardware/nvidia-modeset.nix
|
|
./roles/gaming.nix
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|