-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
45 lines (40 loc) · 1.08 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
description = "Protontweaks";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
outputs = { self, nixpkgs, ... }:
let
inherit (nixpkgs) lib legacyPackages;
forAllSystems = lib.genAttrs lib.systems.flakeExposed;
in
{
nixosModules =
let
protontweaks = import ./nix/nixos.nix;
in
{
protontweaks = protontweaks;
default = protontweaks;
};
# deprecated in Nix 2.8
nixosModule = self.nixosModules.default;
homeManagerModules =
let
protontweaks = import ./nix/home-manager.nix;
in
{
protontweaks = protontweaks;
default = protontweaks;
};
homeManagerModule = self.homeManagerModules.default;
overlay = final: prev: {
protontweaks = prev.callPackage ./nix/pkgs/protontweaks.nix { };
};
packages = forAllSystems (system:
let
pkgs = legacyPackages.${system};
in
{
default = pkgs.callPackage ./nix/pkgs/protontweaks.nix { };
});
};
}