diff --git a/system/nixos/configuration.nix b/system/nixos/configuration.nix index 73607ba..b9085ec 100644 --- a/system/nixos/configuration.nix +++ b/system/nixos/configuration.nix @@ -84,22 +84,20 @@ in services.avahi.openFirewall = true; services.printing.enable = true; - # Enable sound with pipewire. - sound.enable = true; - hardware.pulseaudio.enable = true; security.rtkit.enable = true; - # services.pipewire = { - # enable = true; - # alsa.enable = true; - # alsa.support32Bit = true; - # pulse.enable = true; - # # If you want to use JACK applications, uncomment this - # #jack.enable = true; - # - # # use the example session manager (no others are packaged yet so this is enabled by default, - # # no need to redefine it in your config for now) - # #media-session.enable = true; - # }; + services.pipewire = { + enable = true; + alsa.enable = true; + alsa.support32Bit = true; + pulse.enable = true; + }; + + services.cron = { + enable = true; + systemCronJobs = [ + "0 18 * * 5 ${pkgs.bash}/bin/bash -c 'rm -rf /home/${username}/Downloads/*'" + ]; + }; # Enable touchpad support (enabled default in most desktopManager). # services.xserver.libinput.enable = true; @@ -107,7 +105,7 @@ in users.users.${username} = { isNormalUser = true; description = "Oliver Davies"; - extraGroups = [ "docker" "networkmanager" "wheel" ]; + extraGroups = [ "docker" "networkmanager" "wheel" "audio" ]; packages = with pkgs; [ ]; }; diff --git a/system/shared/home-manager.nix b/system/shared/home-manager.nix index 6ae83cd..57dedfa 100644 --- a/system/shared/home-manager.nix +++ b/system/shared/home-manager.nix @@ -367,6 +367,18 @@ in ialias build-configs="~/Code/Personal/build-configs/bin/build-configs run" ialias update-build-configs="~/Code/Personal/build-configs-updater/update.sh" + alias -g A1="| awk '{print \$1}'" + alias -g Fj='| jq .' + alias -g Fy='| yq .' + alias -g G='| grep' + alias -g GH='| grep HTTP' + alias -g Gi='| grep -i' + alias -g H2='| head -n 20' + alias -g H='| head' + alias -g L='| less' + alias -g V='| vim -' + alias -g X='| xargs -I1' + setopt auto_cd setopt auto_pushd setopt pushd_ignore_dups