-
Notifications
You must be signed in to change notification settings - Fork 16
/
flake.nix
100 lines (76 loc) · 2.85 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
{
# ================================================================ #
# = WELCOME! = #
# ================================================================ #
description = "Yurii's NixOS configuration";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
xremap-flake.url = "github:xremap/nix-flake";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-index-database = {
url = "github:Mic92/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs";
};
firefox-addons = {
url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-alien = {
url = "github:thiagokokada/nix-alien";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-colors.url = "github:misterio77/nix-colors";
sops-nix = {
url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
prism = {
url = "github:IogaMaster/prism";
inputs.nixpkgs.follows = "nixpkgs";
inputs.home-manager.follows = "home-manager";
};
disko = {
url = "github:nix-community/disko";
inputs.nixpkgs.follows = "nixpkgs";
};
impermanence = {
url = "github:nix-community/impermanence";
};
stylix.url = "github:danth/stylix/ed91a20c84a80a525780dcb5ea3387dddf6cd2de";
ags.url = "github:Aylur/ags";
persist-retro.url = "github:Geometer1729/persist-retro";
woomer = {
url = "github:coffeeispower/woomer";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-minecraft.url = "github:Infinidoge/nix-minecraft";
nix-minecraft.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = {...} @ inputs: let
# super simple boilerplate-reducing
# lib with a bunch of functions
myLib = import ./myLib/default.nix {inherit inputs;};
in
with myLib; {
nixosConfigurations = {
# ===================== NixOS Configurations ===================== #
laptop = mkSystem ./hosts/laptop/configuration.nix;
work = mkSystem ./hosts/work/configuration.nix;
vps = mkSystem ./hosts/vps/configuration.nix;
liveiso = mkSystem ./hosts/liveiso/configuration.nix;
};
homeConfigurations = {
# ================ Maintained home configurations ================ #
"yurii@laptop" = mkHome "x86_64-linux" ./hosts/laptop/home.nix;
"yurii@work" = mkHome "x86_64-linux" ./hosts/work/home.nix;
# ========================= Discontinued ========================= #
# This one doesn't work. Left it in case I ever want to use it again
"yurii@osxvm" = mkHome "x86_64-darwin" ./hosts/osxvm/home.nix;
};
homeManagerModules.default = ./homeManagerModules;
nixosModules.default = ./nixosModules;
};
}