-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
113 lines (109 loc) · 3.03 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
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
{
description = "A flake";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
nixpkgs-stable.url = "nixpkgs/nixos-23.11";
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
impermanence.url = "github:nix-community/impermanence";
nur.url = "github:nix-community/NUR";
my-nixpkgs = {
url = "github:Konecho/my-nixpkgs";
# inputs.nixpkgs.follows = "nixpkgs";
};
nixos-wsl = {
url = "github:nix-community/NixOS-WSL";
inputs.nixpkgs.follows = "nixpkgs";
};
vscode-server = {
url = "github:nix-community/nixos-vscode-server";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-index-database = {
url = "github:Mic92/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs";
};
agenix = {
url = "github:ryantm/agenix";
inputs.nixpkgs.follows = "nixpkgs";
inputs.darwin.follows = "";
};
nixgl.url = "github:guibou/nixGL";
stylix.url = "github:danth/stylix";
pokesprite = {
url = "github:msikma/pokesprite";
flake = false;
};
niri.url = "github:sodiboo/niri-flake";
gBar.url = "github:scorpion-26/gBar";
nixos-cosmic = {
url = "github:lilyinstarlight/nixos-cosmic";
# inputs.nixpkgs.follows = "nixpkgs";
};
ironbar = {
url = "github:JakeStanger/ironbar";
# inputs.nixpkgs.follows = "nixpkgs";
};
ghostty = {
url = "github:ghostty-org/ghostty";
};
};
outputs = inputs: let
system = "x86_64-linux";
username = "mei";
lib = import ./lib.nix inputs;
pkgs = lib.mkPkgs {inherit system;};
pkgs-fix-gl = lib.mkPkgs {
inherit system;
overlays = [
(self: super: rec {
# mesa = inputs.nixpkgs-stable.legacyPackages."${system}".mesa; # to fix errors below in <glxinfo>
## MESA: error: ZINK: failed to choose pdev
## glx: failed to create drisw screen
## failed to load driver: zink
})
inputs.nixgl.overlay
];
};
in {
homeConfigurations."${username}" = lib.mkUsr {
inherit pkgs username;
modules = lib.scanPath {
path = ./home;
# excludeFiles = ["stylix"];
};
};
nixosConfigurations = {
deskmini = lib.mkSys {
hostname = "deskmini";
inherit username pkgs system;
modules =
[
# (inputs.nixpkgs + "/nixos/modules/programs/wayland/wayland-session.nix")
./hosts/deskmini/hardware-configuration.nix
]
++ (lib.scanPath {path = ./system;});
};
wsl = lib.mkSys {
hostname = "wsl";
pkgs = pkgs-fix-gl;
# inherit pkgs;
inherit username system;
modules = [
./hosts/wsl/system.nix
];
hm-modules = [
./hosts/wsl/home.nix
];
};
};
devShells.${system}.default = pkgs.mkShell {
packages = with pkgs; [
hello
];
};
};
}