flakes/flake.nix

31 lines
827 B
Nix
Raw Normal View History

2021-05-11 14:32:58 +07:00
{
inputs = {
nixpkgs = { url = "github:NixOS/nixpkgs/nixos-unstable"; };
#secrets = { url = "git+ssh://git@github.com/LavaDesu/flakes-secrets.git"; };
secrets = { url = "github:LavaDesu/flakes-secrets"; };
};
2021-05-13 17:59:46 +07:00
outputs = { self, nixpkgs, secrets }: with nixpkgs.lib;
let
base = {
system.configurationRevision = mkIf (self ? rev) self.rev;
nix.registry.nixpkgs.flake = nixpkgs;
};
overlays = {
picom = import ./overlays/picom.nix;
polybar = import ./overlays/polybar.nix;
};
in
{
nixosConfigurations."winter" = nixosSystem {
system = "x86_64-linux";
modules = [
base
secrets.nixosModules.winter
./cfg/winter/main.nix
];
specialArgs = { inherit overlays; };
};
2021-05-11 14:32:58 +07:00
};
}