aboutsummaryrefslogblamecommitdiff
path: root/hosts/aptos/services.nix
blob: 1168dc2b5c9c30ee985f38cf5041ef05cdb0ca63 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11

                                 

  
                 





                                       





                                                        

                            


                        


                     
                                         



                                         
                                   


                                                      


                                                                                               



                                
{ config, ... }:
let secrets = config.age.secrets;
in
{
  my.services = {
    # monitors and controls temperature
    thermald.enable = true;

    # Enable TLP power management
    tlp.enable = true;

    # enable a few services related to the gnome desktop
    gnome.enable = true;

    # we need avahi in order to use the printer/scanner
    avahi.enable = true;

    syncthing.enable = true;

    # for the yubikeys
    pcscd.enable = true;

    backup = {
      enable = true;
      user = "fcuny";
      repository = "sftp:192.168.6.40:/";
      exclude = [
        "/home/fcuny/.cache"
        "/home/fcuny/downloads"
        "/home/fcuny/workspace/linux.git"
        "/home/fcuny/workspace/tmp"
      ];
      timerConfig = { OnCalendar = "06:30"; };
      passwordFile = secrets."restic/repo-users".path;
      extraOptions = [
        "sftp.command='ssh fcunybackup@192.168.6.40 -i ${secrets.restic/ssh-key.path} -s sftp'"
      ];
      paths = [ "/home/fcuny" ];
    };
  };
}