nix-configs

Personal NixOS and home-manager configuration files
Log | Files | Refs

artemis.nix (2055B)


      1 # Server
      2 
      3 { config, pkgs, lib, fullname, username, domain, email, sshkey, sshport, timezone, postcode, address, htpasswd, vpnusername, vpnpassword, todosecret, privatekey, matrixuser, matrixserver, ... }:
      4 
      5 let machine = "artemis"; in {
      6 
      7   imports = [
      8     (import ../common/variables.nix { inherit machine fullname username domain email sshkey sshport timezone postcode address htpasswd vpnusername vpnpassword todosecret privatekey matrixuser matrixserver; })
      9     (import ../common/home-manager.nix  { inherit machine fullname username domain email sshkey sshport timezone postcode address htpasswd vpnusername vpnpassword todosecret privatekey matrixuser matrixserver; })
     10     ../common/boot-systemd.nix
     11     ../common/docker.nix
     12     ../common/flakes.nix
     13     ../common/garbage.nix
     14     ../common/locale.nix
     15     ../common/mount-drives.nix
     16     ../common/networking.nix
     17     ../common/packages.nix
     18     ../common/ssh.nix
     19     ../common/syncthing.nix
     20     ../common/user.nix
     21     ../common/vnstat.nix
     22     ../scripts/blog-duolingo.nix
     23     ../scripts/blog-status.nix
     24     ../scripts/magnets.nix
     25     ../scripts/restic.nix
     26     ../scripts/stagit-generate.nix
     27     ../scripts/taudiobooker.nix
     28   ];
     29   home-manager.users.${username} = {pkgs, ...}: { imports = [
     30         ../home/fish.nix
     31         ../home/git.nix
     32         ../home/htop.nix
     33         ../home/neovim.nix
     34         ../home/rbw.nix
     35         ../home/rclone.nix
     36         ../home/ssh.nix
     37         ../home/yt-dlp.nix
     38       ];
     39       home.stateVersion = "25.05";
     40   };
     41 
     42   # Hardware and system
     43   boot.initrd = { availableKernelModules = [ "xhci_pci" "virtio_pci" "virtio_scsi" "usbhid" ]; };
     44   nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
     45 
     46   # Cron jobs
     47   services.cron = {
     48     enable = true;
     49     systemCronJobs = [
     50       "*/10 * * * * ${username} blog-status"
     51       "*/10 * * * * ${username} magnets"
     52       "*/10 * * * * ${username} stagit-generate"
     53       "55 23 * * SUN  ${username} blog-duolingo"
     54       "0 */12 * * * ${username} backup-cloud"
     55     ];
     56   };
     57 
     58   system.stateVersion = "25.05"; # Did you read the comment?
     59 
     60 }