summaryrefslogtreecommitdiffstats
path: root/nixos/modules/profiles
AgeCommit message (Collapse)Author
2024-07-30nixos/nix: move trusted-user to configSandro Jäckel
This avoids having to define root when trying to add another user as trusted user, similar to the other options.
2024-07-26Merge remote-tracking branch 'origin/master' into staging-nextMartin Weinelt
Conflicts: - pkgs/applications/graphics/seamly2d/default.nix
2024-07-26nixos/installer: ship only one mbrola voice per languageK900
This reduces the size of mbrola-voices by 387M (647M -> 260M) for all installers that ship with speechd, to make sure that they fit the output limits of hydra while not compromising too much on accessbility. Co-authored-by: Martin Weinelt <hexa@darmstadt.ccc.de>
2024-07-26treewide: remove unused lib (and other) argumentsSigmanificient
2024-07-18Merge pull request #317623 from jmbaur/stc-ng-followupSandro
2024-07-07profiles/qemu_guest: add virtio_gpu to initrdHugh O'Brien
2024-07-04Merge pull request #276507 from clefru/no-hwclockFranz Pletz
2024-06-21nixos/perlless: fix perl showing up!Jared Baur
The install-grub script is perl, so the perlless profile should disable it by default.
2024-06-21nixos/perlless: enable switch-to-configuration-ng for perlless profileJared Baur
The switch-to-configuration-ng program provides a perl-free way of switching nixos systems, we can use it for the perlless profile.
2024-05-02nixos/top-level: Rename `system.forbiddenDependenciesRegex` to ↵Christian Kampka
`system.forbiddenDependenciesRegexes` and turn it in to a list. The current setting of system.forbiddenDependenciesRegex is a string, meaning only one such regex as any additional setting would result in conflicts. As maintainers have already started using this setting eg. in profiles, it would be good if this setting would accept a list of regex to allow the end user to make use of it in addition to package maintainers.
2024-04-17treewide: reanme renamed libinput optionsSandro Jäckel
2024-04-16profiles/graphical:rename services.xserver.displayManagerJulian Stecklina
2024-04-16profiles/demo: rename services.xserver.displayManagerJulian Stecklina
2024-04-13nixos: remove all uses of lib.mdDocstuebinm
these changes were generated with nixq 0.0.2, by running nixq ">> lib.mdDoc[remove] Argument[keep]" --batchmode nixos/**.nix nixq ">> mdDoc[remove] Argument[keep]" --batchmode nixos/**.nix nixq ">> Inherit >> mdDoc[remove]" --batchmode nixos/**.nix two mentions of the mdDoc function remain in nixos/, both of which are inside of comments. Since lib.mdDoc is already defined as just id, this commit is a no-op as far as Nix (and the built manual) is concerned.
2024-03-25Merge pull request #293846 from amarshall/darwin-linux-builder-fail-on-errorRobert Hensing
darwin.linux-builder: Exit scripts on error
2024-03-24nixos/profile/all-hardware: remove simplefbK900
It's simpledrm now and it's compiled in.
2024-03-15darwin.linux-builder: Exit scripts on errorAndrew Marshall
For example, if the user decided to ctrl-c upon getting the sudo password prompt, the script previously continued on to start the VM, but that should not be the case.
2024-01-27nixos/hardened: update hardened profile to new recommendationsTamara Schmitz
Borrowing from here to match hardened profile with more recent kernels: * https://madaidans-insecurities.github.io/guides/linux-hardening.html?#boot-parameters * https://github.com/a13xp0p0v/kernel-hardening-checker/ Removed "slub_debug" as that option disables kernel memory address hashing. You also see a big warning about this in the dmesg: "This system shows unhashed kernel memory addresses via the console, logs, and other interfaces." "init_on_alloc=1" and "init_on_free=1" zeroes all SLAB and SLUB allocations. Introduced in 6471384af2a6530696fc0203bafe4de41a23c9ef. Also the default for the Android Google kernel btw. It is on by default through the KConfig. "slab_nomerge" prevents the merging of slab/slub caches. These are effectively slab/slub pools. "LEGACY_VSYSCALL_NONE" disables the older vsyscall mechanic that relies on static address. It got superseeded by vdsos a decade ago. Read some LWN.net to learn more ;) "debugfs=off" I'm sure there are some few userspace programs that rely on debugfs, but they shouldn't. Most other things mentioned on the blog where already the default on a running machine or may not be applicable. Most other Kconfigs changes come from the kernel hardening checker and were added, when they were not applied to the kernel already. Unsure about CONFIG_STATIC_USERMODEHELPER. Would need testing.
2024-01-26Merge pull request #283244 from bjornfor/nixos-add-polkit-to-installation-deviceRyan Lahfa
nixos/installation-device: enable polkit
2024-01-23nixos/installation-device: enable polkitBjørn Forsman
Polkit enables running 'reboot' and 'poweroff' in the installer without being root, and non-root is the default login for a few NixOS releases now. There's no size increase in the minimal ISO: $ git checkout nixpkgs-unstable $ nix-build -A config.system.build.isoImage -I nixos-config=nixos/modules/installer/cd-dvd/installation-cd-minimal.nix nixos/default.nix && du -sc ./result/iso/*.iso /nix/store/bfvbvrrqjmnqqhyqyxc0w32gagdz2rya-nixos-24.05.git.1149dab64e7-x86_64-linux.iso 998404 ./result/iso/nixos-24.05.git.1149dab64e7-x86_64-linux.iso 998404 total $ git checkout THIS_COMMIT $ nix-build -A config.system.build.isoImage -I nixos-config=nixos/modules/installer/cd-dvd/installation-cd-minimal.nix nixos/default.nix && du -sc ./result/iso/*.iso /nix/store/l9x9rwlvfddnri70h1ifx865q0cvka5l-nixos-24.05.git.1149dab64e7-x86_64-linux.iso 998404 ./result/iso/nixos-24.05.git.1149dab64e7-x86_64-linux.iso 998404 total
2024-01-22nixos/profiles/perlless: initnikstur
2023-12-25Merge pull request #273308 from Stunkymonkey/install-device-fix-mdadmLinus Heckemann
nixos/installation-device: remove warning about mdadm
2023-12-24qemu-guest: Remove hwclock workaround as it breaks xtime on VMs.Clemens Fruhwirth
2023-12-11nixos/stub-ld: init moduleJeff Huffman
2023-12-10nixos/installation-device: remove warning about mdadmFelix Buehler
2023-11-28Merge pull request #268574 from hercules-ci/linux-builder-no-evalAtemu
darwin.linux-builder: Disable evaluation
2023-11-26Merge pull request #256159 from YtvwlD/yamaThiago Kenji Okada
nixos/sysctl: Stop disabling yama by default
2023-11-19darwin.linux-builder: Disable installer toolsRobert Hensing
2023-11-19darwin.linux-builder: Disable evaluationRobert Hensing
A remote builder does not need to evaluate anything, so let's trim it down to (eventually) save some space, and make the purpose of the builder clear. Users should evaluate on the host instead.
2023-10-28nixos/profiles: add image-based-appliance profileJulian Stecklina
2023-10-28nixos/profiles/minimal: remove some perlnikstur
2023-10-19nixos/sysctl: Enable Yama by defaultNiklas Sombert
Yama is a LSM which restricts debugging. This prevents processes from snooping on another. It can be easily disabled with sysctl. This was initially included in #14392 and disabled by default by 86721a5f78718caf10c578e9501f8b4d19c0eb44. This has been part of the hardened configuration, but many other distros ship this for quite some time (Ubuntu for about ten years), so I'd say it might make sense to enable this per default.
2023-10-12darwin.linux-builder: Expose nixosConfig and nixosOptions attributesRobert Hensing
I chose not to do nixos.{config, options} because that would make it look too much like a configuration object, which it is not. A configuration object I would define as for example the result of calling NixOS, an attrset with `_type = "configuration";`. Recreating a configuration object without evalModules is quite feasible but not guaranteed to be correct, and not maintainable.
2023-10-12darwin.linux-builder: Set meta.positionRobert Hensing
2023-10-04systemd-stage-1: Default to full systemd build.Will Fancher
2023-08-07nixos/installation-device: allow nix-copy for root/nixos userJörg Thalheim
For non-interactive installation it's quite handy to be able to nix copy additional dependencies to the system. While this is possible for the root user, we cannot easily ssh into it, as we don't allow root login with a password. By making nixos a trusted user, we can do "passwd && sudo systemctl start sshd" and than run nixos-anywhere
2023-07-23linux-builder: fix eval failureMichael Hoang
2023-07-10boot.initrd.services.swraid -> boot.swraidLinus Heckemann
Since the option affects both stage-1 and stage-2, it does not make sense to keep it within the boot.initrd namespace.
2023-07-10nixos/swraid: make entire module optionalLinus Heckemann
swraid support will now only be enabled by default if stateVersion is older than 23.11. nixos-generate-config will now generate explicit config for enabling support if needed.
2023-07-06darwin.linux-builder: rename from `darwin.builder`Michael Hoang
2023-07-06darwin.builder: allow overriding configurationMichael Hoang
2023-07-06nixos/qemu-vm: use CA certificates from hostMichael Hoang
2023-07-06darwin.builder: use port 31022 by defaultMichael Hoang
2023-07-01Merge pull request #178610 from Et7f3/headless-remove-vesaJanik
2023-04-08nixos/installer: update getty help messageBjørn Forsman
I think this is clearer.
2023-04-08nixos/installation-device.nix: improve comment about ssh loginBjørn Forsman
root is not the only user that can login (user "nixos" can too), so generalize the wording.
2023-04-07nixos/darwin-builder: add disk space options (#224480)Geraint Ballinger
2023-03-03nixos/profiles/base: remove duplicate and optimize fsPackagesIzorkin
2023-03-03nixos/profiles/base: remove duplicate systemPackagesIzorkin
2023-01-17Merge pull request #208956 from SuperSandro2000/profile-base-tcpdumpSandro