-
-
Notifications
You must be signed in to change notification settings - Fork 19.4k
profiles/minimal: reduce size #173661
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
profiles/minimal: reduce size #173661
Changes from all commits
df22e41
ee85845
362d351
191d211
309d6a3
0c6ce0d
731d496
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,17 @@ | ||
| # This module defines a small NixOS installation CD. It does not | ||
| # contain any graphical stuff. | ||
|
|
||
| { ... }: | ||
| { lib, ... }: | ||
|
|
||
| { | ||
| imports = | ||
| [ ./installation-cd-base.nix | ||
| ]; | ||
| imports = [ | ||
| ../../profiles/minimal.nix | ||
| ./installation-cd-base.nix | ||
| ]; | ||
|
|
||
| isoImage.edition = "minimal"; | ||
| documentation.man.enable = lib.mkOverride 500 true; | ||
|
|
||
| fonts.fontconfig.enable = false; | ||
| fonts.fontconfig.enable = lib.mkForce false; | ||
|
Izorkin marked this conversation as resolved.
Outdated
|
||
|
|
||
| isoImage.edition = lib.mkForce "minimal"; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,10 +10,20 @@ with lib; | |
|
|
||
| documentation.enable = mkDefault false; | ||
|
|
||
| documentation.doc.enable = mkDefault false; | ||
|
|
||
| documentation.info.enable = mkDefault false; | ||
|
|
||
| documentation.man.enable = mkDefault false; | ||
|
Izorkin marked this conversation as resolved.
Outdated
|
||
|
|
||
| documentation.nixos.enable = mkDefault false; | ||
|
|
||
| programs.command-not-found.enable = mkDefault false; | ||
|
|
||
| services.logrotate.enable = mkDefault false; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That could be really dangerous and fill up your disk when logs in containers get no longer rotated. Also many people don't even know that the container uses this profile.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This module is used only in tests and in minimal ISO image. Should not affect working to containers. And it was enabled by default recently.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
No, it is also included for nixos-containers because otherwise the stupid
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I tested with this configuration: Changes to
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🤔 maybe I was doing something wonky but lxc container imports minimal profile which I was using for the container https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/virtualisation/lxc-container.nix#L54
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @SuperSandro2000 add this patch? diff --git a/nixos/doc/manual/from_md/release-notes/rl-2211.section.xml b/nixos/doc/manual/from_md/release-notes/rl-2211.section.xml
index 6a7032e1963..392f79cb51e 100644
--- a/nixos/doc/manual/from_md/release-notes/rl-2211.section.xml
+++ b/nixos/doc/manual/from_md/release-notes/rl-2211.section.xml
@@ -368,6 +368,11 @@
<literal>nixos/modules/profiles/minimal.nix</literal> profile.
</para>
</listitem>
+ <listitem>
+ <para>
+ Now lxc containers don't use minimal profile.
+ </para>
+ </listitem>
<listitem>
<para>
There is a new module for the <literal>xfconf</literal>
diff --git a/nixos/doc/manual/release-notes/rl-2211.section.md b/nixos/doc/manual/release-notes/rl-2211.section.md
index b56be16127b..817262affd8 100644
--- a/nixos/doc/manual/release-notes/rl-2211.section.md
+++ b/nixos/doc/manual/release-notes/rl-2211.section.md
@@ -134,6 +134,8 @@ Use `configure.packages` instead.
- The minimal ISO image now use `nixos/modules/profiles/minimal.nix` profile.
+- Now lxc containers don't use minimal profile.
+
- There is a new module for the `xfconf` program (the Xfce configuration storage system), which has a dbus service.
<!-- To avoid merge conflicts, consider adding your item at an arbitrary place in the list instead. -->
diff --git a/nixos/modules/virtualisation/lxc-container.nix b/nixos/modules/virtualisation/lxc-container.nix
index d3a2e0ed151..b6b744dfbca 100644
--- a/nixos/modules/virtualisation/lxc-container.nix
+++ b/nixos/modules/virtualisation/lxc-container.nix
@@ -51,7 +51,6 @@ in
{
imports = [
../installer/cd-dvd/channel.nix
- ../profiles/minimal.nix
../profiles/clone-config.nix
];
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Or this variant: diff --git a/nixos/modules/virtualisation/lxc-container.nix b/nixos/modules/virtualisation/lxc-container.nix
index d3a2e0ed151..b6b4dcff1d0 100644
--- a/nixos/modules/virtualisation/lxc-container.nix
+++ b/nixos/modules/virtualisation/lxc-container.nix
@@ -55,6 +55,8 @@ in
../profiles/clone-config.nix
];
+ environment.noXlibs = lib.mkOverride 500 false;
+
options = {
virtualisation.lxc = {
templates = mkOption {
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @SuperSandro2000 Is there a consensus on this remark?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. noXlibs should not be enabled by default. It is an advanced setting that required multiple overrides to build on all my machines, which is not acceptable for normal users. logrotation should not be disabled in lxc otherwise your disk can completely fill up which should be avoided with good defaults. |
||
|
|
||
| services.udisks2.enable = mkDefault false; | ||
|
|
||
| xdg.autostart.enable = mkDefault false; | ||
| xdg.icons.enable = mkDefault false; | ||
| xdg.mime.enable = mkDefault false; | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.