-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
105 lines (84 loc) · 2.84 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
{
description = "Full Flake Panic!";
inputs = {
# nixpkgs = { url = "github:nixos/nixpkgs/nixos-23.05"; };
nixpkgs = { url = "github:nixos/nixpkgs/nixos-unstable"; };
nixpkgs-unstable = { url = "github:nixos/nixpkgs/nixos-unstable"; };
nixpkgs-pkgs-unstable = { url = "github:nixos/nixpkgs/nixpkgs-unstable"; };
nixpkgs-master = { url = "github:nixos/nixpkgs/master"; };
# disabling this cause I didn't have a ~/gits/nixpkgs lying around
#nixpkgs-local = { url = "/home/felix/gits/nixpkgs"; };
nixpkgs-local = { url = "github:nixos/nixpkgs/nixos-23.05"; };
# for emacsGcc; see https://gist.github.com/mjlbach/179cf58e1b6f5afcb9a99d4aaf54f549
emacs-overlay = { url = "github:nix-community/emacs-overlay"; };
nixos-hardware = { url = "github:NixOS/nixos-hardware"; };
home-manager = {
# url = "github:nix-community/home-manager/release-23.05";
url = "github:nix-community/home-manager";
inputs = { nixpkgs.follows = "nixpkgs"; };
};
nix-alien = {
url = "github:thiagokokada/nix-alien";
};
hyprland = {
url = "github:hyprwm/Hyprland";
};
fish-foreign-env = {
url = "github:oh-my-fish/plugin-foreign-env";
flake = false;
};
fish-puffer-fish = {
url = "github:nickeb96/puffer-fish";
flake = false;
};
fish-tide = {
url = "github:IlanCosman/tide/7f41dd24d815c16e85560e1e6a28b03203e2bfe";
flake = false;
};
doom-emacs = {
url = "github:hlissner/doom-emacs";
flake = false;
};
wezterm-everforest = {
url = "git+https://git.sr.ht/~maksim/wezterm-everforest";
flake = false;
};
wezterm-embark = {
url = "github:dmshvetsov/wezterm-embark-theme";
flake = false;
};
};
outputs = { self, nixpkgs, ... }@inputs:
let
# base modules that will commonly be used by all systems
baseModules = [
# core stuff (overlays, nix config, flake registry, nix path, etc.)
./modules/core.nix
# `lib.my`
./modules/lib-my.nix
# load cachix caches; generated through `cachix use -m nixos <cache-name>`
./cachix.nix
];
system = "x86_64-linux";
in
{
nixosConfigurations.nixos-home = nixpkgs.lib.nixosSystem {
inherit system;
# forward flake-inputs to module arguments
specialArgs = { flake-inputs = inputs; inherit system; };
modules = baseModules ++ [
# "draw the rest of the owl"
./hosts/nixos-home
];
};
nixosConfigurations.nixos-work = nixpkgs.lib.nixosSystem {
inherit system;
# forward flake-inputs to module arguments
specialArgs = { flake-inputs = inputs; inherit system; };
modules = baseModules ++ [
# "draw the rest of the owl"
./hosts/nixos-work
];
};
};
}