# Edit this configuration file to define what should be installed on # your system. Help is available in the configuration.nix(5) man page, on # https://search.nixos.org/options and in the NixOS manual (`nixos-help`). { config, lib, pkgs, inputs, ... }: { imports = [ # Include the results of the hardware scan. ./hardware-configuration.nix inputs.disko.nixosModules.default ./disk-config.nix inputs.home-manager.nixosModules.default ]; fileSystems."/mnt/HDD1" = { #device = "/dev/disk/by-uuid/35763dc3-c736-4714-ade7-40bf49ad50dd"; fsType = "ext4"; label = "HDD1"; options = [ # If you don't have this options attribute, it'll default to "defaults" # boot options for fstab. Search up fstab mount options you can use "users" # Allows any user to mount and unmount "nofail" # Prevent system from failing if this drive doesn't mount "exec" # Permit execution of binaries and other executable files ]; }; hardware.tuxedo-drivers.enable = true; # Define a user account. Don't forget to set a password with ‘passwd’. users.users.worble = { initialPassword = "password"; isNormalUser = true; extraGroups = [ "wheel" "gamemode" "podman" "cdrom" ]; # Enable ‘sudo’ for the user. linger = true; }; home-manager.useGlobalPkgs = true; home-manager = { extraSpecialArgs = { inherit inputs; }; users = { "worble" = import ./home-manager/home.nix; }; }; # [Unit] # Description=Systemd unit to watch a folder for new files # [Path] # PathChanged=/path/to/folder/you/want/to/monitor/ # [Install] # WantedBy=multi-user.target # systemd.user.paths.rclone-media = { # enable = true; # description = "rclone unit path for /mnt/HDD1/Videos/"; # after = [ "network.target" "mnt-HDD1.mount" ]; # wantedBy = [ "default.target" ]; # pathConfig = { # PathChanged = "/mnt/HDD1/Videos/"; # }; # }; # systemd.user.services.rclone-media = { # description = "rclone unit service for /mnt/HDD1/Videos/"; # serviceConfig = { # Type = "oneshot"; # }; # path = [ pkgs.libnotify pkgs.rclone ]; # script = '' # notify-send -a "rclone-media" "rclone for /mnt/HDD1/Videos/ triggered" # rclone copy --max-age 24h --no-traverse "/mnt/HDD1/Videos/" media:"media-7gM2gcrxRjXqfj" -P --dry-run # notify-send -a "rclone-media" "rclone for /mnt/HDD1/Videos/ complete" # ''; # }; }