-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
64 lines (60 loc) · 1.89 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
# SPDX-License-Identifier: GPL-2.0-or-later
{
description = "Neve: A Customizable NixOS-based Distribution";
outputs = {
nixpkgs,
nixpkgs-unstable,
nevepkgs,
self,
...
} @ inputs: let
inherit (nixpkgs) lib;
currentSystem = builtins.currentSystem;
pkgs = import nixpkgs {system = currentSystem;};
pkgs-unstable = import nixpkgs-unstable {system = currentSystem;};
pkgs-neve = nevepkgs.packages.${currentSystem};
in {
# -------------------- Desktop Configuration --------------------------
nixosConfigurations = {
desktop = lib.nixosSystem {
system = currentSystem;
modules = [
inputs.nix-flatpak.nixosModules.nix-flatpak
./profiles/desktop.nix
];
specialArgs = {
inherit inputs;
inherit pkgs-unstable;
inherit pkgs-neve;
};
};
# -------------------- Workstation Configuration --------------------------
workstation = lib.nixosSystem {
system = currentSystem;
modules = [
inputs.nix-flatpak.nixosModules.nix-flatpak
./profiles/workstation.nix
];
specialArgs = {
inherit inputs;
inherit pkgs-unstable;
inherit pkgs-neve;
};
};
};
};
# ------------------- Inputs -----------------------------------------
inputs = {
# --------------------- Pkgs ----------------------------------------
nixpkgs-unstable.url = "nixpkgs/nixos-unstable";
nixpkgs.url = "nixpkgs/nixos-unstable";
nevepkgs.url = "github:Neve-Project/nevepkgs";
# ------------------ Nevica ------------------------------------------
nevica = {
url = "github:matteocavestri/nevica";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
# ------------------ Nix Flatpak -------------------------------------
nix-flatpak.url = "github:gmodena/nix-flatpak";
};
}