-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
78 lines (75 loc) · 2.11 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{
inputs = {
hardware-configuration = {
url = "path:/etc/nix/hardware.nix";
flake = false;
};
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs-old.url = "github:NixOS/nixpkgs/nixos-24.05";
nur.url = "github:nix-community/NUR";
nur.inputs.nixpkgs.follows = "nixpkgs";
home-manager = {
url = "github:nix-community/home-manager/release-24.11";
inputs.nixpkgs.follows = "nixpkgs";
};
helix.url = "github:NikitaRevenco/helix/patchy";
patchy.url = "github:NikitaRevenco/patchy/main";
wezterm = {
url = "github:wez/wezterm?dir=nix";
inputs.nixpkgs.follows = "nixpkgs";
};
playwright.url = "github:pietdevries94/playwright-web-flake/1.47.0";
};
outputs =
{
self,
nixpkgs,
nixpkgs-unstable,
nixpkgs-old,
nur,
playwright,
home-manager,
...
}@inputs:
let
system = "x86_64-linux";
overlay = final: prev: {
inherit (playwright.packages.${system}) playwright-driver playwright-test;
};
pkgs-unstable = import nixpkgs-unstable {
inherit system;
config.allowUnfree = true;
overlays = [ overlay ];
};
pkgs-nur = import nixpkgs-unstable {
inherit system;
overlays = [ nur.overlays.default ];
};
specialArgs = {
inherit pkgs-unstable inputs pkgs-nur;
};
in
{
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
inherit system specialArgs;
modules = [
./configuration.nix
# nur.modules.nixos.default
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = specialArgs;
home-manager.backupFileExtension = "backup";
home-manager.users.e = {
imports = [
./home.nix
# inputs.nur.modules.homeManager.default
];
};
}
];
};
};
}