From a5c4b9253a2e0cc6c25c603824d8b1ca74269eff Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Tue, 19 Jul 2022 07:07:53 +0800 Subject: [PATCH] chore: update misc configs --- modules/nixos/profiles/archiving.nix | 1 + modules/nixos/profiles/dev.nix | 10 ++++++++-- modules/nixos/profiles/system.nix | 17 +++++++++++------ .../nixos/tasks/multimedia-archive/default.nix | 2 +- modules/nixos/themes/a-happy-gnome/default.nix | 2 ++ users/home-manager/foo-dogsquared/default.nix | 4 ++++ 6 files changed, 27 insertions(+), 9 deletions(-) diff --git a/modules/nixos/profiles/archiving.nix b/modules/nixos/profiles/archiving.nix index b1f2a679..6dea628a 100644 --- a/modules/nixos/profiles/archiving.nix +++ b/modules/nixos/profiles/archiving.nix @@ -11,6 +11,7 @@ in { config = lib.mkIf cfg.enable { environment.systemPackages = with pkgs; [ archivebox # Create by ye' old pirate. + archiver # Extract and create all of the archives. borgbackup # I'm pretty sure this is named after some thing from a franchise somewhere but I'm not omnipresent. borgmatic # For those insisting on configurations for BorgBackup. fanficfare # Your fanfics in my hard drive? Pay me rent first. diff --git a/modules/nixos/profiles/dev.nix b/modules/nixos/profiles/dev.nix index ade1a40c..49077337 100644 --- a/modules/nixos/profiles/dev.nix +++ b/modules/nixos/profiles/dev.nix @@ -15,6 +15,14 @@ in { config = lib.mkIf cfg.enable (lib.mkMerge [ ({ + systemd.coredump = { + enable = true; + extraConfig = '' + ProcessSizeMax=10G + ExternalSizeMax=10G + ''; + }; + # I want to include documentations for my own sanity, OK? documentation = { enable = true; @@ -23,8 +31,6 @@ in { man.generateCaches = true; }; - # Configure all of the development-related configuration in the system. - # Install Git, our favorite version control system. # In this case, we want ALL OF THE EXTENSIONS! programs.git = { diff --git a/modules/nixos/profiles/system.nix b/modules/nixos/profiles/system.nix index 14f58de3..bd78bc2f 100644 --- a/modules/nixos/profiles/system.nix +++ b/modules/nixos/profiles/system.nix @@ -32,12 +32,17 @@ in { xdg.portal.enable = true; # Install the usual Flatpak remotes. - system.activationScripts.flatpak-remote.text = lib.mkAfter '' - ${pkgs.flatpak}/bin/flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo - ${pkgs.flatpak}/bin/flatpak remote-add --if-not-exists flathub-beta https://flathub.org/beta-repo/flathub-beta.flatpakrepo - ${pkgs.flatpak}/bin/flatpak remote-add --if-not-exists gnome-nightly https://nightly.gnome.org/gnome-nightly.flatpakrepo - ${pkgs.flatpak}/bin/flatpak remote-add --if-not-exists kdeapps https://distribute.kde.org/kdeapps.flatpakrepo - ''; + systemd.services.install-flatpak-remotes = { + after = [ "network.target" ]; + path = [ pkgs.flatpak ]; + script = '' + flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo + flatpak remote-add --if-not-exists flathub-beta https://flathub.org/beta-repo/flathub-beta.flatpakrepo + flatpak remote-add --if-not-exists gnome-nightly https://nightly.gnome.org/gnome-nightly.flatpakrepo + flatpak remote-add --if-not-exists kdeapps https://distribute.kde.org/kdeapps.flatpakrepo + ''; + serviceConfig.Type = "oneshot"; + }; # Enable font-related options for more smoother and consistent experience. fonts.fontconfig.enable = true; diff --git a/modules/nixos/tasks/multimedia-archive/default.nix b/modules/nixos/tasks/multimedia-archive/default.nix index b9cc25a0..626678ba 100644 --- a/modules/nixos/tasks/multimedia-archive/default.nix +++ b/modules/nixos/tasks/multimedia-archive/default.nix @@ -12,7 +12,7 @@ in let yt-dlp-args = [ # Make a global list of successfully downloaded videos as a cache for yt-dlp. - "--download-archive ${config.services.yt-dlp.archivePath}/videos" + "--download-archive '${config.services.yt-dlp.archivePath}/videos'" # No overwriting of videos and related files. "--no-force-overwrites" diff --git a/modules/nixos/themes/a-happy-gnome/default.nix b/modules/nixos/themes/a-happy-gnome/default.nix index c85c6a14..6499f233 100644 --- a/modules/nixos/themes/a-happy-gnome/default.nix +++ b/modules/nixos/themes/a-happy-gnome/default.nix @@ -69,6 +69,8 @@ in gnome-frog # Graphical OCR with Tesseract that I always wanted. gnome-solanum # Cute little matodor timers. shortwave # Yer' humble internet radio. + ymuse # Simple MPD client. + gnome-menus # It is required for custom menus in extensions. gnome-extension-manager # The cooler GNOME extensions app. gnome-search-provider-recoll # This is here for some reason. diff --git a/users/home-manager/foo-dogsquared/default.nix b/users/home-manager/foo-dogsquared/default.nix index dc1a8df6..c883687f 100644 --- a/users/home-manager/foo-dogsquared/default.nix +++ b/users/home-manager/foo-dogsquared/default.nix @@ -32,6 +32,9 @@ in { ]; fonts.fontconfig.enable = true; + programs.bash.bashrcExtra = '' + source ${pkgs.wezterm}/etc/profile.d/wezterm.sh + ''; # My specific usual stuff. programs.git = let email = "foo.dogsquared@gmail.com"; in { @@ -40,6 +43,7 @@ in { lfs.enable = true; userName = "Gabriel Arazas"; userEmail = email; + signing.key = "129AFC6B4ABD6B61"; extraConfig = { # This is taken from the official Git book, for future references. sendemail = {