-
Notifications
You must be signed in to change notification settings - Fork 0
/
think.nix
61 lines (61 loc) · 1.75 KB
/
think.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
inputs @ { nixpkgs, classified, home-manager, lix-module, ... }: nixpkgs.lib.nixosSystem rec {
system = "x86_64-linux";
modules = [
# Lix instead of Nix
lix-module.nixosModules.default
# external imports
classified.nixosModules."${system}".default
home-manager.nixosModules.home-manager
# common stuff
./modules/nix.nix
# ./modules/kmscon.nix
./modules/users.nix
./modules/cli.nix
./modules/rust-dev.nix
./modules/misc-dev.nix
# desktop-specific stuff
./modules/desktop/locale.nix
./modules/desktop/fonts.nix
./modules/desktop/btrbk.nix
./modules/desktop/work-vpn.nix
./modules/desktop/jupyter.nix
./modules/desktop/security.nix
({ ... }: {
users.users.goldstein.extraGroups = [ "audio" "video" ];
boot.extraModprobeConfig = ''
options nvidia-drm modeset=1
'';
nixpkgs.overlays = [ (final: prev: {
sway-unwrapped = inputs.nixpkgs-wayland.packages.${final.system}.sway-unwrapped;
}) ];
})
# Doesn't work on Wayland :(
# ./modules/desktop/wired.nix
./modules/desktop/pipewire.nix
./modules/desktop/razer.nix
./modules/desktop/steam.nix
./modules/desktop/dev-tools.nix
./modules/desktop/misc-apps.nix
# I hate GNOME
({ ... }: {
programs.dconf.enable = true;
})
# machine-specific stuff
./modules/think/boot.nix
./modules/think/hardware.nix
./modules/think/partitions.nix
./modules/think/networking.nix
# home-manager
./modules/think/home-manager.nix
# misc stuff, keep short
({ ... }: {
system.stateVersion = "22.05";
virtualisation.podman.enable = true;
virtualisation.docker.enable = true;
})
];
specialArgs = {
inherit inputs;
root = ./.;
};
}