-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
74 lines (61 loc) · 1.67 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
65
66
67
68
69
70
71
72
73
74
{
description = "ViZiD nixos flake configuration";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
nurpkgs.url = "github:nix-community/NUR";
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
flake-utils.url = "github:gytis-ivaskevicius/flake-utils-plus";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
vscode-ext.url = "github:nix-community/nix-vscode-extensions";
};
outputs =
{
self,
nixpkgs,
nurpkgs,
nixos-hardware,
flake-utils,
home-manager,
...
}@inputs:
let
pkgs = self.pkgs.x86_64-linux.nixpkgs;
modules = import ./modules { inherit flake-utils; };
in
with modules;
flake-utils.lib.mkFlake {
inherit self inputs;
supportedSystems = [ "x86_64-linux" ];
channelsConfig = {
allowUnfree = true;
allowBroken = true;
android_sdk.accept_license = true;
};
sharedOverlays = [ self.overlay ];
hostDefaults.modules = [
home-manager.nixosModules.home-manager
nurpkgs.nixosModules.nur
] ++ base;
hosts.t440p.modules = [
./hosts/t440p
nixos-hardware.nixosModules.lenovo-thinkpad-t440p
] ++ desktop-bspwm;
outputsBuilder =
channels: with channels.nixpkgs; {
devShell = mkShell {
packages = [
git
gnumake
age-plugin-openpgp-card
rage
openpgp-card-tools
];
};
};
formatter.x86_64-linux = pkgs.nixfmt-rfc-style;
overlay = import ./overlays inputs;
};
}