-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
140 lines (134 loc) · 4.09 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
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
{
description = "Home Manager configuration of tomvd";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nixvim = {
url = "github:nix-community/nixvim";
inputs.nixpkgs.follows = "nixpkgs";
};
nixgl.url = "github:nix-community/nixGL";
nix-colors.url = "github:misterio77/nix-colors";
ags.url = "github:Aylur/ags";
# agsv1.url = "github:dtomvan/agsv1";
hyprland.url = "github:hyprwm/Hyprland";
disko = {
url = "github:nix-community/disko/latest";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = inputs @ {
self,
nixpkgs,
home-manager,
nixvim,
disko,
...
}: let
system = "x86_64-linux";
pkgs = import inputs.nixpkgs {
inherit system;
config.allowUnfree = true;
overlays = [
inputs.nixgl.overlay
(_final: prev: {
ags = inputs.ags.packages.${system}.default.override (with inputs.ags.packages.${system}; {
extraPackages = [
notifd
tray
wireplumber
hyprland
mpris
];
});
# agsv1 = inputs.agsv1.legacyPackages.${system}.agsv1;
doom1-wad = pkgs.callPackage ./packages/doom1-wad.nix {};
hyprland = inputs.hyprland.packages.${system}.hyprland;
xdg-desktop-portal-hyprland = inputs.hyprland.packages.${system}.xdg-desktop-portal-hyprland;
coach-cached = self.packages.${system}.coach-cached;
steam-tui = self.packages.${system}.steam-tui;
afio-font = self.packages.${system}.afio-font;
sowon = pkgs.callPackage ./packages/sowon.nix {};
})
];
};
in {
inherit pkgs;
devShells.${system} = import ./shells {inherit pkgs;};
packages.${system} = {
coach-cached = pkgs.callPackage ./packages/coach-cached.nix {};
rwds-cli = pkgs.callPackage ./packages/rwds-cli.nix {};
steam-tui = pkgs.callPackage ./packages/steam-tui-bin.nix {};
afio-font = pkgs.callPackage ./packages/afio.nix {};
};
homeConfigurations = let
tomvd = {
username = "tomvd";
hostname = "tom-pc";
};
in {
"${tomvd.username}@${tomvd.hostname}" = inputs.home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = with inputs; [
nixvim.homeManagerModules.nixvim
nix-colors.homeManagerModules.default
# agsv1.homeManagerModules.agsv1
./home/tom-pc/tomvd.nix
];
extraSpecialArgs = with inputs; {
inherit nixpkgs;
inherit nix-colors;
hostname = tomvd.hostname;
username = tomvd.username;
};
};
"tomvd@tom-laptop" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = with inputs; [
nixvim.homeManagerModules.nixvim
nix-colors.homeManagerModules.default
./home/tom-laptop/tom.nix
];
extraSpecialArgs = with inputs; {
inherit nix-colors;
htmlDocs = nixpkgs.htmlDocs.nixosManual.${system};
};
};
};
nixosConfigurations."tom-pc" = inputs.nixpkgs.lib.nixosSystem {
inherit system;
modules = [
./hosts/tom-pc.nix
./hardware/tom-pc-disko.nix
disko.nixosModules.disko
];
};
nixosConfigurations."tom-pc-vm" = inputs.nixpkgs.lib.nixosSystem {
inherit system;
modules = [
./hosts/tom-pc.nix
./hardware/disko-vda.nix
disko.nixosModules.disko
];
};
nixosConfigurations.iso = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
./hosts/iso.nix
home-manager.nixosModules.home-manager
{
home-manager.extraSpecialArgs = {
inherit nixvim;
};
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.nixos = import ./home/iso-home.nix;
}
];
};
};
}
# vim:sw=2 ts=2 sts=2