From e54e4588056cedcf5ec5d0b9723a78f214941f59 Mon Sep 17 00:00:00 2001 From: winston Date: Thu, 16 Nov 2023 08:40:27 +0100 Subject: [PATCH] chore: slim down NixOS install --- .justfile | 13 ++----------- home/apps/browsers.nix | 15 ++++++++++----- home/apps/mail.nix | 7 +------ home/default.nix | 2 -- 4 files changed, 13 insertions(+), 24 deletions(-) diff --git a/.justfile b/.justfile index ca8480b..94a862f 100644 --- a/.justfile +++ b/.justfile @@ -44,19 +44,10 @@ switch *args: @just build {{args}} @gum confirm && just rebuild switch {{args}} -[private] -gc: - nix-collect-garbage -d - nix-store --optimise - -[macos] clean: sudo nix-env --profile /nix/var/nix/profiles/system --delete-generations old - @just gc - -[linux] -clean: - @just gc + nix-collect-garbage -d + nix store optimise fetch: @nix shell nixpkgs\#onefetch nixpkgs\#scc -c sh -c "onefetch --true-color never --no-bots -d lines-of-code && scc --no-cocomo ." diff --git a/home/apps/browsers.nix b/home/apps/browsers.nix index d77761f..a52f81e 100644 --- a/home/apps/browsers.nix +++ b/home/apps/browsers.nix @@ -5,6 +5,11 @@ }: let inherit (pkgs.stdenv.hostPlatform) isLinux; in { + programs.chromium = { + enable = true; + package = pkgs.ungoogled-chromium; + }; + programs.firefox = { enable = isLinux; profiles.default = { @@ -151,10 +156,10 @@ in { pkgs.nekowinston-nur.sizzy ]; xdg.mimeApps.defaultApplications = { - "text/html" = "firefox.desktop"; - "x-scheme-handler/http" = "firefox.desktop"; - "x-scheme-handler/https" = "firefox.desktop"; - "x-scheme-handler/about" = "firefox.desktop"; - "x-scheme-handler/unknown" = "firefox.desktop"; + "text/html" = "chromium.desktop"; + "x-scheme-handler/http" = "chromium.desktop"; + "x-scheme-handler/https" = "chromium.desktop"; + "x-scheme-handler/about" = "chromium.desktop"; + "x-scheme-handler/unknown" = "chromium.desktop"; }; } diff --git a/home/apps/mail.nix b/home/apps/mail.nix index de0dabe..a26379c 100644 --- a/home/apps/mail.nix +++ b/home/apps/mail.nix @@ -1,9 +1,4 @@ -{ - config, - pkgs, - ... -}: { - home.packages = with pkgs; [chroma pandoc w3m]; +{config, ...}: { sops.secrets."aerc-accounts".path = "${config.xdg.configHome}/aerc/accounts.conf"; programs = { aerc = { diff --git a/home/default.nix b/home/default.nix index 10571be..d7de4f6 100644 --- a/home/default.nix +++ b/home/default.nix @@ -34,8 +34,6 @@ in { ] ++ lib.optionals isLinux [ _1password-gui - jetbrains.goland - jetbrains.webstorm nekowinston-nur.uhk-agent ]); sessionVariables = lib.mkIf isDarwin {