egirls-nixos/flake.nix

28 lines
635 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-25 20:52:36 +00:00
outputs = { self, nixpkgs, ... }@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;
};
in import nixpkgs cfg;
modules = [
./configuration.nix
# set nix shell nixpkgs to flake nixpkgs
({ config, pkgs, options, ... }: {
nix.registry.nixpkgs.flake = nixpkgs;
})
];
};
};
}