chore: slim down NixOS install
This commit is contained in:
parent
5aea0d8eaa
commit
e54e458805
4 changed files with 13 additions and 24 deletions
13
.justfile
13
.justfile
|
@ -44,19 +44,10 @@ switch *args:
|
||||||
@just build {{args}}
|
@just build {{args}}
|
||||||
@gum confirm && just rebuild switch {{args}}
|
@gum confirm && just rebuild switch {{args}}
|
||||||
|
|
||||||
[private]
|
|
||||||
gc:
|
|
||||||
nix-collect-garbage -d
|
|
||||||
nix-store --optimise
|
|
||||||
|
|
||||||
[macos]
|
|
||||||
clean:
|
clean:
|
||||||
sudo nix-env --profile /nix/var/nix/profiles/system --delete-generations old
|
sudo nix-env --profile /nix/var/nix/profiles/system --delete-generations old
|
||||||
@just gc
|
nix-collect-garbage -d
|
||||||
|
nix store optimise
|
||||||
[linux]
|
|
||||||
clean:
|
|
||||||
@just gc
|
|
||||||
|
|
||||||
fetch:
|
fetch:
|
||||||
@nix shell nixpkgs\#onefetch nixpkgs\#scc -c sh -c "onefetch --true-color never --no-bots -d lines-of-code && scc --no-cocomo ."
|
@nix shell nixpkgs\#onefetch nixpkgs\#scc -c sh -c "onefetch --true-color never --no-bots -d lines-of-code && scc --no-cocomo ."
|
||||||
|
|
|
@ -5,6 +5,11 @@
|
||||||
}: let
|
}: let
|
||||||
inherit (pkgs.stdenv.hostPlatform) isLinux;
|
inherit (pkgs.stdenv.hostPlatform) isLinux;
|
||||||
in {
|
in {
|
||||||
|
programs.chromium = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.ungoogled-chromium;
|
||||||
|
};
|
||||||
|
|
||||||
programs.firefox = {
|
programs.firefox = {
|
||||||
enable = isLinux;
|
enable = isLinux;
|
||||||
profiles.default = {
|
profiles.default = {
|
||||||
|
@ -151,10 +156,10 @@ in {
|
||||||
pkgs.nekowinston-nur.sizzy
|
pkgs.nekowinston-nur.sizzy
|
||||||
];
|
];
|
||||||
xdg.mimeApps.defaultApplications = {
|
xdg.mimeApps.defaultApplications = {
|
||||||
"text/html" = "firefox.desktop";
|
"text/html" = "chromium.desktop";
|
||||||
"x-scheme-handler/http" = "firefox.desktop";
|
"x-scheme-handler/http" = "chromium.desktop";
|
||||||
"x-scheme-handler/https" = "firefox.desktop";
|
"x-scheme-handler/https" = "chromium.desktop";
|
||||||
"x-scheme-handler/about" = "firefox.desktop";
|
"x-scheme-handler/about" = "chromium.desktop";
|
||||||
"x-scheme-handler/unknown" = "firefox.desktop";
|
"x-scheme-handler/unknown" = "chromium.desktop";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +1,4 @@
|
||||||
{
|
{config, ...}: {
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
home.packages = with pkgs; [chroma pandoc w3m];
|
|
||||||
sops.secrets."aerc-accounts".path = "${config.xdg.configHome}/aerc/accounts.conf";
|
sops.secrets."aerc-accounts".path = "${config.xdg.configHome}/aerc/accounts.conf";
|
||||||
programs = {
|
programs = {
|
||||||
aerc = {
|
aerc = {
|
||||||
|
|
|
@ -34,8 +34,6 @@ in {
|
||||||
]
|
]
|
||||||
++ lib.optionals isLinux [
|
++ lib.optionals isLinux [
|
||||||
_1password-gui
|
_1password-gui
|
||||||
jetbrains.goland
|
|
||||||
jetbrains.webstorm
|
|
||||||
nekowinston-nur.uhk-agent
|
nekowinston-nur.uhk-agent
|
||||||
]);
|
]);
|
||||||
sessionVariables = lib.mkIf isDarwin {
|
sessionVariables = lib.mkIf isDarwin {
|
||||||
|
|
Loading…
Reference in a new issue