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;
77 # Enable the GNOME Desktop Environment.
78 # displayManager.gdm.enable = true;
79 # desktopManager.gnome.enable = true;
81 # displayManager.sddm.enable = true;
82 # desktopManager.budgie.enable = true;
84 # desktopManager.deepin.enable = true;
85 # displayManager.lightdm.enable = true;
87 # displayManager.gdm.enable = true;
88 # desktopManager.plasma5.enable = true;
91 defaultSession = "xfce+i3";
97 package = pkgs.qogir-theme;
101 package = pkgs.qogir-icon-theme;
104 name = "volantes_light_cursors";
105 package = pkgs.volantes-cursors;
108 background = "${wallpaper}";
113 xterm.enable = false;
120 windowManager.i3.enable = true;
121 windowManager.awesome.enable = true;
125 variant = "nodeadkeys";
126 options = "caps:ctrl_modifier";
128 excludePackages = [ pkgs.xterm ];
129 videoDrivers = ["amdgpu"];
130 # libinput.enable = true;
134 services.autorandr = {
138 "set-wallpaper" = "set-wallpaper";
143 services.syncthing = {
146 dataDir = "/home/ps/sync";
147 configDir = "/home/ps/.config/syncthing";
150 services.udev.extraRules = ''
151 KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{serial}=="*vial:f64c2b3c*", MODE="0660", GROUP="users", TAG+="uaccess", TAG+="udev-acl"
155 hardware.graphics.enable = true;
157 # services.logind = {
158 # extraConfig = "HandlePowerKey=suspend";
159 # lidSwitch = "suspend";
162 # Configure console keymap
163 console.keyMap = "de-latin1-nodeadkeys";
165 # Enable CUPS to print documents.
166 services.printing.enable = true;
167 services.printing.drivers = [ pkgs.gutenprint ];
170 hardware.bluetooth.enable = true;
171 hardware.bluetooth.powerOnBoot = false;
172 services.blueman.enable = true;
174 # Enable sound with pipewire.
175 hardware.pulseaudio.enable = false;
176 security.rtkit.enable = true;
177 services.pipewire = {
180 alsa.support32Bit = true;
182 # If you want to use JACK applications, uncomment this
185 # use the example session manager (no others are packaged yet so this is enabled by default,
186 # no need to redefine it in your config for now)
187 #media-session.enable = true;
193 # Enable touchpad support (enabled default in most desktopManager).
194 # services.libinput.touchpad = {
195 # naturalScrolling = false;
198 # Define a user account. Don't forget to set a password with ‘passwd’.
199 users.groups.ssh = {};
203 description = "Patrick";
205 extraGroups = [ "networkmanager" "wheel" "dialout" "jackaudio" ];
221 initialPassword = "chirp";
225 security.polkit.enable = true;
226 security.sudo.wheelNeedsPassword = false;
229 backupFileExtension = "backup";
235 # "ps" = import ./home.nix;
237 users.ps.imports = [ ./home.nix ];
240 # Enable automatic login for the user.
241 # services.displayManager.autoLogin.enable = true;
242 # services.displayManager.autoLogin.user = "ps";
243 # services.getty.autologinUser = "ps";
245 # Workaround for GNOME autologin: https://github.com/NixOS/nixpkgs/issues/103746#issuecomment-945091229
246 # systemd.services."getty@tty1".enable = false;
247 # systemd.services."autovt@tty1".enable = false;
249 # Allow unfree packages
250 nixpkgs.config.allowUnfree = true;
252 # List packages installed in system profile. To search, run:
254 environment.systemPackages = with pkgs; [
255 args.inputs.nixpkgs-unstable.legacyPackages.${pkgs.system}.zig
256 args.inputs.nixpkgs-unstable.legacyPackages.${pkgs.system}.zls
257 args.inputs.psch-flakes.packages.${pkgs.system}.resetmsmice
258 vim wget file git kitty i3 gdb
269 xfce.xfce4-pulseaudio-plugin
270 # xfce.xfce4-verve-plugin
271 xfce.xfce4-notes-plugin
272 # xfce.xfce4-timer-plugin
273 # xfce.xfce4-windowck-plugin
274 xfce.thunar-archive-plugin
275 # xfce.xfce4-i3-workspaces-plugin
276 # xfce.xfce4-xkb-plugin
277 xfce.xfce4-whiskermenu-plugin
281 programs.xfconf.enable = true;
282 programs.nix-ld.enable = true;
284 services.fwupd.enable = true;
286 # Some programs need SUID wrappers, can be configured further or are
287 # started in user sessions.
288 # programs.mtr.enable = true;
289 # programs.gnupg.agent = {
291 # enableSSHSupport = true;
294 # List services that you want to enable:
296 # Enable the OpenSSH daemon.
301 PasswordAuthentication = false;
302 PermitRootLogin = "no";
304 authorizedKeysCommand =
305 let keys = pkgs.writers.writePython3Bin "keys" {} ''
314 authorizedKeysCommandUser = "ps";
317 # Open ports in the firewall.
318 networking.firewall.allowedTCPPorts = [ 22 1234 5900 6011 6021 6022 8080 53317 ];
319 networking.firewall.allowedUDPPorts = [ 5901 53317 ];
320 # Or disable the firewall altogether.
321 # networking.firewall.enable = false;
323 # This value determines the NixOS release from which the default
324 # settings for stateful data, like file locations and database versions
325 # on your system were taken. It‘s perfectly fine and recommended to leave
326 # this value at the release version of the first install of this system.
327 # Before changing this value read the documentation for this option
328 # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
329 system.stateVersion = "24.05"; # Did you read the comment?