-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
144 lines (122 loc) · 3.44 KB
/
flake.nix
File metadata and controls
144 lines (122 loc) · 3.44 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
{
description = "tenshou170's NixOS configuration";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs-master.url = "github:NixOS/nixpkgs/master";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-cachyos-kernel.url = "github:xddxdd/nix-cachyos-kernel/release";
fenix = {
url = "github:nix-community/fenix";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-alien = {
url = "github:thiagokokada/nix-alien";
inputs.nixpkgs.follows = "nixpkgs";
};
vicinae.url = "github:vicinaehq/vicinae";
vicinae-extensions = {
url = "github:vicinaehq/extensions";
inputs.nixpkgs.follows = "nixpkgs";
};
aagl = {
url = "github:ezKEa/aagl-gtk-on-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
bottles-deflatpak.url = "github:THShafi170/Bottles-Deflatpak";
nixos-06cb-009a-fingerprint-sensor = {
url = "github:iedame/nixos-06cb-009a-fingerprint-sensor/25.11";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-flatpak.url = "github:gmodena/nix-flatpak";
};
outputs =
{
self,
nixpkgs,
home-manager,
nix-cachyos-kernel,
vicinae,
vicinae-extensions,
aagl,
bottles-deflatpak,
...
}@inputs:
let
system = "x86_64-linux";
nixpkgsConfig = {
allowUnfree = true;
};
mkPkgs =
input:
import input {
inherit system;
config = nixpkgsConfig;
};
pkgs = mkPkgs inputs.nixpkgs;
pkgsMaster = mkPkgs inputs.nixpkgs-master;
in
{
overlays.default =
final: prev:
(import ./pkgs {
inherit (final) callPackage;
inherit (prev) lib;
});
packages.${system} = import ./pkgs {
inherit (pkgs) callPackage lib;
};
formatter.${system} = pkgs.nixfmt;
nixosConfigurations."X1-Yoga-2nd" = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
./hosts/default.nix
aagl.nixosModules.default
inputs.nixos-06cb-009a-fingerprint-sensor.nixosModules."06cb-009a-fingerprint-sensor"
inputs.home-manager.nixosModules.home-manager
inputs.nix-flatpak.nixosModules.nix-flatpak
{
nixpkgs = {
config = nixpkgsConfig;
overlays = [
self.overlays.default
# Fenix overlay — makes pkgs.fenix available for opt-in use in
# per-project devShells. No toolchain components are added to
# systemPackages; rustup handles day-to-day toolchain management.
inputs.fenix.overlays.default
];
};
}
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
backupFileExtension = "bak";
users.tenshou170 = import ./home/default.nix;
extraSpecialArgs = {
inherit
aagl
inputs
pkgsMaster
vicinae
vicinae-extensions
;
};
};
}
];
specialArgs = {
inherit
self
aagl
inputs
pkgsMaster
vicinae
vicinae-extensions
;
};
};
};
}