update nixos configs

- bin/screens: line to fix touchscreen rotation
- add zathura config file (zathurarc)
- nixos:
  - rearrange config files reusing most of configs in common-configuration.nix
  - add chuwi-configuration.nix
This commit is contained in:
2025-01-25 19:25:09 +01:00
parent 7319f95949
commit 55b362f88f
12 changed files with 143 additions and 102 deletions

View File

@@ -21,6 +21,28 @@
LC_TIME = "es_ES.UTF-8";
};
services.displayManager = {
defaultSession = "none+i3";
};
services.xserver = {
xkb = { # Configure keymap in X11
layout = "us";
variant = "";
};
enable=true;
#displayManager = {
# defaultSession = "none+i3";
#};
windowManager.i3 = {
enable=true;
extraPackages = with pkgs; [
dmenu
i3status
i3lock
];
};
};
environment.systemPackages = with pkgs; [
# utilities
@@ -41,6 +63,7 @@
gnutar
xorg.xmodmap # keyboard remapping
xfce.xfce4-screenshooter
pulseaudio
# code editors
vim
@@ -63,6 +86,11 @@
xfce.xfconf # needed to save preferences of thunar
xfce.ristretto
xfce.tumbler # for thumbnails of imgs
# for detecting usbs:
xfce.thunar-volman
gvfs
polkit_gnome
udiskie
# media
pavucontrol
@@ -93,7 +121,7 @@
clang
clang-tools
pkg-config
openssl
openssl.dev
stdenv
rustup
wabt # wasm binary toolkit
@@ -129,8 +157,21 @@
users.defaultUserShell = pkgs.zsh;
environment.shells = with pkgs; [zsh];
# set default pdf reader to zathura
xdg.mime.enable=true;
environment.sessionVariables = {
BROWSER = "zathura";
};
xdg.mime.defaultApplications = {
"application/pdf" = "zathura";
};
# gvfs needed for Thunar to detect external disks
services.gvfs.enable = true;
# bluetooth related
hardware.bluetooth.enable = true;
services.blueman.enable = true;
#hardware.pulseaudio.enable = true;
}