-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathflake.nix
98 lines (97 loc) · 3.06 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
{
inputs = {
home-manager = {
url = "github:nix-community/home-manager/release-24.11";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprland-plugins = {
url = "github:hyprwm/hyprland-plugins";
inputs.hyprland.follows = "hyprland";
};
spicetify-nix = {
url = "github:Gerg-L/spicetify-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
hypr-dynamic-cursors = {
url = "github:VirtCode/hypr-dynamic-cursors";
inputs.hyprland.follows = "hyprland";
};
nix-index-database = {
url = "github:nix-community/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs";
};
unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
hyprland.url = "github:hyprwm/Hyprland/v0.46.2";
#chaotic.url = "github:chaotic-cx/nyx/nyxpkgs-unstable";
pipewire-screenaudio.url = "github:IceDBorn/pipewire-screenaudio";
nix-alien.url = "github:thiagokokada/nix-alien";
nix-flatpak.url = "github:gmodena/nix-flatpak";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
nix-search.url = "github:diamondburned/nix-search";
};
outputs =
{ nixpkgs, home-manager, ... }@inputs:
let
system = "x86_64-linux";
in
{
nixosConfigurations = {
nixos = nixpkgs.lib.nixosSystem {
specialArgs = {
inherit inputs system;
};
modules = [
./machines/nixos/configuration.nix
inputs.nix-index-database.nixosModules.nix-index
#inputs.chaotic.nixosModules.default
home-manager.nixosModules.home-manager
{
home-manager = {
extraSpecialArgs = {
inherit inputs system;
};
backupFileExtension = "backup";
useGlobalPkgs = true;
users.l0lk3k = import ./machines/nixos/home.nix;
useUserPackages = true;
};
}
];
};
iso = nixpkgs.lib.nixosSystem {
specialArgs = {
inherit inputs system;
};
modules = [
./machines/iso/configuration.nix
"${nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix"
inputs.nix-index-database.nixosModules.nix-index
#inputs.chaotic.nixosModules.default
home-manager.nixosModules.home-manager
{
home-manager = {
extraSpecialArgs = {
inherit inputs system;
};
backupFileExtension = "backup";
useGlobalPkgs = true;
users.nixos = import ./machines/iso/home.nix;
useUserPackages = true;
};
}
];
};
};
homeConfigurations = {
l0lk3k = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.${system};
modules = [
./machines/nixos/home-options.nix
];
extraSpecialArgs = {
inherit inputs system;
};
};
};
};
}