summaryrefslogtreecommitdiffstats
path: root/hosts/jontop/default.nix
blob: d932fc77d0bb1beebf12d5fc75e2ad2956d037dc (plain) (blame)
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
{
    config,
    inputs,
    lib,
    pkgs,
    rootPath,
    ...
}: {
    #Filesystems
    fileSystems."/" =
      { device = "/dev/disk/by-uuid/72e455f9-4b10-4cb2-a8e4-cfe39c4a8d1f";
        fsType = "btrfs";
      };
    
    fileSystems."/boot" =
      { device = "/dev/disk/by-uuid/27F7-4AFD";
        fsType = "vfat";
      };
    
    swapDevices =
    [
        { device = "/dev/disk/by-uuid/4133a381-ab7d-4a25-9013-3f4b2d31bc5a"; }
    ];

    #Fonts
    fonts.packages = with pkgs; [
        fira-code
        fira-code-symbols
        font-awesome
        liberation_ttf
        noto-fonts
        noto-fonts-cjk-sans
        noto-fonts-color-emoji
        nerd-fonts.fira-code
        texlive.combined.scheme-full
    ];

    environment.systemPackages = [
        pkgs.man-pages
        pkgs.man-pages-posix
    ];
    documentation.dev.enable = true;

    boot = {
        kernelModules = [ "tp_smapi" ];
        extraModulePackages = with config.boot.kernelPackages; [ tp_smapi ];
    };

    modules = {
        hardware = {
            laptop.enable = true;
        };
        device = {
            cpu = "intel";
            gpu = "intel";
            drive = "ssd";
        };
        desktop = {
            niri.enable = true;
            apps = {
                browsers.librewolf.enable = true;
                games = {
                    enable = true;
                    steam.enable = true;
                };
                mpd.enable = false;
                flatpak.enable = true;
                newsboat.enable = true;
                virt-manager.enable = true;
            };
        };
    };

    programs.direnv.enable = true;
    virtualisation.docker.enable = true;

    home.packages = with pkgs; [
      cataclysm-dda
      (callPackage (rootPath + /packages/freeciv/default.nix) {})
      libreoffice
      hunspell hunspellDicts.en_US
      texliveMedium
      vscode
    ];
}