mirror of
https://git.gay/sneexy/nixos.git
synced 2026-01-11 05:03:15 -08:00
32 lines
919 B
Nix
32 lines
919 B
Nix
|
|
{
|
||
|
|
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
|
||
|
|
];
|
||
|
|
};
|
||
|
|
};
|
||
|
|
}
|