-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
78 lines (74 loc) · 3.06 KB
/
flake.nix
File metadata and controls
78 lines (74 loc) · 3.06 KB
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
{
description = "My NixOS Configuration";
inputs = {
# Specify the source of Home Manager and Nixpkgs.
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
nixpkgs-unstable-small.url = "github:NixOS/nixpkgs/nixos-unstable-small";
playwright = {
# Pentusha's fork — pinned to 1.59.1 (auto-update 2026-04-11).
# Upstream pietdevries94 is stuck on 1.59.0 and is missing `hyphen` from
# webkit's buildInputs, so autoPatchelf fails on libhyphen.so.0.
# Switch back to pietdevries94 once it merges a fix.
url = "github:Pentusha/playwright-web-flake/7dc3142cbecb769843182d18eb851338a550c209";
};
home-manager = {
url = "github:nix-community/home-manager/release-25.11";
inputs.nixpkgs.follows = "nixpkgs";
};
kolide-launcher = {
url = "github:/kolide/nix-agent/main";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { nixpkgs, home-manager, playwright, self, nixpkgs-unstable, nixpkgs-unstable-small, kolide-launcher, ... }:
let
system = "x86_64-linux";
overlay = final: prev: {
inherit (playwright.packages.${system})
playwright-driver playwright-test;
claude-code = final.callPackage ./packages/claude-code/package.nix {};
playwright-cli = final.callPackage ./packages/playwright-cli/package.nix {};
plannotator = final.callPackage ./packages/plannotator/package.nix {};
grackle = final.callPackage ./packages/grackle/package.nix {};
monodex = final.callPackage ./packages/monodex/package.nix {};
};
pkgs = import nixpkgs {
inherit system;
};
unstable-pkgs = import nixpkgs-unstable {
inherit system;
config.allowUnfree = true;
overlays = [ overlay ];
};
cursor-hash-fix = final: prev: {
code-cursor = prev.code-cursor.overrideAttrs (old: {
src = prev.appimageTools.extract {
pname = "cursor";
version = old.version;
src = prev.fetchurl {
url = "https://downloads.cursor.com/production/475871d112608994deb2e3065dfb7c6b0baa0c54/linux/x64/Cursor-3.0.16-x86_64.AppImage";
hash = "sha256-dN8tFSppIpO/P0Thst5uaNzlmfWZDh0Y81Lx1BuSYt0=";
};
};
});
};
unstable-small-pkgs = import nixpkgs-unstable-small { inherit system; config.allowUnfree = true; overlays = [ overlay cursor-hash-fix ]; };
in {
nixosConfigurations.ubermouse = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = { inherit unstable-pkgs unstable-small-pkgs; };
modules = [
./nixos.nix
kolide-launcher.nixosModules.kolide-launcher
home-manager.nixosModules.home-manager
{
home-manager.extraSpecialArgs = { inherit unstable-pkgs unstable-small-pkgs; };
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.taylorl = import ./home.nix;
}
];
};
};
}