mirror of https://github.com/E-Almqvist/dotfiles
parent
8e1a52e29e
commit
4e45674770
@ -1,38 +0,0 @@ |
||||
{ config, pkgs, ... }: |
||||
|
||||
let |
||||
fullScriptPath = ".scripts/nix-daemon.sh"; |
||||
in |
||||
{ |
||||
home.file."Library/LaunchAgents/org.nixos.autostart.plist" = { |
||||
text = '' |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
||||
<plist version="1.0"> |
||||
<dict> |
||||
<key>Label</key> |
||||
<string>org.nixos.autostart</string> |
||||
<key>ProgramArguments</key> |
||||
<array> |
||||
<string>${pkgs.bash}/bin/bash</string> |
||||
<string>${fullScriptPath}</string> |
||||
</array> |
||||
<key>RunAtLoad</key> |
||||
<true/> |
||||
<key>KeepAlive</key> |
||||
<false/> |
||||
</dict> |
||||
</plist> |
||||
''; |
||||
}; |
||||
|
||||
home.file."${fullScriptPath}" = { |
||||
text = '' |
||||
if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then |
||||
. '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' |
||||
fi |
||||
''; |
||||
executable = true; |
||||
}; |
||||
} |
||||
|
@ -1,36 +0,0 @@ |
||||
{ config, pkgs, ... }: |
||||
|
||||
let |
||||
fullScriptPath = ".scripts/skhd-daemon.sh"; |
||||
in |
||||
{ |
||||
home.file."Library/LaunchAgents/org.skhdos.autostart.plist" = { |
||||
text = '' |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
||||
<plist version="1.0"> |
||||
<dict> |
||||
<key>Label</key> |
||||
<string>org.skhdos.autostart</string> |
||||
<key>ProgramArguments</key> |
||||
<array> |
||||
<string>${pkgs.bash}/bin/bash</string> |
||||
<string>${fullScriptPath}</string> |
||||
</array> |
||||
<key>RunAtLoad</key> |
||||
<true/> |
||||
<key>KeepAlive</key> |
||||
<false/> |
||||
</dict> |
||||
</plist> |
||||
''; |
||||
}; |
||||
|
||||
home.file."${fullScriptPath}" = { |
||||
text = '' |
||||
skhd --start-service |
||||
''; |
||||
executable = true; |
||||
}; |
||||
} |
||||
|
@ -1,36 +0,0 @@ |
||||
{ config, pkgs, ... }: |
||||
|
||||
let |
||||
fullScriptPath = ".scripts/yabai-daemon.sh"; |
||||
in |
||||
{ |
||||
home.file."Library/LaunchAgents/org.yabaios.autostart.plist" = { |
||||
text = '' |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
||||
<plist version="1.0"> |
||||
<dict> |
||||
<key>Label</key> |
||||
<string>org.yabaios.autostart</string> |
||||
<key>ProgramArguments</key> |
||||
<array> |
||||
<string>${pkgs.bash}/bin/bash</string> |
||||
<string>${fullScriptPath}</string> |
||||
</array> |
||||
<key>RunAtLoad</key> |
||||
<true/> |
||||
<key>KeepAlive</key> |
||||
<false/> |
||||
</dict> |
||||
</plist> |
||||
''; |
||||
}; |
||||
|
||||
home.file."${fullScriptPath}" = { |
||||
text = '' |
||||
yabai --start-service |
||||
''; |
||||
executable = true; |
||||
}; |
||||
} |
||||
|
Loading…
Reference in new issue