-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
114 lines (98 loc) · 2.95 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
106
107
108
109
110
111
112
113
114
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nix-index-database = {
url = "github:nix-community/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-alien = {
url = "github:thiagokokada/nix-alien";
inputs.nixpkgs.follows = "nixpkgs";
};
# Home manager
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
# snowfall
snowfall-lib = {
url = "github:snowfallorg/lib";
inputs.nixpkgs.follows = "nixpkgs";
};
# hyprland
hyprland = {
type = "git";
url = "https://github.com/hyprwm/Hyprland";
submodules = true;
};
hyprland-plugins = {
url = "github:hyprwm/hyprland-plugins";
inputs.hyprland.follows = "hyprland";
};
hyprland-contrib.url = "github:hyprwm/contrib";
hyprlock = {
url = "github:hyprwm/Hyprlock";
inputs.nixpkgs.follows = "hyprland/nixpkgs";
};
hypridle = {
url = "github:hyprwm/Hypridle";
inputs.nixpkgs.follows = "hyprland/nixpkgs";
};
# spicetify
# spicetify-nix = {
# url = "github:the-argus/spicetify-nix";
# inputs.nixpkgs.follows = "nixpkgs";
# };
anyrun = {
url = "github:anyrun-org/anyrun";
inputs.nixpkgs.follows = "nixpkgs";
};
hardware.url = "github:nixos/nixos-hardware";
razer-laptop-control.url = "github:mardukpill/razer-laptop-control-no-dkms";
nixvim.url = "github:nix-community/nixvim";
swww.url = "github:LGFae/swww";
nix-colors.url = "github:misterio77/nix-colors";
};
outputs =
inputs:
let
inherit (inputs) snowfall-lib;
lib = snowfall-lib.mkLib {
inherit inputs;
src = ./.;
snowfall = {
namespace = "dotties";
meta = {
# for use with Frost
name = "dotties";
title = "dotties";
};
};
};
in
lib.mkFlake {
channels-config = {
allowUnfree = true;
};
homes.modules = with inputs; [
nixvim.homeManagerModules.nixvim
# spicetify-nix.homeManagerModules.default
nix-colors.homeManagerModules.default
anyrun.homeManagerModules.default
];
overlays = with inputs; [ nix-alien.overlays.default ];
systems.modules.nixos = with inputs; [
home-manager.nixosModules.home-manager
razer-laptop-control.nixosModules.default
nix-index-database.nixosModules.nix-index
];
systems.hosts.blade.modules = with inputs; [
hardware.nixosModules.common-cpu-intel
hardware.nixosModules.common-pc-laptop
hardware.nixosModules.common-pc-laptop-ssd
];
systems.hosts.stirps.modules = with inputs; [ hardware.nixosModules.common-pc-laptop ];
# deploy = lib.mkDeploy { inherit (inputs) self; };
outputs-builder = channels: { formatter = channels.nixpkgs.nixfmt-rfc-style; };
};
}