summaryrefslogtreecommitdiff
path: root/hosts/desktop/configuration.nix
blob: 17dae8e1b2cb9018498187bdf3a4436105831163 (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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
{ inputs, pkgs, ... }:
{
  nixpkgs.config.allowUnfree = true;

  imports =
    [
      ./hardware-configuration.nix
      ../../modules/greet.nix
      ../../modules/virtualization.nix
      ../../modules/boot.nix
      ../../modules/audio.nix
      ../../modules/networking.nix
      ../../modules/scx.nix
      ../../modules/tor.nix
      ../../modules/hyprland.nix
      ../../modules/niri.nix
      ../../modules/dwl.nix
      inputs.home-manager.nixosModules.home-manager
      inputs.chaotic.nixosModules.default
    ];

  home-manager = {
    extraSpecialArgs = { inherit inputs; };
    users = {
      "adam" = import ../../home/home.nix;
    };
    backupFileExtension = "bak";
    useGlobalPkgs = true;
    useUserPackages = true;
  };

  services.spotifyd = {
    enable = true;
  };

  programs.gnupg.agent = {
    enable = true;
    enableSSHSupport = true;
    pinentryPackage = pkgs.pinentry-curses;
  };

programs.steam = {
  enable = true;
  localNetworkGameTransfers.openFirewall = true;
  dedicatedServer.openFirewall = true;
  remotePlay.openFirewall = false;
  gamescopeSession.enable = true;
  extest.enable = true;
  protontricks.enable = true;

  extraCompatPackages = with pkgs; [
    proton-cachyos_x86_64_v4
    proton-ge-custom
  ];
};

hardware.cpu.amd.updateMicrocode = true;

services.xserver.videoDrivers = [ "amdgpu" ];
hardware.sensor.iio.enable = true;
services.lact.enable = true;
environment.variables.AMD_VULKAN_ICD = "RADV";
hardware.amdgpu.initrd.enable = true;

 nix.settings = {
   trusted-users = [ "root" "adam" ];
   experimental-features = [ "nix-command" "flakes" ];
 };

  hardware = {
    enableRedistributableFirmware = true;
    graphics = {
      enable = true;
      enable32Bit = true;
      extraPackages = with pkgs; [vulkan-tools amdvlk];
    };
  };

chaotic = {
  mesa-git = {
    enable = true;
    fallbackSpecialisation = false;
  };
};

services.dbus.enable = true;

xdg.portal = {
  enable = true;
  wlr.enable = true;
};

time.timeZone = "Europe/Warsaw";

  # Select internationalisation properties.
  # i18n.defaultLocale = "en_US.UTF-8";
  # console = {
  #   font = "Lat2-Terminus16";
  #   keyMap = "pl";
  #   useXkbConfig = true; # use xkb.options in tty.
  # };

environment.sessionVariables = {
  NH_FLAKE = "/etc/nixos";
  NIXOS_OZONE_WL = "1";
  MOZ_ENABLE_WAYLAND = "1";
  GDK_BACKEND = "wayland";
  QT_QPA_PLATFORM = "wayland";
  ELECTRON_ENABLE_WAYLAND = "1";
  };

    programs.fish.enable = true;

    users.users.adam = {
      isNormalUser = true;
      extraGroups = [ "wheel" "input" ];
      home = "/home/adam";
      shell = pkgs.fish;
   };

   environment.systemPackages = with pkgs; [
    swaybg
    swaylock-effects
    swayidle
    fuzzel
    bemenu
    helvum

    wineWowPackages.waylandFull
    winetricks
    tuigreet
    linux-firmware
    dbus 
    nh
    gamemode
    mangohud
    grimblast
    wl-clipboard
    nix-output-monitor
    nvd
    rivalcfg
    easyeffects
    lutris
   ];

  fonts.packages = with pkgs; [
    nerd-fonts.jetbrains-mono 
    nerd-fonts.fira-mono
    nerd-fonts.fira-code
];

system.stateVersion = "25.05";
}