-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
103 lines (88 loc) · 2.62 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
{
description = "Fred's NixOS Configuration";
inputs = rec {
nixpkgs = {
url = "github:NixOS/nixpkgs/nixos-unstable";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
# hyprland = {
# url = "github:hyprwm/Hyprland";
# };
# nixpkgs-hyprland = {
# url = "github:hyprwm/Hyprland/f3c92e75c8746901898b59abf2a1412bb16cbb54";
# # url = "github:hyprwm/Hyprland/v0.36.0";
# # url = "github:nixos/nixpkgs/336eda0d07dc5e2be1f923990ad9fdb6bc8e28e3";
# };
nixpkgs-hyprland.url = "github:nixos/nixpkgs/9e343b8635964e7155e544473e5c760af2778d4e";
waybar = {
url = "github:Alexays/Waybar";
};
nixpkgs-vscodium.url = "github:nixos/nixpkgs/976fa3369d722e76f37c77493d99829540d43845";
nixpkgs-obsidian.url = "github:nixos/nixpkgs/4ab8a3de296914f3b631121e9ce3884f1d34e1e5";
solaar = {
url = "github:Svenum/Solaar-Flake/main";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-citizen.url = "github:LovingMelody/nix-citizen";
nix-gaming.url = "github:fufexan/nix-gaming";
# nix-index-database = {
# url = "github:nix-community/nix-index-database";
# inputs.nixpkgs.follows = "nixpkgs";
# };
ngrok.url = "github:ngrok/ngrok-nix";
# ngrok-hm.url = "github:ngrok/ngrok-nix/home-manager.nix";
};
outputs = {
self,
nixpkgs,
home-manager,
# hyprland,
nixpkgs-hyprland,
# nix-index-database,
waybar,
nixpkgs-vscodium,
nixpkgs-obsidian,
solaar,
...
} @ inputs: let
system = "x86_64-linux";
# USER
username = "fred";
hostname = "nixos";
# SYSTEM
cursorsize = 24; # 24, 32, 40, 48, 56, 64
in {
nixosConfigurations = {
${username} = nixpkgs.lib.nixosSystem {
specialArgs = {
inherit username;
inherit system;
inherit hostname;
inherit cursorsize;
inherit inputs;
};
modules = [
./src/configuration.nix
# nix-index-database.nixosModules.nix-index
./src/modules/greetd.nix
# ./src/modules/logid.nix
solaar.nixosModules.default
home-manager.nixosModules.home-manager {
home-manager = {
extraSpecialArgs = {
inherit username cursorsize;
inherit inputs nixpkgs-obsidian nixpkgs-vscodium nixpkgs-hyprland;
};
useGlobalPkgs = true;
useUserPackages = true;
users.${username} = import ./src/home.nix;
};
}
];
};
};
};
}