-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
executable file
·85 lines (76 loc) · 2.28 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
# flake.nix
{
inputs = {
# TODO: Try to move to stable version someday if packages not being packaged are not issue in future
# Main package repo unstable verrsion
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
# Allows for changing user configs
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
# A Wayland compositor
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
# Allows for workspaces to be split across monitors like DWM
hyprsplit = {
url = "github:shezdy/hyprsplit";
inputs.hyprland.follows = "hyprland";
};
#Hyprspace = {
# url = "github:KZDKM/Hyprspace";
# inputs.hyprland.follows = "hyprland";
#};
# Extra packages not in Nixpkgs
nur.url = "github:nix-community/NUR";
# Spotify customization
spicetify-nix.url = "github:MichaelPachec0/spicetify-nix";
# Host file for blocking ad websites among other things
hosts.url = "github:StevenBlack/hosts";
# A widget system for Wayland
ags.url = "github:Aylur/ags";
};
outputs = {
nixpkgs,
home-manager,
nur,
spicetify-nix,
hosts,
ags,
...
} @ inputs: let
system = "x86_64-linux";
in {
nixosConfigurations = {
nixos = nixpkgs.lib.nixosSystem {
specialArgs = {
inherit inputs;
};
system = "x86_64-linux";
modules = [
./configuration.nix
# Allows for home manager to be used
nur.nixosModules.nur
home-manager.nixosModules.home-manager
# TODO: Too dumb to figure out why this can't be seperated into it's own file, whatever...
hosts.nixosModule
{
networking.stevenBlackHosts = {
enable = true;
blockFakenews = false;
blockGambling = true;
blockPorn = false; # This is bit revealing isn't it..?
blockSocial = false;
};
}
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
sharedModules = [nur.hmModules.nur spicetify-nix.homeManagerModule inputs.ags.homeManagerModules.default];
};
}
];
};
};
};
}