-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
115 lines (112 loc) · 3.19 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
{
description = "Your new nix config";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs-2405.url = "github:nixos/nixpkgs/nixos-24.05";
lix = {
url = "https://git.lix.systems/lix-project/lix/archive/2.91.1.tar.gz";
flake = false;
};
lix-module = {
url = "https://git.lix.systems/lix-project/nixos-module/archive/2.91.1-1.tar.gz";
inputs.lix.follows = "lix";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
spicetify-nix = {
url = "github:Gerg-L/spicetify-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
nur.url = "github:nix-community/NUR";
any-nix-shell = {
url = "github:The1Penguin/any-nix-shell/nix_develop";
inputs.nixpkgs.follows = "nixpkgs";
};
catppuccin = {
url = "github:catppuccin/nix";
inputs.nixpkgs.follows = "nixpkgs";
};
nixos-xivlauncher-rb = {
url = "github:drakon64/nixos-xivlauncher-rb";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { nixpkgs, nixpkgs-2405, lix-module, home-manager, spicetify-nix, nur, any-nix-shell, catppuccin, nixos-xivlauncher-rb, ... }:
let
system = "x86_64-linux";
overlay-2405 = final: prev: {
stable = import nixpkgs-2405 {
inherit system;
config.allowUnfree = true;
};
};
pkgs = import nixpkgs {
inherit system;
config = {
allowUnfree = true;
};
overlays = [
nur.overlay
overlay-2405
];
};
lib = nixpkgs;
in
{
nixosConfigurations = {
scorpia = nixpkgs.lib.nixosSystem {
inherit pkgs;
modules = [
./scorpia/configuration.nix
lix-module.nixosModules.default
catppuccin.nixosModules.catppuccin
];
};
entrapta = nixpkgs.lib.nixosSystem {
inherit pkgs;
modules = [
./entrapta/configuration.nix
lix-module.nixosModules.default
catppuccin.nixosModules.catppuccin
];
};
};
homeConfigurations = {
"scorpia" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = {
inherit spicetify-nix;
inherit any-nix-shell;
inherit nixos-xivlauncher-rb;
desktop = false;
laptop = true;
};
modules = [
nur.hmModules.nur
./home.nix
lix-module.nixosModules.default
catppuccin.homeManagerModules.catppuccin
];
};
"entrapta" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = {
inherit spicetify-nix;
inherit any-nix-shell;
inherit nixos-xivlauncher-rb;
desktop = true;
laptop = false;
};
modules = [
nur.hmModules.nur
./home.nix
lix-module.nixosModules.default
catppuccin.homeManagerModules.catppuccin
];
};
};
};
}