nixconf/flake.nix

43 lines
1,008 B
Nix

{
description = "mtxyz's NixOS systems";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
# Used in bodge overlay when an unstable package isn't working.
stable.url = "github:nixos/nixpkgs/nixos-23.11";
nur.url = "github:nix-community/NUR";
snowfall-lib = {
url = "github:snowfallorg/lib";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils-plus.url = "github:gytis-ivaskevicius/flake-utils-plus?ref=pull/146/head";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = inputs: inputs.snowfall-lib.mkFlake {
inherit inputs;
snowfall.namespace = "mtxyz";
channels-config.allowUnfree = true;
overlays = with inputs; [
nur.overlay
];
systems.modules.nixos = with inputs; [
home-manager.nixosModules.home-manager
];
templates.shim.description = "/etc/nixos shim for mtxyz's nixconf";
src = ./.;
};
}