1 # Edit this configuration file to define what should be installed on
2 # your system. Help is available in the configuration.nix(5) man page
3 # and in the NixOS manual (accessible by running ‘nixos-help’).
5 { config, pkgs, inputs, lib, ... } @ args:
9 # tuigreet = "${pkgs.greetd.tuigreet}/bin/tuigreet";
10 # session = "${pkgs.sway}/bin/sway";
12 wallpaper = pkgs.fetchurl {
13 url = "https://w.wallhaven.cc/full/ex/wallhaven-exrqrr.jpg";
14 sha256 = "sha256-RYN8KwJPDMfxrcosbpmjON0Y+I58IhB1Ke36LdohsxA=";
20 [ # Include the results of the hardware scan.
21 ./hardware-configuration.nix
22 inputs.home-manager.nixosModules.default
26 boot.tmp.cleanOnBoot = true;
27 boot.loader.systemd-boot.enable = true;
28 boot.loader.efi.canTouchEfiVariables = true;
29 boot.plymouth.enable = true;
30 boot.plymouth.theme = "bgrt";
31 boot.initrd.verbose = false;
32 boot.initrd.systemd.enable = true;
33 boot.initrd.kernelModules = [ "amdgpu" ];
34 boot.consoleLogLevel = 0;
35 boot.kernelPackages = pkgs.linuxPackages_latest;
36 boot.kernelParams = [ "quiet" "udev.log_level=0" "amdgpu.runpm=0" ];
38 networking.hostName = "nixos"; # Define your hostname.
39 # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
41 nix.settings.experimental-features = [ "nix-command" "flakes" ];
42 nix.package = pkgs.nixVersions.nix_2_28;
44 # Configure network proxy if necessary
45 # networking.proxy.default = "http://user:password@proxy:port/";
46 # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
49 networking.networkmanager.enable = true;
52 time.timeZone = "Europe/Berlin";
54 # Select internationalisation properties.
55 i18n.defaultLocale = "de_DE.UTF-8";
57 i18n.extraLocaleSettings = {
58 LC_ADDRESS = "de_DE.UTF-8";
59 LC_IDENTIFICATION = "de_DE.UTF-8";
60 LC_MEASUREMENT = "de_DE.UTF-8";
61 LC_MONETARY = "de_DE.UTF-8";
62 LC_NAME = "de_DE.UTF-8";
63 LC_NUMERIC = "de_DE.UTF-8";
64 LC_PAPER = "de_DE.UTF-8";
65 LC_TELEPHONE = "de_DE.UTF-8";
66 LC_TIME = "de_DE.UTF-8";
69 programs.dconf.enable = true;
70 programs.steam.enable = true;
78 # Enable the GNOME Desktop Environment.
79 # displayManager.gdm.enable = true;
80 # desktopManager.gnome.enable = true;
82 # displayManager.sddm.enable = true;
83 # desktopManager.budgie.enable = true;
85 # desktopManager.deepin.enable = true;
86 # displayManager.lightdm.enable = true;
88 # displayManager.gdm.enable = true;
89 # desktopManager.plasma5.enable = true;
92 defaultSession = "xfce+i3";
98 package = pkgs.qogir-theme;
102 package = pkgs.qogir-icon-theme;
105 name = "volantes_light_cursors";
106 package = pkgs.volantes-cursors;
109 background = "${wallpaper}";
114 xterm.enable = false;
121 windowManager.i3.enable = true;
122 windowManager.awesome.enable = true;
126 variant = "nodeadkeys";
127 options = "caps:ctrl_modifier";
129 excludePackages = [ pkgs.xterm ];
130 videoDrivers = ["amdgpu"];
131 # libinput.enable = true;
135 services.autorandr = {
140 "set-wallpaper" = "set-wallpaper";
145 services.syncthing = {
148 dataDir = "/home/ps/sync";
149 configDir = "/home/ps/.config/syncthing";
152 services.udev.extraRules = ''
153 KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{serial}=="*vial:f64c2b3c*", MODE="0660", GROUP="users", TAG+="uaccess", TAG+="udev-acl"
157 # hardware.graphics.enable = true;
166 support32Bit.enable = true;
170 # services.logind = {
171 # extraConfig = "HandlePowerKey=suspend";
172 # lidSwitch = "suspend";
175 # Configure console keymap
176 console.keyMap = "de-latin1-nodeadkeys";
178 # Enable CUPS to print documents.
179 services.printing.enable = true;
180 services.printing.drivers = [ pkgs.gutenprint ];
183 hardware.bluetooth.enable = true;
184 hardware.bluetooth.powerOnBoot = false;
185 services.blueman.enable = true;
187 # Enable sound with pipewire.
188 hardware.pulseaudio.enable = false;
189 security.rtkit.enable = true;
190 services.pipewire = {
193 alsa.support32Bit = true;
195 # If you want to use JACK applications, uncomment this
198 # use the example session manager (no others are packaged yet so this is enabled by default,
199 # no need to redefine it in your config for now)
200 #media-session.enable = true;
206 # Enable touchpad support (enabled default in most desktopManager).
207 # services.libinput.touchpad = {
208 # naturalScrolling = false;
211 # Define a user account. Don't forget to set a password with ‘passwd’.
212 users.groups.ssh = {};
216 description = "Patrick";
218 extraGroups = [ "networkmanager" "wheel" "dialout" "jackaudio" ];
234 initialPassword = "chirp";
238 security.polkit.enable = true;
239 security.sudo.wheelNeedsPassword = false;
242 backupFileExtension = "backup";
248 # "ps" = import ./home.nix;
250 users.ps.imports = [ ./home.nix ];
253 # Enable automatic login for the user.
254 # services.displayManager.autoLogin.enable = true;
255 # services.displayManager.autoLogin.user = "ps";
256 # services.getty.autologinUser = "ps";
258 # Workaround for GNOME autologin: https://github.com/NixOS/nixpkgs/issues/103746#issuecomment-945091229
259 # systemd.services."getty@tty1".enable = false;
260 # systemd.services."autovt@tty1".enable = false;
262 # Allow unfree packages
263 nixpkgs.config.allowUnfree = true;
265 # List packages installed in system profile. To search, run:
267 environment.systemPackages = with pkgs; [
268 args.inputs.nixpkgs-unstable.legacyPackages.${pkgs.system}.zig
269 args.inputs.nixpkgs-unstable.legacyPackages.${pkgs.system}.zls
270 args.inputs.psch-flakes.packages.${pkgs.system}.resetmsmice
271 vim wget file git kitty i3 gdb
282 xfce.xfce4-pulseaudio-plugin
283 # xfce.xfce4-verve-plugin
284 xfce.xfce4-notes-plugin
285 # xfce.xfce4-timer-plugin
286 # xfce.xfce4-windowck-plugin
287 xfce.thunar-archive-plugin
288 # xfce.xfce4-i3-workspaces-plugin
289 # xfce.xfce4-xkb-plugin
290 xfce.xfce4-whiskermenu-plugin
294 programs.xfconf.enable = true;
295 programs.nix-ld.enable = true;
297 services.fwupd.enable = true;
299 # Some programs need SUID wrappers, can be configured further or are
300 # started in user sessions.
301 # programs.mtr.enable = true;
302 # programs.gnupg.agent = {
304 # enableSSHSupport = true;
307 # List services that you want to enable:
309 # Enable the OpenSSH daemon.
314 PasswordAuthentication = false;
315 PermitRootLogin = "no";
317 authorizedKeysCommand =
318 let keys = pkgs.writers.writePython3Bin "keys" {} ''
327 authorizedKeysCommandUser = "ps";
330 # Open ports in the firewall.
331 networking.firewall.allowedTCPPorts = [ 22 1234 5900 6011 6021 6022 8080 53317 ];
332 networking.firewall.allowedUDPPorts = [ 5901 53317 ];
333 # Or disable the firewall altogether.
334 # networking.firewall.enable = false;
336 # This value determines the NixOS release from which the default
337 # settings for stateful data, like file locations and database versions
338 # on your system were taken. It‘s perfectly fine and recommended to leave
339 # this value at the release version of the first install of this system.
340 # Before changing this value read the documentation for this option
341 # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
342 system.stateVersion = "24.05"; # Did you read the comment?