Merge remote-tracking branch 'lass/master'

This commit is contained in:
makefu 2017-04-28 12:46:46 +02:00
commit 9ee75566e5
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225
4 changed files with 3 additions and 28 deletions

View File

@ -149,6 +149,7 @@ with import <stockholm/lib>;
tmux tmux
untilport untilport
usbutils usbutils
logify
#unpack stuff #unpack stuff
p7zip p7zip

View File

@ -3,6 +3,6 @@
{ {
krebs.build.source.nixpkgs.git = { krebs.build.source.nixpkgs.git = {
url = https://cgit.lassul.us/nixpkgs; url = https://cgit.lassul.us/nixpkgs;
ref = "992b6da"; ref = "aa03833";
}; };
} }

View File

@ -106,6 +106,7 @@ in {
(sync-remote "lassulus-blog" "https://github.com/lassulus/lassulus-blog") (sync-remote "lassulus-blog" "https://github.com/lassulus/lassulus-blog")
(sync-remote "painload" "https://github.com/krebscode/painload") (sync-remote "painload" "https://github.com/krebscode/painload")
(sync-remote "Reaktor" "https://github.com/krebscode/Reaktor") (sync-remote "Reaktor" "https://github.com/krebscode/Reaktor")
(sync-remote "nixos-wiki" "https://github.com/Mic92/nixos-wiki.wiki.git")
(sync-remote-silent "nixpkgs" "https://github.com/nixos/nixpkgs") (sync-remote-silent "nixpkgs" "https://github.com/nixos/nixpkgs")
(sync-retiolum "go") (sync-retiolum "go")
(sync-retiolum "much") (sync-retiolum "much")

View File

@ -21,22 +21,6 @@ let
exec ${pkgs.msmtp}/bin/msmtp --read-envelope-from -C ${msmtprc} "$@" exec ${pkgs.msmtp}/bin/msmtp --read-envelope-from -C ${msmtprc} "$@"
''; '';
restartPhpfpm_o.ubikmedia = pkgs.writeDash "restartPhpfpm_o.ubikmedia.org" ''
${pkgs.systemd}/bin/systemctl restart phpfpm-o.ubikmedia.de.service
'';
restartPhpfpm_o.ubikmedia_wrapper = pkgs.writeDashBin "restartPhpfpm_o.ubikmedia" ''
/run/wrappers/bin/sudo ${restartPhpfpm_o.ubikmedia}
'';
restartPhpfpm_ubikmedia = pkgs.writeDash "restartPhpfpm_ubikmedia.org" ''
${pkgs.systemd}/bin/systemctl restart phpfpm-ubikmedia.de.service
'';
restartPhpfpm_ubikmedia_wrapper = pkgs.writeDashBin "restartPhpfpm_ubikmedia" ''
/run/wrappers/bin/sudo ${restartPhpfpm_ubikmedia}
'';
in { in {
imports = [ imports = [
./sqlBackup.nix ./sqlBackup.nix
@ -180,16 +164,5 @@ in {
createHome = true; createHome = true;
}; };
#sudo restart wrappers
security.sudo.extraConfig = ''
domsen ALL= (root) NOPASSWD: ${restartPhpfpm_o.ubikmedia}
domsen ALL= (root) NOPASSWD: ${restartPhpfpm_ubikmedia}
'';
krebs.per-user.domsen.packages = [
restartPhpfpm_ubikmedia_wrapper
restartPhpfpm_o.ubikmedia_wrapper
];
} }