-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
81 lines (71 loc) · 2.47 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
79
80
81
{
description = "Wittano NixOS configuration";
nixConfig = {
trusted-substituters = [
"https://ezkea.cachix.org"
"https://wittano-nix-repo.cachix.org"
"https://nix-community.cachix.org"
"https://cache.nixos.org/"
"https://nix-gaming.cachix.org"
"https://hyprland.cachix.org"
];
extra-trusted-public-keys = [
"ezkea.cachix.org-1:ioBmUbJTZIKsHmWWXPe1FSFbeVe+afhfgqgTSNd34eI="
"wittano-nix-repo.cachix.org-1:SqjGwMsbzVQOXhbS90DXFC7AoGH99dzPy8zixK3cyt0="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4="
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
];
};
inputs = {
nixpkgs.url = "nixpkgs/nixos-24.11";
nixpkgs-unstable.url = "nixpkgs/nixos-unstable";
home-manager.url = "github:nix-community/home-manager/release-24.11";
filebot.url = "github:Wittano/filebot";
aagl = {
url = "github:ezKEa/aagl-gtk-on-nix/release-24.11";
inputs.nixpkgs.follows = "nixpkgs";
};
nixvim.url = "github:nix-community/nixvim/nixos-24.11";
honkai-railway-grub-theme.url = "github:voidlhf/StarRailGrubThemes";
catppuccin.url = "github:catppuccin/nix";
catppuccin-dunst = {
url = "github:catppuccin/dunst";
flake = false;
};
xmonad-contrib.url = "github:xmonad/xmonad-contrib";
agenix.url = "github:ryantm/agenix";
};
outputs = { self, nixpkgs, home-manager, ... }@inputs:
let
system = "x86_64-linux";
overlays = import ./overlays.nix { inherit lib inputs pkgs; };
mkPkgs = p:
import p {
inherit system;
config = {
allowUnfree = true;
permittedInsecurePackages = [
"electron-27.3.11"
];
};
overlays = overlays.systemOverlays;
};
pkgs = mkPkgs inputs.nixpkgs;
unstable = mkPkgs inputs.nixpkgs-unstable;
lib = nixpkgs.lib.extend (sefl: super: {
inherit (home-manager.lib) hm;
my = import ./lib { inherit lib system inputs pkgs unstable; };
});
in
{
lib = lib.my;
nixosConfigurations = {
pc = lib.my.hosts.mkHost "pc";
laptop = lib.my.hosts.mkHost "laptop";
};
overlays.default = overlays.overlay;
devShells.${system}.default = unstable.callPackage ./shell.nix { };
templates = import ./templates.nix { inherit lib; };
};
}