-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
106 lines (105 loc) · 3.33 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
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nur.url = "github:nix-community/NUR";
stylix.url = "github:SomeGuyNamedMy/stylix/hyprland-support";
hyprland = {
url = "github:hyprwm/Hyprland";
inputs.nixpkgs.follows = "nixpkgs";
};
emacs-overlay.url = "github:nix-community/emacs-overlay";
idris.url = "github:/idris-lang/Idris2";
};
outputs = { self, nixpkgs, home-manager, nur, stylix, hyprland, emacs-overlay, idris, ...}:
let
pkgs = nixpkgs.legacyPackages.x86_64-linux;
shared-modules = [
stylix.nixosModules.stylix
home-manager.nixosModules.home-manager
{
stylix.image = ./resources/wallpapers/raison-detre.jpg;
stylix.polarity = "dark";
stylix.fonts = {
serif = {
package = pkgs.dejavu_fonts;
name = "DejaVu Serif";
};
sansSerif = {
package = pkgs.dejavu_fonts;
name = "DejaVu Sans";
};
monospace = {
package = pkgs.dejavu_fonts;
name = "DejaVu Sans Mono";
};
sizes = {
desktop = 12;
applications = 15;
terminal = 15;
popups = 12;
};
};
stylix.targets = {
grub.useImage = true;
};
nixpkgs.overlays = [
(import emacs-overlay)
(super: self: {
emacsPackages.idris2-mode = idris.packages.x86_64-linux.idris2-mode;
})
];
home-manager.users.mason = {
imports = [
hyprland.homeManagerModules.default
nur.hmModules.nur
./users/may/desktop.nix
./users/may/kakoune.nix
./users/may/media.nix
./users/may/web.nix
./users/may/packages.nix
./users/may/programming-env.nix
./users/may/shell.nix
];
stylix.targets.waybar = {
enableLeftBackColors = true;
enableRightBackColors = true;
};
stylix.opacity = {
terminal = 0.90;
applications = 0.90;
popups = 0.90;
desktop = 0.90;
};
nixpkgs.overlays = [
(import emacs-overlay)
];
home = {
stateVersion = "22.11";
username = "mason";
homeDirectory = "/home/mason";
};
};
}
./systems/configuration.nix
./systems/boot.nix
./systems/packages.nix
./systems/virtualisation.nix
./systems/general-hardware.nix
];
in {
nixosConfigurations.flex = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = shared-modules ++ [ ./systems/flex/flex-hardware.nix ];
extraArgs = {inherit stylix; };
};
nixosConfigurations.desktop = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = shared-modules ++ [ ./systems/desktop/desktop-hardware.nix ];
extraArgs = {inherit stylix; };
};
};
}