egirls-nixos/flake.nix
2024-06-13 18:02:03 -07:00

29 lines
745 B
Nix

{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs, unstable, ... }@attrs: {
nixosConfigurations."egirls" = nixpkgs.lib.nixosSystem rec {
system = "x86_64-linux";
pkgs = let
cfg = {
inherit system;
config.allowUnfree = true;
overlays = [ (final: prev: { unstable = import unstable cfg; }) ];
};
in import nixpkgs cfg;
specialArgs = attrs;
modules = [
./configuration.nix
# set nix shell nixpkgs to flake nixpkgs
({ config, pkgs, options, ... }: {
nix.registry.nixpkgs.flake = nixpkgs;
})
];
};
};
}