-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
40 lines (38 loc) · 1.3 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
{
description = "Amber's flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
plugin-candyland.url = "github:AmberLehmann/candyland.nvim";
nix-ld.url = "github:Mic92/nix-ld";
plugin-candyland.flake = false;
spicetify-nix = {
url = "github:Gerg-L/spicetify-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = {self, nixpkgs, nix-ld, ... } @ inputs:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
lib = nixpkgs.lib;
in {
devShells.${system}.default = import ./shell.nix { inherit pkgs; };
nixosConfigurations.nixos = lib.nixosSystem {
specialArgs = { inherit inputs; };
modules = [
./configuration.nix # Houses home.nix
./display-manager.nix
./gc.nix # Garbage collector
./latex.nix
./sound.nix
./user.nix
nix-ld.nixosModules.nix-ld
# The module in this repository defines a new module under (programs.nix-ld.dev) instead of (programs.nix-ld)
# to not collide with the nixpkgs version.
{ programs.nix-ld.dev.enable = true; }
];
};
};
}