-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
91 lines (77 loc) · 2.34 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
{
description = "Kieran's opinionated (and probably slightly dumb) nix config";
inputs = {
# Nixpkgs
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
# Lix
lix-module = {
url = "https://git.lix.systems/lix-project/nixos-module/archive/2.91.0.tar.gz";
inputs.nixpkgs.follows = "nixpkgs";
};
# NixOS hardware configuration
hardware.url = "github:NixOS/nixos-hardware/master";
# Home manager
home-manager.url = "github:nix-community/home-manager/release-24.05";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
disko.url = "github:nix-community/disko";
disko.inputs.nixpkgs.follows = "nixpkgs";
# agenix
agenix.url = "github:ryantm/agenix";
spicetify-nix = {
url = "github:Gerg-L/spicetify-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
# catppuccin
catppuccin.url = "github:catppuccin/nix";
catppuccin-vsc.url = "https://flakehub.com/f/catppuccin/vscode/\*.tar.gz";
nix-vscode-extensions.url = "github:nix-community/nix-vscode-extensions";
nix-flatpak.url = "github:gmodena/nix-flatpak";
zen-browser.url = "github:MarceColl/zen-browser-flake";
};
outputs = {
self,
nixpkgs,
nixpkgs-unstable,
lix-module,
nix-flatpak,
cursor,
agenix,
home-manager,
nixos-hardware,
hyprland-contrib,
...
} @ inputs: let
inherit (self) outputs;
system = "x86_64-linux";
unstable-overlays = {
nixpkgs.overlays = [
(final: prev: {
unstable = import nixpkgs-unstable {
inherit system;
config.allowUnfree = true;
};
})
];
};
in {
# NixOS configuration entrypoint
# Available through 'nixos-rebuild --flake .#your-hostname'
nixosConfigurations = {
moonlark = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {inherit inputs outputs;};
# > Our main nixos configuration file <
modules = [
lix-module.nixosModules.default
nix-flatpak.nixosModules.nix-flatpak
inputs.disko.nixosModules.disko
{ disko.devices.disk.disk1.device = "/dev/vda"; }
agenix.nixosModules.default
./moonlark/configuration.nix
unstable-overlays
];
};
};
};
}