egirls-nixos/flake.nix

31 lines
807 B
Nix
Raw Normal View History

2024-02-25 20:51:45 +00:00
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
"nixpkgs-23.05".url = "github:NixOS/nixpkgs/nixos-23.05";
2024-02-26 00:23:08 +00:00
unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
2024-02-25 20:51:45 +00:00
};
2024-02-26 00:23:08 +00:00
outputs = { self, nixpkgs, unstable, ... }@attrs: {
2024-02-25 20:57:12 +00:00
nixosConfigurations."egirls" = nixpkgs.lib.nixosSystem rec {
2024-02-25 20:51:45 +00:00
system = "x86_64-linux";
pkgs = let
cfg = {
inherit system;
config.allowUnfree = true;
2024-02-26 00:23:08 +00:00
overlays = [ (final: prev: { unstable = import unstable cfg; }) ];
2024-02-25 20:51:45 +00:00
};
in import nixpkgs cfg;
2024-02-25 21:05:20 +00:00
specialArgs = attrs;
2024-02-25 20:51:45 +00:00
modules = [
./configuration.nix
# set nix shell nixpkgs to flake nixpkgs
({ config, pkgs, options, ... }: {
nix.registry.nixpkgs.flake = nixpkgs;
})
];
};
};
}