better host identification method
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
osConfig,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption mkMerge;
|
||||
cfg = config.home.programs.hyprland;
|
||||
host = osConfig.networking.hostName;
|
||||
in {
|
||||
options = {
|
||||
home.programs.hyprland.startup.enable = mkEnableOption "Enables startup settings in Hyprland";
|
||||
@@ -22,7 +24,7 @@ in {
|
||||
};
|
||||
}
|
||||
|
||||
(mkIf (cfg.user == "cnix") {
|
||||
(mkIf (host == "cnix") {
|
||||
wayland.windowManager.hyprland.settings.exec-once = [
|
||||
"mullvad-vpn"
|
||||
"blueman-applet"
|
||||
@@ -31,7 +33,14 @@ in {
|
||||
];
|
||||
})
|
||||
|
||||
(mkIf (cfg.user == "toothpc") {
|
||||
(mkIf (host == "cnixpad") {
|
||||
wayland.windowManager.hyprland.settings.exec-once = [
|
||||
"blueman-applet"
|
||||
"pamixer --set-volume 50"
|
||||
];
|
||||
})
|
||||
|
||||
(mkIf (host == "toothpc") {
|
||||
wayland.windowManager.hyprland.settings.exec-once = [
|
||||
"mullvad-vpn"
|
||||
"hyprctl dispatch exec 'sleep 3s && solaar -w hide'"
|
||||
|
||||
Reference in New Issue
Block a user