X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FConfig%2FNix.git;a=blobdiff_plain;f=modules%2Fprivate%2Fsystem%2Fdilion.nix;h=ab135b23ed449ed53a66cc1db249a3a9cf376b43;hp=5b01a532ca7c545a678ec4c5c11332a89e11aae0;hb=50c100ba31cfea05b73120421f08746429d56f24;hpb=7067c25c9db3581967bdb4f4962955ffd0365c52 diff --git a/modules/private/system/dilion.nix b/modules/private/system/dilion.nix index 5b01a53..ab135b2 100644 --- a/modules/private/system/dilion.nix +++ b/modules/private/system/dilion.nix @@ -51,7 +51,7 @@ in ["command=\"${pkgs.rrsync_sudo}/bin/rrsync /var/lib/backup/eldiron/\" ${config.myEnv.rsync_backup.ssh_key.public}"]; }; - security.sudo.extraRules = [ + security.sudo.extraRules = pkgs.lib.mkAfter [ { commands = [ { command = "${pkgs.rsync}/bin/rsync"; options = [ "NOPASSWD" ]; } @@ -59,6 +59,13 @@ users = [ "backup" ]; runAs = "root"; } + { + commands = [ + { command = "/home/immae/.nix-profile/root_scripts/*"; options = [ "NOPASSWD" ]; } + ]; + users = [ "immae" ]; + runAs = "root"; + } ]; system.activationScripts.backup_home = '' @@ -83,11 +90,20 @@ ''; }; + security.pki.certificateFiles = [ + (pkgs.fetchurl { + url = "http://downloads.e.eriomem.net/eriomemca.pem"; + sha256 = "1ixx4c6j3m26j8dp9a3dkvxc80v1nr5aqgmawwgs06bskasqkvvh"; + }) + ]; + # This is equivalent to setting environment.sessionVariables.NIX_PATH nix.nixPath = [ "home-manager=https://github.com/rycee/home-manager/archive/release-19.03.tar.gz" "nixpkgs=https://nixos.org/channels/nixos-19.03/nixexprs.tar.xz" ]; + nix.binaryCaches = [ "https://hydra.iohk.io" ]; + nix.binaryCachePublicKeys = [ "hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=" ]; # This value determines the NixOS release with which your system is # to be compatible, in order to avoid breaking some software such as