From a9ad4efed3cbbe920e2e03bcd6e9c3d67263fd1b Mon Sep 17 00:00:00 2001 From: Martin Berg Alstad <git@martials.no> Date: Sat, 28 Dec 2024 13:30:51 +0100 Subject: [PATCH] Moved waybar config to own file. Added playerctl to system, removed hardware config from git --- .gitignore | 1 + configuration.nix | 3 ++- hyprland/default.nix | 7 +++++++ hyprland/waybar.nix | 13 +++++++++++++ 4 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 hyprland/default.nix create mode 100644 hyprland/waybar.nix diff --git a/.gitignore b/.gitignore index b2be92b..714ca05 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ +hardware-configuration.nix result diff --git a/configuration.nix b/configuration.nix index d4180b8..7390bab 100644 --- a/configuration.nix +++ b/configuration.nix @@ -12,6 +12,7 @@ # Include the results of the hardware scan. ./hardware-configuration.nix ./terminal + ./hyprland ]; # Bootloader. @@ -77,11 +78,11 @@ swaynotificationcenter pipewire wireplumber + playerctl # Interaction with audio players and browsers xdg-utils xdg-desktop-portal-gtk xdg-desktop-portal-hyprland hyprpolkitagent - waybar rofi-wayland kdePackages.dolphin kdePackages.qtwayland diff --git a/hyprland/default.nix b/hyprland/default.nix new file mode 100644 index 0000000..42c5333 --- /dev/null +++ b/hyprland/default.nix @@ -0,0 +1,7 @@ +{...}: + +{ + imports = [ + ./waybar.nix + ]; +} diff --git a/hyprland/waybar.nix b/hyprland/waybar.nix new file mode 100644 index 0000000..3628922 --- /dev/null +++ b/hyprland/waybar.nix @@ -0,0 +1,13 @@ +{pkgs, ...}: + +{ + environment.systemPackages = with pkgs; [ + waybar + font-awesome # Icons + ]; + + fonts.packages = with pkgs; [ + font-awesome + ]; +} +