-
-
Notifications
You must be signed in to change notification settings - Fork 102
Expand file tree
/
Copy pathflake.nix
More file actions
55 lines (49 loc) · 1.74 KB
/
Copy pathflake.nix
File metadata and controls
55 lines (49 loc) · 1.74 KB
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
# flake.nix --- the heart of my dotfiles
#
# Author: Henrik Lissner <contact@henrik.io>
# URL: https://github.com/hlissner/dotfiles
# License: MIT
#
# Welcome to ground zero. Where the whole flake gets set up and all its modules
# are loaded.
{
description = "A grossly incandescent nixos config.";
inputs =
{
# Core dependecies
nixpkgs.url = "nixpkgs/nixos-unstable";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
agenix.url = "github:ryantm/agenix";
agenix.inputs.nixpkgs.follows = "nixpkgs";
quickshell.url = "github:quickshell-mirror/quickshell";
quickshell.inputs.nixpkgs.follows = "nixpkgs";
dms.url = "github:AvengeMedia/DankMaterialShell";
dms.inputs.nixpkgs.follows = "nixpkgs";
# Extras (imported directly by modules/hosts that need them)
emacs-overlay.url = "github:nix-community/emacs-overlay";
emacs-overlay.inputs.nixpkgs.follows = "nixpkgs";
nixos-hardware.url = "github:nixos/nixos-hardware";
};
outputs = inputs @ { self, nixpkgs, nixos-hardware, ... }:
let
args = {
inherit self;
inherit (nixpkgs) lib;
pkgs = import nixpkgs {};
};
lib = import ./lib args;
in
with builtins; with lib; mkFlake inputs {
systems = [ "x86_64-linux" "aarch64-linux" ];
inherit lib;
hosts = mapHosts ./hosts;
modules.default = import ./.;
apps.install = mkApp ./install.zsh;
devShells.default = import ./shell.nix;
checks = mapModules ./test import;
overlays = mapModules ./overlays import;
packages = mapModules ./packages import;
# templates = import ./templates args;
};
}