flakes/flake.nix

42 lines
1.3 KiB
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 = {
linux = import ./overlays/linux.nix;
2021-05-13 17:59:46 +07:00
picom = import ./overlays/picom.nix;
polybar = import ./overlays/polybar.nix;
2021-05-14 15:48:22 +07:00
discord = (self: super: {
discord-canary = super.discord-canary.override rec {
version = "0.0.121";
src = builtins.fetchurl {
url = "https://dl-canary.discordapp.net/apps/linux/${version}/discord-canary-${version}.tar.gz";
sha256 = "0s85nh31wv39adawfmllp128n0wgyisbi604n0cngzi28rdw7bph";
};
};
});
2021-05-13 18:22:33 +07:00
wine-osu = import ./overlays/wine-osu.nix;
2021-05-13 17:59:46 +07:00
};
in
{
nixosConfigurations."winter" = nixosSystem {
system = "x86_64-linux";
modules = [
base
secrets.nixosModules.winter
2021-05-16 21:50:29 +07:00
./cfg/winter
2021-05-13 17:59:46 +07:00
];
specialArgs = { inherit overlays; };
};
2021-05-11 14:32:58 +07:00
};
}