From af5ca69e027effc1267e122234f9d8bb369c2700 Mon Sep 17 00:00:00 2001 From: zastian-dev Date: Fri, 12 Dec 2025 12:21:22 +0000 Subject: [PATCH] clean up the house a bit --- configuration.nix | 303 +++++--------------------- dots/zsh.nix | 8 +- flake.lock | 48 ++-- system/specialisation/main-system.nix | 108 +++++++++ system/specialisation/steam.nix | 112 ++++++++++ 5 files changed, 305 insertions(+), 274 deletions(-) create mode 100644 system/specialisation/main-system.nix create mode 100644 system/specialisation/steam.nix diff --git a/configuration.nix b/configuration.nix index 54853c2..b189a11 100755 --- a/configuration.nix +++ b/configuration.nix @@ -11,15 +11,6 @@ ... }: -let - oreo = pkgs.callPackage ./personalPKGS/oreo.nix { }; - - # Window manager toggles - wmAll = window_manager == "all"; - useRiver = window_manager == "river" || wmAll; - useNiri = window_manager == "niri" || wmAll; - useHypr = window_manager == "hyprland" || wmAll; -in { imports = [ ./hardware-configuration.nix @@ -50,59 +41,62 @@ in ############################################################################## programs.zsh.enable = true; users = { - users.mrfluffy = { - isNormalUser = true; - shell = pkgs.zsh; - createHome = true; - extraGroups = [ - "wheel" - "networkmanager" - "video" - "render" - "docker" - "libvirt" - "input" - "seat" - ]; - packages = with pkgs; [ ]; - }; + users = { + mrfluffy = { + isNormalUser = true; + shell = pkgs.zsh; + createHome = true; + extraGroups = [ + "wheel" + "networkmanager" + "video" + "render" + "docker" + "libvirt" + "input" + "seat" + ]; + packages = with pkgs; [ ]; + }; - users.work = { - isNormalUser = true; - shell = pkgs.zsh; - createHome = true; - extraGroups = [ - "wheel" - "networkmanager" - "video" - "render" - "docker" - "libvirt" - "input" - "seat" - ]; - packages = with pkgs; [ ]; + work = { + isNormalUser = true; + shell = pkgs.zsh; + createHome = true; + extraGroups = [ + "wheel" + "networkmanager" + "video" + "render" + "docker" + "libvirt" + "input" + "seat" + ]; + packages = with pkgs; [ ]; + }; + game = { + isNormalUser = true; + description = "Dedicated gaming user (auto-login in Steam specialisation)"; + shell = pkgs.bash; + createHome = true; + password = ""; # no password + extraGroups = [ + "wheel" + "video" + "render" + "input" + "seat" + "networkmanager" + ]; + home = "/home/game"; + }; }; - users.game = { - isNormalUser = true; - description = "Dedicated gaming user (auto-login in Steam specialisation)"; - shell = pkgs.bash; - createHome = true; - password = ""; # no password - extraGroups = [ - "wheel" - "video" - "render" - "input" - "seat" - "networkmanager" + groups.libvirtd.members = [ + "mrfluffy" + "work" ]; - home = "/home/game"; - }; - groups.libvirtd.members = [ - "mrfluffy" - "work" - ]; + }; ############################################################################## # Home-Manager @@ -173,106 +167,9 @@ in specialisation = { "01-steam" = { configuration = { - - boot = { - kernelParams = lib.mkForce [ "ipv6e=1" "quiet" "splash"]; - plymouth = { - enable = true; - themePackages = [ pkgs.adi1090x-plymouth-themes ]; - theme = "abstract_ring_alt"; - }; - - }; - - # ── HDMI-CEC: Turn on TV when Steam specialisation starts ───────────────────── - services.udev.packages = [ pkgs.libcec ]; # ensures cec-utils is in PATH - services.blueman.enable = true; - services.seatd.enable = true; - - # A user service that runs once the graphical session (Steam/GameScope) is ready - #systemd.user.services.cec-tv-on = { - # description = "Turn on TV via HDMI-CEC when entering Steam specialisation"; - # wantedBy = [ "graphical-session.target" ]; - # after = [ "graphical-session.target" ]; - # serviceConfig = { - # Type = "oneshot"; - # RemainAfterExit = true; - # ExecStart = toString ( - # pkgs.writeShellScript "cec-tv-on.sh" '' - # # Wait a moment for the HDMI link to settle - # sleep 3 - - # # Turn on the TV and set it as active source (most TVs understand this) - # ${pkgs.libcec}/bin/cec-client -s -d 1 <