2023-03-29 13:14:37 +00:00
|
|
|
{
|
|
|
|
inputs = {
|
|
|
|
# Pin nixpkgs to a specific commit
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
2023-04-03 09:41:33 +00:00
|
|
|
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-22.11";
|
2023-03-29 13:14:37 +00:00
|
|
|
|
|
|
|
nur.url = "github:nix-community/NUR";
|
2023-04-03 09:41:33 +00:00
|
|
|
nur-xddxdd = {
|
|
|
|
url = "github:xddxdd/nur-packages";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs-stable";
|
2023-03-29 13:14:37 +00:00
|
|
|
};
|
|
|
|
|
2023-04-03 09:41:33 +00:00
|
|
|
nixos-cn = {
|
|
|
|
url = "github:nixos-cn/flakes";
|
|
|
|
# Use the same nixpkgs
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs-stable";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
outputs = { self, nixpkgs, nur, nixos-cn, ...}@attrs: {
|
2023-03-29 13:14:37 +00:00
|
|
|
nixosConfigurations.xin-laptop = nixpkgs.lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
2023-04-03 09:41:33 +00:00
|
|
|
specialArgs = attrs;
|
2023-03-29 13:14:37 +00:00
|
|
|
modules = [
|
|
|
|
nur.nixosModules.nur
|
|
|
|
machines/laptop/configuration.nix
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|