aboutsummaryrefslogtreecommitdiff
path: root/hosts/adam/configuration.nix
blob: 4c8ea217821a37bc9d8326cc1ab9845c2de1cd1f (plain)
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
107
108
109
110
{
  pkgs,
  username,
  ...
}:

{
  imports = [
    ./hardware-configuration.nix
  ];

  boot = {
    kernelPackages = pkgs.linuxPackages_latest;
    kernelParams = [
      "amd_pstate=active"
      "quiet"
      "splash"
      "boot.shell_on_fail"
      "udev.log_priority=3"
      "rd.systemd.show_status=auto"
    ];
    initrd = {
      luks.devices."luks-803851e9-7fa8-4367-a927-0bb76d0fe830".device =
        "/dev/disk/by-uuid/803851e9-7fa8-4367-a927-0bb76d0fe830";
    };
    consoleLogLevel = 3;
    loader = {
      timeout = 0;
      systemd-boot.enable = true;
      efi.canTouchEfiVariables = true;
      systemd-boot.consoleMode = "max";
    };
    plymouth = {
      enable = true;
      theme = "lone";
      themePackages = with pkgs; [
        (adi1090x-plymouth-themes.override {
          selected_themes = [ "lone" ];
        })
      ];
    };
  };

  # Graphics
  hardware.graphics = {
    enable = true;
    enable32Bit = true;
  };

  hardware.bluetooth = {
    enable = true;
    powerOnBoot = true;
    settings = {
      General = {
        Experimental = true;
        FastConnectable = true;
      };
      Policy = {
        AutoEnable = true;
      };
    };
  };

  programs.dconf.enable = true;

  nx = {
    desktop.kde.enable = true;

    user.${username} = {
      stateVersion = "25.11";
      packages = with pkgs; [
        imv
        mpv
        firefox
        zoxide
      ];
      shellAliases = {
        open = "xdg-open";
      };

      nx = {
        terminal.defaultShell = "zsh";

        editors.neovim = {
          enable = true;
          langs = {
            python = true;
            go = true;
            java = true;
            latex = true;
          };
        };
        git.enable = true;
        cli.opencode.enable = true;
        media = {
          spicetify.enable = true;
          nixcord.enable = true;
        };
        productivity = {
          nextcloud-client.enable = true;
          obsidian.enable = true;
          latex.enable = true;
          anki.enable = true;
        };
      };
    };
  };

  system.stateVersion = "25.11";
}