-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
31 lines (29 loc) · 1.13 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
# nix flake --help
# Update all inputs: `nix flake update`
# Update single input: `nix flake lock --update-input <name>`
# Inspect value of configuration option: `nixos-option <name>`
{
inputs = {
# Using nixpkgs unstable to:
# - Use hyprland via home-manager
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
# nixpkgs.url = "github:nixos/nixpkgs/nixos-23.05";
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
neovim.url = "github:neovim/neovim?dir=contrib";
neovim.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = inputs@{ self, nixpkgs, nixos-hardware, ... }: {
nixosConfigurations.framework = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs; };
modules = [
# https://github.com/NixOS/nixos-hardware/blob/master/framework
nixos-hardware.nixosModules.framework
./hosts/framework/configuration.nix
# Reuse `nixpkgs` input in the system-wide flake registry so commands
# such as `nix shell nixpkgs#<pkg>` don't have to re-download it.
{ nix.registry.nixpkgs.flake = nixpkgs; }
];
};
};
}