# # Specific system configuration settings for desktop # # flake.nix # ├─ ./hosts # │ └─ ./laptop # │ ├─ default.nix * # │ └─ hardware-configuration.nix # └─ ./modules # ├─ ./desktop # │ └─ ./hyprland # │ └─ hyprland.nix # ├─ ./modules # │ └─ ./programs # │ └─ waybar.nix # └─ ./hardware # └─ default.nix # { config, pkgs, user, ... }: { imports = # For now, if applying to other system, swap files [(import ./hardware-configuration.nix)] ++ # Current system hardware config @ /etc/nixos/hardware-configuration.nix [(import ../../modules/desktop/hyprland/default.nix)] ++ # Window Manager [(import ../../modules/desktop/virtualisation/docker.nix)] ++ # Docker (import ../../modules/hardware); # Hardware devices boot = { # Boot options kernelPackages = pkgs.linuxPackages_latest; loader = { # EFI Boot systemd-boot.enable = true; efi = { canTouchEfiVariables = true; efiSysMountPoint = "/boot"; }; timeout = 1; # Grub auto select time }; }; # hardware.sane = { # Used for scanning with Xsane # enable = false; # extraBackends = [ pkgs.sane-airscan ]; # }; # environment = { # systemPackages = with pkgs; [ # simple-scan # ]; # }; programs = { # No xbacklight, this is the alterantive dconf.enable = true; light.enable = true; }; services = { tlp.enable = true; # TLP and auto-cpufreq for power management #logind.lidSwitch = "ignore"; # Laptop does not go to sleep when lid is closed auto-cpufreq.enable = true; blueman.enable = true; printing = { # Printing and drivers for TS5300 enable = true; drivers = [ pkgs.gutenprint ]; }; avahi = { # Needed to find wireless printer enable = true; nssmdns = true; publish = { # Needed for detecting the scanner enable = true; addresses = true; userServices = true; }; }; #xserver = { # libinput = { # Trackpad support & gestures # touchpad = { # tapping = true; # scrollMethod = "twofinger"; # naturalScrolling = true; # The correct way of scrolling # accelProfile = "adaptive"; # Speed settings # #accelSpeed = "-0.5"; # disableWhileTyping = true; # }; # }; # resolutions = [ # { x = 1600; y = 920; } # { x = 1280; y = 720; } # { x = 1920; y = 1080; } # ]; #}; }; #temporary bluetooth fix # systemd.tmpfiles.rules = [ # "d /var/lib/bluetooth 700 root root - -" # ]; # systemd.targets."bluetooth".after = ["systemd-tmpfiles-setup.service"]; }