-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathflake.nix
35 lines (30 loc) · 848 Bytes
/
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
{
description = "My NixOS config flake";
outputs = inputs: let
pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux;
user = import ./modules/user {inherit pkgs;};
in {
nixosConfigurations = import ./hosts inputs;
devShells.x86_64-linux.default = pkgs.callPackage ./shell.nix {};
formatter.x86_64-linux = pkgs.alejandra;
packages.x86_64-linux = user.packages;
apps.x86_64-linux = {
default = {
type = "app";
program = "${user.packages.fish}/bin/fish";
};
helix = {
type = "app";
program = "${user.packages.helix}/bin/hx";
};
};
nixosModules = {
user = user.module;
};
};
inputs = {
# Unstable nixpkgs baby!
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
impermanence.url = "github:nix-community/impermanence";
};
}