summaryrefslogtreecommitdiffstats
path: root/hosts/jonbox/default.nix
blob: 0f525cadfda1b7b8825b35f0e0f81cf25e0d410f (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
{
    inputs,
    lib,
    pkgs,
    ...
}: {
    #Filesystems
    fileSystems."/" =
      { device = "/dev/disk/by-uuid/83cafaff-8be3-477f-b13c-c47dafdf969d";
        fsType = "btrfs";
        options = [ "compress=zstd" "subvol=@" ];
      };
    
    fileSystems."/boot" =
      { device = "/dev/disk/by-uuid/40EA-5550";
        fsType = "vfat";
      };
    
    fileSystems."/mnt/jonshare" = {
      device = "homenas:/var/data/jon";
      fsType = "nfs";
    };
    
    fileSystems."/mnt/plexshare" = {
      device = "homenas:/var/data/plex";
      fsType = "nfs";
    };
    
    fileSystems."/mnt/share" = {
      device = "homenas:/var/data/shared";
      fsType = "nfs";
    };
    
    swapDevices =
    [
        { device = "/dev/disk/by-uuid/acfc7ea5-0787-4e05-bcf1-20b7adb0f35c"; }
    ];

    #Fonts
    fonts.packages = with pkgs; [
        fira-code
        fira-code-symbols
        font-awesome
        liberation_ttf
        noto-fonts
        noto-fonts-cjk
        noto-fonts-emoji
        (nerdfonts.override { fonts = [ "FiraCode" ]; } )
    ];

    modules = {
        device = {
            cpu = "intel";
            gpu = "nvidia";
            drive = "nvme";
            hasBluetooth = true;
        };
        desktop = {
            hyprland.enable = true;
            apps = {
                browsers.firefox.enable = true;
                games = {
                    enable = true;
                    steam.enable = true;
                };
                mpd.enable = true;
                flatpak.enable = true;
                newsboat.enable = true;
            };
        };
    };

    home.manager.wayland.windowManager.hyprland.extraConfig = ''
        monitor=DP-2,1920x1080,0x0,1
        monitor=HDMI-A-2,1920x1080,1920x0,1
    '';
}