refactor: cleanup configs, unify session handling

- flake.nix:
  - Close braces formatting for `allowUnfree`
  - Remove per-user `custom.sessionType` modules
- home-manager:
  - home.nix: remove unused apps (bambu-studio, hydralauncher, keymapp, etc.)
    - drop librespot service
    - add waydroid
    - fix kitty font_family spacing
  - gnome: add gnome-tweaks and appindicator extension
  - vim: update nixvim module import path
  - zsh: drop sessionType option and conditional aliases
    - hardcode wl-copy/wl-paste as pbcopy/pbpaste
- hyprland: style fixes in braces, spacing, keybind comments
- hosts/Nixstation:
  - remove gnome-session and redundant tweaks
  - remove env vars NIXOS_HOST / NIXOS_DE
  - enable virtualization (libvirtd, spiceUSBRedirection, vmware.host=false)
- hardware-configuration: reformat fileSystems definitions
- common/nvidia:
  - remove explicit kernelPackages override
  - ensure xserver.enable=true and GNOME/GDM config intact
- users/thiago: reorder and regroup extraGroups list
This commit is contained in:
Thiago Sposito 2025-08-25 20:36:59 -03:00
parent ea25b5b515
commit 95e94196b2
11 changed files with 70 additions and 133 deletions

View file

@ -55,7 +55,7 @@
programs.zsh.enable = true;
services = {
pcscd.enable = true;
# xserver.displayManager.sessionCommands =
# xserver.displayManager.sessionCommands =
# "${pkgs.xorg.xmodmap}/bin/xmodmap -e 'keycode 64 = Alt_L'";
};

View file

@ -6,9 +6,8 @@
# ./passthrough.nix
];
boot.kernelModules = [ "nvidia" ];
boot.kernelParams = ["nvidia-drm.modset=1"];
boot.blacklistedKernelModules = ["nouveau"];
boot.kernelPackages = pkgs.linuxPackages_6_12;
boot.kernelParams = [ "nvidia-drm.modset=1" ];
boot.blacklistedKernelModules = [ "nouveau" ];
hardware = {
graphics = {
enable = true;
@ -29,13 +28,14 @@
};
services = {
desktopManager.gnome.enable = true;
displayManager = {
services.xserver.enable = true;
desktopManager.gnome.enable = true;
displayManager = {
gdm.enable = true;
gdm.wayland = true;
defaultSession = "gnome";
};
xserver.videoDrivers = [ "nvidia" ];
};
xserver.videoDrivers = [ "nvidia" ];
};
nixpkgs.config.cudaSupport = true;

View file

@ -7,25 +7,24 @@ in
isNormalUser = true;
initialPassword = "changeme";
extraGroups =
[
"fuse"
"networkmanager"
"wheel"
"scard"
]
++ ifTheyExist [
"wireshark"
"i2c"
"docker"
"git"
"libvirtd"
"libvirt"
"video"
"kvm"
"scanner"
"photos"
];
extraGroups = [
"fuse"
"networkmanager"
"scard"
"wheel"
]
++ ifTheyExist [
"docker"
"git"
"i2c"
"kvm"
"libvirt"
"libvirtd"
"photos"
"scanner"
"video"
"wireshark"
];
openssh.authorizedKeys.keyFiles = [
(builtins.fetchurl {
url = "https://github.com/sposito.keys";