Skip to content

Commit

Permalink
Uninstall several GUI packages in containers but keeps in NixOS and d…
Browse files Browse the repository at this point in the history
…arwn (#835)

* Uninstall several GUI packages in containers but keeps in NixOS and darwn

* dconf module doesnt have packages

* Fix an attr typo

* dconf does not have package, this is correct

* Fix to specify uninstalling firefox package from home-manager

* Don't install darwin firefox via nixpkgs
  • Loading branch information
kachick authored Oct 11, 2024
1 parent 8bd14e0 commit 431bfc4
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions darwin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ So you should manually install followings.
- [vscode](https://code.visualstudio.com/download)
- [zed-editor](https://zed.dev/download)
- [podman-desktop](https://podman-desktop.io/downloads)
- [Firefox](https://www.mozilla.org/ja/firefox/all/desktop-release/osx/ja/)

## Limitations

Expand Down
4 changes: 4 additions & 0 deletions home-manager/firefox.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ lib.mkMerge [
# https://github.com/nix-community/home-manager/blob/release-24.05/modules/programs/firefox.nix
programs.firefox = {
enable = true;
# In firefox package, use null instead of `pkgs.emptyDirectory`
# - https://github.com/kachick/dotfiles/pull/835#discussion_r1796307643
# - https://github.com/nix-community/home-manager/blob/342a1d682386d3a1d74f9555cb327f2f311dda6e/modules/programs/firefox/mkFirefoxModule.nix#L264
package = null;
profiles.default = {
isDefault = true;
settings = {
Expand Down
4 changes: 4 additions & 0 deletions home-manager/packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@
pinentry_mac

alacritty
kitty
# foot is only provided for Linux wayland

# Don't install firefox via nixpkgs for darwin, it is broken https://github.com/NixOS/nixpkgs/blob/bac526a0fe6da6b10cfe2454f62a0defdbf1d898/pkgs/applications/networking/browsers/firefox/packages.nix#L23

# - You can use major Nerd Fonts as `pkgs.nerdfonts.override ...`
# - Should have at least 1 composite font that includes Monospace + Japanese + Nerd fonts,
Expand Down
1 change: 1 addition & 0 deletions home-manager/terminals.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
# https://github.com/nix-community/home-manager/blob/release-24.05/modules/programs/kitty.nix
programs.kitty = {
enable = true;
package = pkgs.emptyDirectory;
theme = "zenwritten_dark";
settings = {
shell = lib.getExe pkgs.zsh;
Expand Down

0 comments on commit 431bfc4

Please sign in to comment.