egirls-nixos/flake.nix

30 lines
745 B
Nix
Raw Normal View History

2024-02-25 20:51:45 +00:00
{
inputs = {
2024-06-14 01:02:03 +00:00
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.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;
})
];
};
};
}