diff --git a/configuration.nix b/configuration.nix index ba44673..e50139e 100644 --- a/configuration.nix +++ b/configuration.nix @@ -97,25 +97,6 @@ nix.package = pkgs.lixPackageSets.stable.lix; - # Programs configuration - programs = { - steam.enable = true; - fish.enable = true; - foot.enable = true; - - #hyprland = { - # enable = true; - # withUWSM = true; - # xwayland.enable = true; - #}; - - niri = { - enable = true; - }; - - # spicetify.enable = true; - }; - # Fonts configuration fonts = { fontconfig.enable = true; @@ -141,17 +122,6 @@ }; }; - # Services configuration - services = { - pipewire = { - enable = true; - alsa.enable = true; - alsa.support32Bit = true; - pulse.enable = true; - jack.enable = true; - wireplumber.enable = true; - }; - displayManager.gdm.enable = true; xserver = { @@ -162,11 +132,6 @@ }; }; - tetrd.enable = true; - - openssh.enable = true; - libinput.enable = true; - dbus.packages = [ pkgs.gnome-keyring pkgs.gcr @@ -185,5 +150,4 @@ # This is used for compatibility. # Do NOT change this after installing. system.stateVersion = "25.11"; - } diff --git a/home.nix b/home.nix index bdc4b63..77f0bff 100644 --- a/home.nix +++ b/home.nix @@ -6,8 +6,9 @@ ./hyprland.nix ./rofi.nix ./hyprpanel.nix - ./spicetify.nix + #./spicetify.nix ./services.nix + ./networking.nix ]; home.username = "pissbrick"; diff --git a/hyprland.nix b/hyprland.nix new file mode 100644 index 0000000..bf418fc --- /dev/null +++ b/hyprland.nix @@ -0,0 +1,251 @@ +{ pkgs, lib, ... }: + +{ + wayland.windowManager.hyprland = { + enable = true; + systemd.enable = false; + + settings = { + # --- MONITORS --- + monitor = [ + "eDP-1, 1920x1080@144, 0x0, 1" + ]; + + xwayland = { + force_zero_scaling = true; + }; + + # --- MY PROGRAMS (Variables) --- + "$terminal" = "foot"; + "$fileManager" = "dolphin"; + "$menu" = "rofi -show drun"; + "$mainMod" = "SUPER"; + + # --- AUTOSTART --- + "exec-once" = [ + # "dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP" + # Run this once to make sure the daemon is actually handling secrets/ssh + # "dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP eval (gnome-keyring-daemon --start --components=secrets,ssh)" + "hyprpaper" + "hyprpanel" + "greenseed" + "signal-desktop" + "vesktop" + "kdeconnect-indicator" + + # Push variables so the background agent can find the Askpass window + "dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP SSH_AUTH_SOCK" + "systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP SSH_AUTH_SOCK" + + # Auto-load key on login (using the Askpass we just configured) + "ssh-add ~/.ssh/id_ed25519