62 lines
1.7 KiB
Nix
62 lines
1.7 KiB
Nix
{
|
|
description = "grimmauld-nixos";
|
|
|
|
inputs = {
|
|
nixpkgs = {
|
|
url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
# url = "git+file:///home/grimmauld/coding/nixpkgs";
|
|
};
|
|
chaotic = {
|
|
url = "github:chaotic-cx/nyx/nyxpkgs-unstable";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
agenix = {
|
|
url = "github:ryantm/agenix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = inputs @ { self, agenix, nixpkgs, chaotic, ... }:
|
|
let
|
|
patches = [
|
|
{
|
|
# tlpui
|
|
url = "https://patch-diff.githubusercontent.com/raw/NixOS/nixpkgs/pull/305278.patch";
|
|
hash = "sha256-vmzj7gF8jwHdqxN+dQiJ4MRxKpHvBTzbrUvFgt1DK8I=";
|
|
}
|
|
];
|
|
|
|
customNixosSystem = system: definitions:
|
|
let
|
|
unpatched = nixpkgs.legacyPackages.${system};
|
|
patched = unpatched.applyPatches {
|
|
name = "nixpkgs-patched";
|
|
src = inputs.nixpkgs;
|
|
patches = map unpatched.fetchpatch patches;
|
|
};
|
|
nixosSystem = import (patched + "/nixos/lib/eval-config.nix");
|
|
in
|
|
nixosSystem ({
|
|
inherit system;
|
|
specialArgs = { inherit inputs system; };
|
|
} // definitions);
|
|
in
|
|
{
|
|
nixosConfigurations = {
|
|
grimmauld-nixos = customNixosSystem "x86_64-linux" {
|
|
modules = [
|
|
agenix.nixosModules.default
|
|
chaotic.nixosModules.default
|
|
./overlays
|
|
./common
|
|
./specific/grimm-nixos-laptop/configuration.nix
|
|
./configuration.nix
|
|
./modules/users.nix
|
|
./modules/system-packages.nix
|
|
./modules/kvm.nix
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|