-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
52 lines (48 loc) · 1.5 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
{
description = "A very basic flake";
inputs = {
stable.url = "github:NixOS/nixpkgs/nixos-23.05";
home-manager = {
url = "github:nix-community/home-manager/release-23.05";
inputs.nixpkgs.follows = "stable";
};
unstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
own-neovim.url = "github:GlancingMind/neovim-setup";
};
outputs = { self, home-manager, stable, unstable, own-neovim }:
let
system = "x86_64-linux";
stablePkgs = stable.legacyPackages.${system};
unstablePkgs = unstable.legacyPackages.${system};
in {
devShells.${system} = {
default = stablePkgs.callPackage ./shell.nix {};
};
nixosConfigurations = {
laptop = stable.lib.nixosSystem {
inherit system;
specialArgs = {
hardware = import ./hardware;
services = import ./services;
};
modules = [
./systems/laptop
./users/sascha
{
# Pin nixpkgs. So "nix run nixpkgs#<package>" will use the
# pinned version.
nix.registry.nixpkgs.flake = stable;
# Append packages to nixpkgs set which are missing from nixpkgs
nixpkgs.overlays = [
(final: prev: {
packages = own-neovim.packages.${system};
inherit unstablePkgs;
})
];
}
home-manager.nixosModules.home-manager
];
};
};
};
}