Skip to content

xmonad: Don't add ghc to the closure when 'config' is set#143886

Merged
SuperSandro2000 merged 1 commit intoNixOS:masterfrom
Julow:xmonad-large-closure
Nov 22, 2021
Merged

xmonad: Don't add ghc to the closure when 'config' is set#143886
SuperSandro2000 merged 1 commit intoNixOS:masterfrom
Julow:xmonad-large-closure

Conversation

@Julow
Copy link
Contributor

@Julow Julow commented Oct 30, 2021

Motivation for this change

When 'services.xserver.windowManager.xmonad.config' is not null, the
restart feature won't work by default and is not desirable unless
specific care is made, as explained by the documentation.

I think it's reasonable to not include the haskell dependencies in the
environment by default. That reduces the size of my system by 2GB.

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • 21.11 Release Notes (or backporting 21.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

When 'services.xserver.windowManager.xmonad.config' is not null, the
restart feature won't work by default and is not desirable unless
specific care is made, as explained by the documentation.

I think it's reasonable to not include the haskell dependencies in the
environment by default. That reduces the size of my system by 2GB.
@github-actions github-actions bot added 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` labels Oct 30, 2021
@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Oct 30, 2021
Copy link
Contributor

@xaverdh xaverdh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not tested, but looks good to me.
Still I am curious, do you actually build your system on a machine different from the one you run xmonad on?

@Julow
Copy link
Contributor Author

Julow commented Oct 31, 2021

I actually do that for a small computer plugged to my TV, which I use only for streaming services. I build the system on my main computer, nix copy it and run switch-to-configuration through ssh.

Otherwise, it's mainly for the satisfaction of trimming down the system and removing mutable parts.

@SuperSandro2000 SuperSandro2000 merged commit 4eb8b9d into NixOS:master Nov 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants