From 1b6e2daeef4417df328e49b27f4920cee63ae0f6 Mon Sep 17 00:00:00 2001 From: mjallen18 Date: Sat, 8 Feb 2025 18:41:55 -0600 Subject: [PATCH] temp --- hosts/deck/configuration.nix | 66 ++++++++++++++++++++++++++++-------- 1 file changed, 52 insertions(+), 14 deletions(-) diff --git a/hosts/deck/configuration.nix b/hosts/deck/configuration.nix index 1024314..57a35f6 100644 --- a/hosts/deck/configuration.nix +++ b/hosts/deck/configuration.nix @@ -30,18 +30,17 @@ optimise.automatic = lib.mkDefault true; }; - networking.hostName = "steamdeck"; - networking.networkmanager.enable = true; # Easiest to use and most distros use this by default. + networking = { + hostName = "steamdeck"; + networkmanager = { + enable = true; + wifi.powersave = lib.mkDefault false; + settings.connectivity.uri = lib.mkDefault "http://nmcheck.gnome.org/check_network_status.txt"; + }; + }; # Set your time zone. time.timeZone = "America/Chicago"; - - # Enable the X11 windowing system. - services.xserver.enable = false; - - # Enable the Plasma 5 Desktop Environment. - services.xserver.displayManager.sddm.enable = false; - services.xserver.desktopManager.plasma5.enable = false; services.desktopManager.plasma6 = { enable = true; @@ -61,13 +60,52 @@ ]; }; + programs.gamemode.enable = lib.mkDefault true; + + services = { + flatpak.enable = true; + + btrfs = { + autoScrub.enable = lib.mkDefault true; + autoScrub.fileSystems = lib.mkDefault [ + "/nix" + "/root" + "/etc" + "/var/log" + "/home" + ]; + }; + }; + + boot = { + # Enable AppImage + binfmt.registrations.appimage = { + wrapInterpreterInShell = lib.mkDefault false; + interpreter = "${pkgs.appimage-run}/bin/appimage-run"; + recognitionType = "magic"; + offset = 0; + mask = "\\xff\\xff\\xff\\xff\\x00\\x00\\x00\\x00\\xff\\xff\\xff"; + magicOrExtension = "\\x7fELF....AI\\x02"; + }; + }; + # List packages installed in system profile. To search, run: # $ nix search wget - environment.systemPackages = with pkgs; [ - plymouth - # vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. - # wget - ]; + environment = { + systemPackages = with pkgs; [ + onlyoffice-bin + sbctl + smartmontools + usbutils + udisks2 + plymouth + ]; + + variables = { + STEAM_FORCE_DESKTOPUI_SCALING = "1.0"; + GDK_SCALE = "1"; + }; + }; # Some programs need SUID wrappers, can be configured further or are # started in user sessions.