chore: update misc configs

This commit is contained in:
Gabriel Arazas 2022-07-19 07:07:53 +08:00
parent 299aefa195
commit a5c4b9253a
6 changed files with 27 additions and 9 deletions

View File

@ -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.

View File

@ -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 = {

View File

@ -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;

View File

@ -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"

View File

@ -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.

View File

@ -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 = {