summary refs log tree commit diff
path: root/nixos/modules/system
Commit message (Collapse)AuthorAge
* Include date and NixOS version in systemd-boot entriesGraham Christensen2017-09-02
| | | | | | | | | | | | | Grub configs include the NixOS version and date they were built, now systemd can have fun too: version Generation 99 NixOS 17.03.1700.51a83266d1, Linux Kernel 4.9.43, Built on 2017-08-30 version Generation 100 NixOS 17.03.1700.51a83266d1, Linux Kernel 4.9.43, Built on 2017-08-30 version Generation 101 NixOS 17.03.1700.51a83266d1, Linux Kernel 4.9.43, Built on 2017-08-31 version Generation 102 NixOS 17.03.1700.51a83266d1, Linux Kernel 4.9.43, Built on 2017-09-01 version Generation 103 NixOS 17.03.1700.51a83266d1, Linux Kernel 4.9.43, Built on 2017-09-02 version Generation 104 NixOS 17.09beta41.1b8c7786ee, Linux Kernel 4.9.46, Built on 2017-09-02 version Generation 105 NixOS 17.09.git.1b8c778, Linux Kernel 4.9.46, Built on 2017-09-02
* nixos/bcachefs: init moduledavidak2017-08-31
|
* grub module: assume /nix/store is a bind mount even if it is not read onlySymphorien Gibol2017-08-31
| | | | Fixes #14999
* switch-to-configuration: fix detection of changes between rebuilds for ↵danbst2017-08-22
| | | | | | | | | | | | | | | | | | | | | template instances This makes declarative containers truly reloadable. Current code already declares it: https://github.com/NixOS/nixpkgs/blob/56904d7c423f2b13b37fbd29f39bbb4b52bc7824/nixos/modules/virtualisation/containers.nix#L488 ``` restartIfChanged = false; ``` https://github.com/NixOS/nixpkgs/blob/56904d7c423f2b13b37fbd29f39bbb4b52bc7824/nixos/modules/virtualisation/containers.nix#L540 ``` reloadIfChanged = true; ``` Original author: @chrisfarms in https://github.com/NixOS/nixpkgs/pull/3021/commits/6e36619b277f78ece1bb81b79b5651897e46a2bf Most of stuff from that commit has already been ported.
* modules: specify some typesRobin Gloster2017-08-04
|
* modules/systemd: improve logind.extraConfig exampleProfpatsch2017-08-03
| | | | Since we have a .handleLidSwitch option now, give an other example.
* environment.etc: add user/group optionVolth2017-07-29
| | | | fixes #27546
* nixos/systemd-networkd: allow [Link] section in .network filesFlorian Jacob2017-07-29
|
* swap: extend randomEncryption to plainOpen and ability to select cipherMartin Wohlert2017-07-26
|
* Merge pull request #26912 from knedlsepp/fix-autoResizeGraham Christensen2017-07-16
|\ | | | | nixos: Force check the filesystem before resizing
| * Force check the filesystem before resizingJosef Kemetmueller2017-06-27
| | | | | | | | | | | | | | The message buffer of the kernel lists > Please run 'e2fsck -f /dev/disk/by-label/nixos' first. as the output of the command `resize2fs "$device"`. This fixes NixOS/nixpkgs#26910.
* | Merge pull request #27142 from florianjacob/resolved-multicastdns-supportJörg Thalheim2017-07-13
|\ \ | | | | | | networkd: Allow new MulticastDNS setting
| * | networkd: Allow new MulticastDNS settingFlorian Jacob2017-07-05
| | | | | | | | | | | | which gained an implementation in systemd v233
* | | systemd: paths and slices are supported for user units tooPeter Hoeg2017-07-13
| | |
* | | Merge branch 'master' into stagingVladimír Čunát2017-07-03
|\| |
| * | luksroot: fix typoSilvan Mosberger2017-07-02
| | |
* | | nixos/boot/stage-1: fix failing nixos-rebuild switch because of blkid outputChristian Albrecht2017-06-26
|/ / | | | | | | | | | | | | | | | | old version of blkid used to output version information including libblkid version when invoked with --help parameter new version does not output libblkid version when invoked with --help parameter fix is to invoke blkid with -V parameter to output version including libblkid in both cases
* | systemd-boot-builder.py: add support for profiles (#26318)Kai2017-06-24
| | | | | | | | | | | | | | | | | | | | * systemd-boot-builder.py: add support for profiles This will also list the generations of other profiles than `system` in the boot menu. See the documentation of the `--profile-name` option of nixos-rebuild for more information on profiles. * Fix errors introduced by previous commit
* | Merge pull request #26460 from romildo/fix.nixos-artworkJoachim F2017-06-13
|\ \ | | | | | | nixos-artwork: add more wallpapers
| * | nixos-artwork: add more wallpapersromildo2017-06-07
| |/ | | | | | | | | | | | | | | | | Restructure the nixos-artwork to make it easy to selectively incorporate other components from upstream without needing to download the full package. Until now only the Gnome_Dark wallpaper was included. Add other wallpapers available in the package repository.
* | nixos/bcache: /bin/sh -> ${bash}/bin/shBjørn Forsman2017-06-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Or else `services.udev.packages = [ bcache-tools ]` cannot be used. To not break bcache in the initrd I'm modifying this in stage-1.nix: - --replace /bin/sh ${extraUtils}/bin/sh + --replace ${bash}/bin/sh ${extraUtils}/bin/sh Reasoning behind that change: * If not modifying the /bin/sh pattern in any way, it will also match ${bash}/bin/sh, creating a broken path like /nix/store/HASH-bash/nix/store/HASH-bash/bin/sh in the udev rule file. * The addition of /bin/sh was done in 775f381a9e34 ("stage-1: add bcache support"). It seems somewhat plausible that no new users have appeared since then and we can take this opportunity to back out of this change without much fear of regressions. If there _are_ regressions, they should be in the form of build time errors, not runtime (boot), due to how the udev rule output is checked for invalid path references. So low risk, IMHO. * An alternative approach could be to copy the /bin/sh substitute rule over to the non-initrd udev rules implementation in NixOS, but I think this way is better: - The rules file comes with a working path out of the box. - We can use more precise pattern matching when modifying the udev rules for the initrd.
* | nixos: Add support for scalable fonts in Grub menus (#26227)Benjamin Staffin2017-06-10
|/ | | | | | The default font is unreadably small on some hidpi displays. This makes it possible to specify a TrueType or OpenType font at any point size, and it will automatically be converted to the format the Grub uses.
* systemd-nspawn: relax PrivateUsers checkJörg Thalheim2017-05-27
| | | | | this options allows two colon-separated number as value, for instances which is quite difficult to check.
* systemd-nspawn: fixes evaluation errorJörg Thalheim2017-05-27
| | | | fixes #25097
* services.logind: add options for lid-switch behaviorMaximilian Bosch2017-05-23
|
* systemd-nspawn: add NotifyRead fixupJörg Thalheim2017-05-20
|
* systemd-nspawn: add NotifyRead optionJörg Thalheim2017-05-20
|
* nixos/luks: Silence killall complain about non-existing cryptsetup processesRickard Nilsson2017-05-16
|
* systemd-boot: document reasoning behind syncfs(2)Jörg Thalheim2017-05-10
|
* systemd-boot: sync efi filesystem after updateJörg Thalheim2017-05-09
| | | | | | | Since fat32 provides little recovery facilities after a crash, it can leave the system in an unbootable state, when a crash/outage happens shortly after an update. To decrease the likelihood of this event sync the efi filesystem after each update.
* Merge pull request #25005 from Lassulus/copytoramJörg Thalheim2017-04-30
|\ | | | | nixos/stage1: add copytoram support
| * nixos/stage1: add copytoram supportlassulus2017-04-28
| |
* | nixos/grub: Add another example for extraEntriesaszlig2017-04-25
| | | | | | | | | | | | | | | | | | | | | | Someone on IRC wanted to boot Fedora from another disk. While I'm not too familiar with UEFI booting in conjunction with GRUB2 it took some time to get it to work. So in order to safe others from frustration I'm adding this as another example to the extraEntries option. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* | nixos/systemd-boot-builder: Don't write .pyc filesaszlig2017-04-20
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This has surfaced since d990aa716327abb018e8352dcf7ba2fcfb4fc34c. The "simpleUefiGummiboot" installer test fails since this commit, because that commit introduced a small check to verify whether the store was altered. While installing NixOS for the first time, the store is usually in /mnt/nix/store and without the read-only bind mount that's preventing programs from altering the store. So after nixos-install is done creating the system closure and setting it as the active system profile, the bootloader is written from the closure inside the chroot. The systemd-boot-builder is invoked during this step, which adds .pyc files for various Python modules of the Python 3 store path, which in turn invalidates the hash of the Python 3 store path itself. At the time the system is booted up again, the nix-store is verified and fails with something like this: path /nix/store/zvm545rqc4d97caqq9h7344bnd06jhzb-python3-3.5.3 was modified! expected hash b2c975f4b8d197443fbb09690fb3f6545e165dd44c9309d7d6df2fce0579ebeb, got bccca19f39c9d26d857ccf1fb72818b2b817967e6d497a25a1283e36ed0acf01 Running the interpreter with the -B argument prevents Python from writing those byte code files: https://docs.python.org/3/using/cmdline.html#cmdoption-B Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* Revert "grub module: fix efiInstallAsRemovable description"Vladimír Čunát2017-04-18
| | | | | | | | | This reverts commit c2b56626f1a872d06642777193b72d6473c8b97c. It broke creating the manual. I suspect the descriptions are auto-wrapped by <para> and </para>. We've been through this already in 3af715af90. /cc #24978, @zraexy, @Mic92.
* grub module: fix efiInstallAsRemovable descriptionzraexy2017-04-17
|
* nixos: escape brackets in systemd unitsDomen Kožar2017-04-12
| | | | | | One day we should just whitelist instead of blacklist chars. Fixes https://github.com/NixOS/nixops/issues/614
* Merge pull request #24645 from Mic92/stage-2Jörg Thalheim2017-04-08
|\ | | | | Stage-2 cleanup
| * stage-2: shellsheck recommendationsJörg Thalheim2017-04-05
| |
| * stage-2: reduce mkdir commandsJörg Thalheim2017-04-05
| |
| * stage-2: process options as first actionJörg Thalheim2017-04-05
| | | | | | | | this way `set -x` is set early
| * stage-2: replace readonly-mountpoint by findmntJörg Thalheim2017-04-05
| |
| * stage-2: simplify exporting pathJörg Thalheim2017-04-05
| |
* | luksroot: Wait for the header (device) to appearMichael Weiss2017-04-05
|/ | | | | | | | | The LUKS header can be on another device (e.g. a USB stick). In my case it can take up to two seconds until the partition on my USB stick is available (i.e. the decryption fails without this patch). This will also remove some redundancy by providing the shell function `wait_target` and slightly improve the output (one "." per second and a success/failure indication after 10 seconds instead of always printing "ok").
* Allow systemd-fsck@.service to find fsck.*Eelco Dolstra2017-04-04
| | | | Fixes "fsck.ext4 doesn't exist, not checking file system on ...".
* Don't restart systemd-fsck@ unitsEelco Dolstra2017-04-04
| | | | | | | | Restarting them is useless since the filesystem is already checked. Worse, restarting them causes the filesystem to be unmounted. Also remove an override for systemd-rkill@.service which no longer exists.
* initrd-ssh: Use initrd secrets for host keysShea Levy2017-04-02
|
* systemd-boot: Support initrd secretsShea Levy2017-04-02
|
* Add facility to append secrets to the initrdShea Levy2017-04-02
|
* grub module: fix useOSProber when installing grub as EFISymphorien Gibol2017-03-23
|