-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathflake.nix
128 lines (116 loc) · 3.14 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
{
inputs = {
channableFishFile = {
url = "file+file:///home/curtis/dotfiles/.config/channable.fish";
flake = false;
};
nixpkgs = {
# url = "github:NixOS/nixpkgs?ref=7b9135d3ae24bf15ca0fac57f4114c99e28bec3b";
url = "flake:nixpkgs/nixos-unstable";
# url = "flake:nixpkgs/nixos-23.11";
};
flake-utils = {
url = "github:numtide/flake-utils";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nixgl = {
url = "github:guibou/nixGL";
inputs.flake-utils.follows = "flake-utils";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-rice = {
url = "github:bertof/nix-rice?ref=dddd03ed3c5e05c728b0df985f7af905b002f588";
};
tidal = {
url = "github:mitchmindtree/tidalcycles.nix";
};
musnix = {
url = "github:musnix/musnix";
};
gruvbox-tmTheme = {
url = "github:subnut/gruvbox-tmTheme";
flake = false;
};
wofi-themes = {
url = "github:joao-vitor-sr/wofi-themes-collection/540e247819fbf8116d73e4fd2e4b481a25d81353";
flake = false;
};
Pipshag_dotfiles_gruvbox = {
url = "github:Pipshag/dotfiles_gruvbox/5a9ffe19953bde48bb42a4164fb43eb915de0aeb";
flake = false;
};
fish-plugin-git = {
url = "github:jhillyerd/plugin-git";
flake = false;
};
fish-puffer = {
url = "github:nickeb96/puffer-fish";
flake = false;
};
fish-abbreviation-tips = {
url = "github:gazorby/fish-abbreviation-tips";
flake = false;
};
};
outputs =
{
self,
nixpkgs,
home-manager,
nix-rice,
nixgl,
...
}@inputs:
let
system = "x86_64-linux";
overlays = [
nix-rice.overlays.default
nixgl.overlay
];
pkgs = nixpkgs.legacyPackages.${system} // {
inherit overlays;
config = {
allowUnfree = true;
};
};
# Lifted from https://github.com/yoricksijsling/dotfiles
makeHomeConfiguration =
{
extraModules ? [ ],
}:
home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = {
# Pass all inputs to every module. It's a bit excessive, but allows us to easily refer
# to stuff like inputs.nixgl.
inherit inputs;
# The dotfiles argument always points to the flake root.
dotfiles = self;
};
modules = [ ] ++ extraModules;
};
in
{
inherit makeHomeConfiguration;
homeConfigurations = {
work = makeHomeConfiguration { extraModules = [ ./work.nix ]; };
personal = makeHomeConfiguration { extraModules = [ ./personal.nix ]; };
};
nixosConfigurations = {
personal = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./configuration.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
}
];
};
};
};
}