Added NCSway
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
./desktop/hyprlock.nix
|
||||
./desktop/hyprscrolling.nix
|
||||
./desktop/hyprshell.nix
|
||||
./desktop/ncsway.nix
|
||||
./desktop/powermenu.nix
|
||||
#./desktop/animated_wallpaper.nix
|
||||
#./desktop/rotating_wallpaper.nix
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
{ config, pkgs, lib, flakeRoot, ... }:
|
||||
let
|
||||
repoConf = flakeRoot + "/assets/conf/desktop/notifications/swaync/config.json";
|
||||
repoStyle = flakeRoot + "/assets/conf/desktop/notifications/swaync/style.css";
|
||||
in
|
||||
{
|
||||
home.packages = [ pkgs.swaynotificationcenter ];
|
||||
# Ensure config directory exists in ~/.config
|
||||
xdg.configFile."swaync/config.json".source = repoConf;
|
||||
xdg.configFile."swaync/style.css".source = repoStyle;
|
||||
# Start swaync automatically (systemd user service)
|
||||
systemd.user.services.swaync = {
|
||||
Unit = {
|
||||
Description = "Sway Notification Center";
|
||||
PartOf = [ "graphical-session.target" ];
|
||||
};
|
||||
Service = {
|
||||
ExecStart = "${pkgs.swaynotificationcenter}/bin/swaync";
|
||||
Restart = "always";
|
||||
};
|
||||
Install = {
|
||||
WantedBy = [ "graphical-session.target" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user