base: Finally, some emacs on darwin (and some other stuff I guess)
This commit is contained in:
parent
5467282626
commit
15586a8f7c
81 changed files with 469 additions and 417 deletions
16
modules/shared/base/phone-push/default.nix
Normal file
16
modules/shared/base/phone-push/default.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
username = config.chvp.username;
|
||||
phone-push = pkgs.writeShellScriptBin "phone-push" ''
|
||||
curl $(cat ${config.age.secrets."files/services/phone-push-url".path}) -d "$(hostname): $@"
|
||||
'';
|
||||
in
|
||||
{
|
||||
environment.systemPackages = [ phone-push ];
|
||||
|
||||
age.secrets."files/services/phone-push-url" = {
|
||||
file = ../../../../secrets/files/services/phone-push-url.age;
|
||||
owner = username;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue