-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
121 lines (102 loc) · 4.17 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
{
description = "My NixOS & home manager configuration";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-24.05";
nixpkgs-small.url = "github:nixos/nixpkgs/nixos-unstable-small";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
flake-parts.url = "github:hercules-ci/flake-parts";
# nixos-flake.url = "github:srid/nixos-flake";
cachix-deploy-flake.url = "github:cachix/cachix-deploy-flake";
cachix-deploy-flake.inputs.nixpkgs.follows = "nixpkgs";
cachix-deploy-flake.inputs.home-manager.follows = "home-manager";
disko.url = "github:nix-community/disko";
disko.inputs.nixpkgs.follows = "nixpkgs";
fenix.url = "github:nix-community/fenix";
fenix.inputs.nixpkgs.follows = "nixpkgs";
firefox.url = "github:nix-community/flake-firefox-nightly";
firefox.inputs.nixpkgs.follows = "nixpkgs";
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
hyprland.inputs.nixpkgs.follows = "nixpkgs";
nixos-generators.url = "github:nix-community/nixos-generators";
nixos-generators.inputs.nixpkgs.follows = "nixpkgs";
solaar.url = "github:redxtech/Solaar-Flake/main";
solaar.inputs.nixpkgs.follows = "nixpkgs";
sops-nix.url = "github:Mic92/sops-nix";
sops-nix.inputs.nixpkgs.follows = "nixpkgs";
spicetify-nix.url = "github:Gerg-L/spicetify-nix";
spicetify-nix.inputs.nixpkgs.follows = "nixpkgs";
tu.url = "github:redxtech/tu";
deploy-rs.url = "github:serokell/deploy-rs";
devenv.url = "github:cachix/devenv";
fh.url = "github:DeterminateSystems/fh";
flake-schemas.url = "github:DeterminateSystems/flake-schemas";
hardware.url = "github:nixos/nixos-hardware";
hci-effects.url = "github:hercules-ci/hercules-ci-effects";
jovian.url = "github:Jovian-Experiments/Jovian-NixOS";
limbo.url = "github:co-conspirators/limbo";
neovim-nightly.url = "github:nix-community/neovim-nightly-overlay";
nix-autobahn.url = "github:lassulus/nix-autobahn";
nix-flatpak.url = "github:gmodena/nix-flatpak";
nix-neovim-plugins.url = "github:NixNeovim/NixNeovimPlugins";
nix-serve-ng.url = "github:aristanetworks/nix-serve-ng";
quickgui.url =
"https://flakehub.com/f/quickemu-project/quickgui/1.2.10.tar.gz";
swww.url = "github:LGFae/swww";
xremap-flake.url = "github:xremap/nix-flake";
nur.url = "github:nix-community/NUR";
};
outputs = inputs@{ self, nixpkgs, home-manager, flake-parts, hardware
, quickgui, ... }:
let
mkLib = nixpkgs: nixpkgs.lib.extend (final: prev: (import ./lib final));
customLib = mkLib nixpkgs;
in flake-parts.lib.mkFlake { inherit inputs; } {
imports = [
./modules/flake/ci.nix
./modules/flake/deploy.nix
./modules/flake/nix.nix
./modules/flake/nixiso.nix
./modules/flake/modules.nix
./modules/flake/overlays.nix
./modules/flake/packages.nix
./modules/flake/schemas.nix
./modules/flake/shell.nix
];
systems = [ "x86_64-linux" "aarch64-linux" ];
flake = {
nixosConfigurations = {
# main desktop
bastion = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [ self.nixosModules.bastion ];
};
# laptop
voyager = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [ self.nixosModules.voyager ];
};
# nas & media server
quasar = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [ self.nixosModules.quasar ];
};
# steamdeck
deck = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [ self.nixosModules.deck ];
};
# iso for usb stick
nixiso = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [ self.nixosModules.nixiso ];
};
};
lib = customLib;
};
perSystem = { config, self', inputs', pkgs, system, ... }: {
formatter = pkgs.nixpkgs-fmt;
};
};
}