-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
81 lines (73 loc) · 2.27 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
{
inputs = {
nixpkgs.url = "nixpkgs/nixos-24.05"; # stable
unstable.url = "nixpkgs/nixos-unstable"; # unstable
home-manager = {
url = "github:nix-community/home-manager/release-24.05";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-index-database = {
url = "github:Mic92/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs";
};
externalHostsfile = {
url = "https://github.com/StevenBlack/hosts/raw/master/alternates/fakenews-gambling-porn/hosts";
flake = false;
};
stylix = {
url = "github:danth/stylix";
inputs.nixpkgs.follows = "nixpkgs";
inputs.home-manager.follows = "home-manager";
};
# FIXME
# blender-bin = "github:edolstra/nix-warez?dir=blender";
tree-sitter-idris.url = "path:/home/hofsiedge/Projects/fun/Idris2/tree-sitter-idris";
};
outputs =
{
self,
nixpkgs,
home-manager,
nix-index-database,
...
}@inputs:
{
nixosConfigurations.hofsiedge = nixpkgs.lib.nixosSystem rec {
system = "x86_64-linux";
specialArgs = {
inherit (inputs) externalHostsfile;
unstable = import inputs.unstable {
inherit system;
config.allowUnfree = true;
};
# FIXME
# blender-bin = import inputs.blender-bin {
# inherit system;
# };
tree-sitter-idris = inputs.tree-sitter-idris.packages.${system};
};
modules = [
{
# registries for `nix search`
nix.registry = {
# Pin registries so `nix search` doesn't download all the time.
stale.flake = inputs.nixpkgs;
unstable.flake = inputs.unstable;
# rolling.flake = inputs.unstable-small;
};
}
./configuration.nix
home-manager.nixosModules.home-manager
./home
# TODO: move to home-manager
# https://github.com/nix-community/nix-index-database#usage-in-home-manager
nix-index-database.nixosModules.nix-index
{
programs.nix-index-database.comma.enable = true;
programs.command-not-found.enable = false;
}
inputs.stylix.nixosModules.stylix
];
};
};
}