aboutsummaryrefslogtreecommitdiff
path: root/modules/hosts/adam/configuration.nix
blob: e82f88505432f2af1baf5848a7514bc409db030d (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
{
  flake.modules.nixos.adam =
    {
      pkgs,
      ...
    }:
    {
      boot = {
        kernelPackages = pkgs.linuxPackages_latest;
        kernelParams = [ "amd_pstate=active" ];
        kernelModules = [ "amdgpu" ];
        initrd.luks.devices."luks-803851e9-7fa8-4367-a927-0bb76d0fe830".device =
          "/dev/disk/by-uuid/803851e9-7fa8-4367-a927-0bb76d0fe830";
        loader = {
          timeout = 0;
          systemd-boot.enable = true;
          efi.canTouchEfiVariables = true;
        };
      };

      # Disable waiting for network to be online
      systemd.services.NetworkManager-wait-online.enable = false;

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

      # User configuration
      users.users.schererleander = {
        isNormalUser = true;
        shell = pkgs.zsh;
        ignoreShellProgramCheck = true;
        extraGroups = [
          "wheel"
          "networkmanager"
          "video"
          "input"
        ];
      };

      nix.settings.experimental-features = [
        "nix-command"
        "flakes"
      ];

      hardware.enableRedistributableFirmware = true;

      nixpkgs.config.allowUnfree = true;
      nixpkgs.hostPlatform = "x86_64-linux";
      system.stateVersion = "25.11";
    };
}