nixos/flake.nix

32 lines
919 B
Nix
Raw Normal View History

2024-04-17 08:35:18 -05:00
{
description = "nixos flake";
inputs = {
# nix unstable packages cuz defaults are kinda outdated for my taste
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
# nix packages fresh from git. no idea why i'm putting this here but shh
nixpkgs-master.url = "github:NixOS/nixpkgs/master";
# extra packages, such as updated custom linux kernel.
# see https://github.com/chaotic-cx/nyx for more details
chaotic.url = "github:chaotic-cx/nyx/nyxpkgs-unstable";
# hardware configs
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
};
outputs = { self, nixpkgs, chaotic, ... }@inputs: {
nixosConfigurations.thonkpad = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
# import the original configuration.nix
./configuration.nix
# nyx's defauly modules
chaotic.nixosModules.default
];
};
};
}