Skip to content
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

treewide/nixos: remove with lib; part 6 #337780

Draft
wants to merge 153 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
153 commits
Select commit Hold shift + click to select a range
735eaa5
nixos/modules/installer/netboot/netboot-base.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
b558874
nixos/modules/installer/netboot/netboot.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
d130409
nixos/modules/profiles/headless.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
561b36d
nixos/modules/profiles/installation-device.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
5c884d2
nixos/modules/security/rtkit.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
13ef2a0
nixos/modules/services/cluster/kubernetes/kubelet.nix: remove `with l…
Stunkymonkey Aug 28, 2024
16f1ab5
nixos/modules/services/cluster/kubernetes/pki.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
6b6ff08
nixos/modules/services/cluster/kubernetes/proxy.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
a2d6fe1
nixos/modules/services/continuous-integration/gocd-server/default.nix…
Stunkymonkey Aug 28, 2024
1f050d4
nixos/modules/services/networking/icecream/daemon.nix: remove `with l…
Stunkymonkey Aug 28, 2024
85d04bb
nixos/modules/services/networking/icecream/scheduler.nix: remove `wit…
Stunkymonkey Aug 28, 2024
87f9e2b
nixos/modules/services/networking/ircd-hybrid/default.nix: remove `wi…
Stunkymonkey Aug 28, 2024
e767539
nixos/modules/services/networking/iscsi/target.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
00a1ec1
nixos/modules/services/networking/jibri/default.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
b2859ec
nixos/modules/services/networking/keepalived/default.nix: remove `wit…
Stunkymonkey Aug 28, 2024
a1d6cf0
nixos/modules/services/networking/keepalived/virtual-ip-options.nix: …
Stunkymonkey Aug 28, 2024
ba1fa5d
nixos/modules/services/networking/keepalived/vrrp-instance-options.ni…
Stunkymonkey Aug 28, 2024
de74a54
nixos/modules/services/networking/keepalived/vrrp-script-options.nix:…
Stunkymonkey Aug 28, 2024
156bdb5
nixos/modules/services/networking/ntp/chrony.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
1a1d7bd
nixos/modules/services/networking/ntp/ntpd.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
3bfa113
nixos/modules/services/networking/ntp/openntpd.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
bdbd160
nixos/modules/services/networking/scion/scion-control.nix: remove `wi…
Stunkymonkey Aug 28, 2024
858592b
nixos/modules/services/networking/scion/scion-daemon.nix: remove `wit…
Stunkymonkey Aug 28, 2024
2a80c9c
nixos/modules/services/networking/scion/scion-dispatcher.nix: remove …
Stunkymonkey Aug 28, 2024
c1c98cb
nixos/modules/services/networking/scion/scion-router.nix: remove `wit…
Stunkymonkey Aug 28, 2024
f742585
nixos/modules/services/networking/scion/scion.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
c270b9e
nixos/modules/services/networking/strongswan-swanctl/module.nix: remo…
Stunkymonkey Aug 28, 2024
a3b8546
nixos/modules/services/networking/strongswan-swanctl/param-constructo…
Stunkymonkey Aug 28, 2024
4aa15b5
nixos/modules/services/networking/strongswan-swanctl/param-lib.nix: r…
Stunkymonkey Aug 28, 2024
59f49e0
nixos/modules/services/networking/v2raya.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
ea9a086
nixos/modules/services/networking/vdirsyncer.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
a3de52b
nixos/modules/services/networking/vsftpd.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
1872fbd
nixos/modules/services/networking/webhook.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
82171ac
nixos/modules/services/networking/websockify.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
bdfa35b
nixos/modules/services/networking/wg-netmanager.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
f4bb99a
nixos/modules/services/networking/wg-quick.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
8955953
nixos/modules/services/networking/wgautomesh.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
d280dac
nixos/modules/services/networking/wpa_supplicant.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
e8b7703
nixos/modules/services/networking/x2goserver.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
cc3b8be
nixos/modules/services/networking/xandikos.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
66dad23
nixos/modules/services/networking/xinetd.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
8fc79af
nixos/modules/services/networking/xl2tpd.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
1722fda
nixos/modules/services/networking/xray.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
49e40c6
nixos/modules/services/networking/xrdp.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
fbd712b
nixos/modules/services/networking/yggdrasil.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
167fd99
nixos/modules/services/networking/zerobin.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
2f0a87d
nixos/modules/services/networking/zerotierone.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
c5c7838
nixos/modules/services/networking/znc/default.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
48591c6
nixos/modules/services/networking/znc/options.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
c0df8cc
nixos/modules/services/printing/cupsd.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
84cb185
nixos/modules/services/scheduling/atd.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
1d95d9c
nixos/modules/services/scheduling/cron.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
65d6710
nixos/modules/services/scheduling/fcron.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
632051f
nixos/modules/services/search/elasticsearch-curator.nix: remove `with…
Stunkymonkey Aug 28, 2024
ecb761a
nixos/modules/services/search/elasticsearch.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
5223a95
nixos/modules/services/search/manticore.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
2ee0e0b
nixos/modules/services/search/meilisearch.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
70dc329
nixos/modules/services/search/opensearch.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
fdd285a
nixos/modules/services/search/qdrant.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
1125051
nixos/modules/services/search/quickwit.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
d348dae
nixos/modules/services/security/aesmd.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
319982d
nixos/modules/services/security/certmgr.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
5f56108
nixos/modules/services/security/cfssl.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
2468c3a
nixos/modules/services/security/clamav.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
4165548
nixos/modules/services/security/endlessh-go.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
cba64a2
nixos/modules/services/security/endlessh.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
03aff14
nixos/modules/services/security/fail2ban.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
c651b2b
nixos/modules/services/security/fprintd.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
106dfd1
nixos/modules/services/security/haka.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
1fc3788
nixos/modules/services/security/haveged.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
b1af6f2
nixos/modules/services/security/hologram-agent.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
07da692
nixos/modules/services/security/hologram-server.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
a32e489
nixos/modules/services/security/infnoise.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
c86d01f
nixos/modules/services/security/munge.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
8e86226
nixos/modules/services/security/nginx-sso.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
7265133
nixos/modules/services/security/opensnitch.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
1cc69a3
nixos/modules/services/security/pass-secret-service.nix: remove `with…
Stunkymonkey Aug 28, 2024
2be9867
nixos/modules/services/security/physlock.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
c84ded0
nixos/modules/services/security/sks.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
b7edb20
nixos/modules/services/security/sshguard.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
2b45f8d
nixos/modules/services/security/sslmate-agent.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
7c104fb
nixos/modules/services/security/tang.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
9bd299b
nixos/modules/services/security/tor.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
58f7be0
nixos/modules/services/security/torify.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
82a9adb
nixos/modules/services/security/torsocks.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
61cebaa
nixos/modules/services/security/usbguard.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
dcb4de3
nixos/modules/services/security/vault-agent.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
7b60af0
nixos/modules/services/security/vault.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
f9094f1
nixos/modules/services/security/yubikey-agent.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
3d384a7
nixos/modules/services/system/automatic-timezoned.nix: remove `with l…
Stunkymonkey Aug 28, 2024
50ff4d8
nixos/modules/services/system/cachix-agent/default.nix: remove `with …
Stunkymonkey Aug 28, 2024
a9b6291
nixos/modules/services/system/cachix-watch-store.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
f42c270
nixos/modules/services/system/cloud-init.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
d0452fe
nixos/modules/services/system/localtimed.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
6c1f9aa
nixos/modules/services/system/nix-daemon.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
2a822aa
nixos/modules/services/system/nscd.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
0862b60
nixos/modules/services/system/saslauthd.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
922052c
nixos/modules/services/system/uptimed.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
2cce96c
nixos/modules/services/torrent/deluge.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
988a913
nixos/modules/services/torrent/flexget.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
baa07e4
nixos/modules/services/torrent/magnetico.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
8ee4f2c
nixos/modules/services/torrent/opentracker.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
13dc755
nixos/modules/services/torrent/peerflix.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
04abe8d
nixos/modules/services/torrent/rtorrent.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
f0f0f06
nixos/modules/services/torrent/transmission.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
e8cf5da
nixos/modules/services/ttys/getty.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
edf81e8
nixos/modules/services/ttys/gpm.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
b33b727
nixos/modules/services/video/mirakurun.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
71284d6
nixos/modules/services/video/unifi-video.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
92013e3
nixos/modules/services/wayland/cage.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
6410a81
nixos/modules/services/web-apps/akkoma.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
17b129d
nixos/modules/services/web-apps/alps.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
07d0835
nixos/modules/services/web-apps/audiobookshelf.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
a65dad0
nixos/modules/services/web-apps/bookstack.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
4c966c0
nixos/modules/services/web-apps/changedetection-io.nix: remove `with …
Stunkymonkey Aug 28, 2024
b243e32
nixos/modules/services/web-apps/chatgpt-retrieval-plugin.nix: remove …
Stunkymonkey Aug 28, 2024
7bd1471
nixos/modules/services/web-apps/cloudlog.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
619839c
nixos/modules/services/web-apps/coder.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
e574cd4
nixos/modules/services/web-apps/convos.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
ed9028e
nixos/modules/services/web-apps/dex.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
d0ffdf6
nixos/modules/services/web-apps/documize.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
d65afac
nixos/modules/services/web-apps/dokuwiki.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
622b6a2
nixos/modules/services/web-apps/eintopf.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
e228c47
nixos/modules/services/web-apps/ethercalc.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
76b4a25
nixos/modules/services/web-apps/flarum.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
a1c636c
nixos/modules/services/web-apps/fluidd.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
c25e458
nixos/modules/services/web-apps/freshrss.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
958b605
nixos/modules/services/web-apps/galene.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
aefd98d
nixos/modules/services/web-apps/gerrit.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
ed7e2c5
nixos/modules/services/web-apps/grocy.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
6ae942c
nixos/modules/services/web-apps/healthchecks.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
00324ca
nixos/modules/services/web-apps/hledger-web.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
02096fa
nixos/modules/services/web-apps/invoiceplane.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
b79f669
nixos/modules/services/web-apps/jirafeau.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
c50074a
nixos/modules/services/web-apps/jitsi-meet.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
01a0bc6
nixos/modules/services/web-apps/lemmy.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
20fea76
nixos/modules/services/x11/window-managers/jwm.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
3d3eafc
nixos/modules/services/x11/window-managers/tinywm.nix: remove `with l…
Stunkymonkey Aug 28, 2024
4f65efd
nixos/modules/services/x11/window-managers/twm.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
d91e74b
nixos/modules/services/x11/window-managers/wmderland.nix: remove `wit…
Stunkymonkey Aug 28, 2024
ce70f8a
nixos/modules/services/x11/window-managers/wmii.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
e9b5a82
nixos/modules/services/x11/xfs.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
765c9f7
nixos/modules/system/activation/activation-script.nix: remove `with l…
Stunkymonkey Aug 28, 2024
0e27461
nixos/modules/system/activation/no-clone.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
585d170
nixos/modules/system/activation/top-level.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
edf36c3
nixos/modules/system/boot/loader/init-script/init-script.nix: remove …
Stunkymonkey Aug 28, 2024
8744f9a
nixos/modules/system/boot/loader/raspberrypi/raspberrypi.nix: remove …
Stunkymonkey Aug 28, 2024
b5150fb
nixos/modules/tasks/filesystems/exfat.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
55b24d2
nixos/modules/tasks/filesystems/vboxsf.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
1489249
nixos/modules/tasks/filesystems/vfat.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
7c55569
nixos/modules/tasks/filesystems/xfs.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
c2f60b2
nixos/modules/tasks/trackpoint.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
3b37d76
nixos/modules/virtualisation/digital-ocean-init.nix: remove `with lib;`
Stunkymonkey Aug 28, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions nixos/modules/installer/netboot/netboot-base.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
# This module contains the basic configuration for building netboot
# images

{ lib, ... }:

with lib;

{
imports =
[ ./netboot.nix
Expand Down
20 changes: 8 additions & 12 deletions nixos/modules/installer/netboot/netboot.nix
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
# This module creates netboot media containing the given NixOS
# configuration.

{ config, lib, pkgs, ... }:

with lib;

{
options = {

netboot.squashfsCompression = mkOption {
netboot.squashfsCompression = lib.mkOption {
default = with pkgs.stdenv.hostPlatform; "xz -Xdict-size 100% "
+ lib.optionalString isx86 "-Xbcj x86"
# Untested but should also reduce size for these platforms
Expand All @@ -19,11 +15,11 @@ with lib;
Compression settings to use for the squashfs nix store.
'';
example = "zstd -Xcompression-level 6";
type = types.str;
type = lib.types.str;
};

netboot.storeContents = mkOption {
example = literalExpression "[ pkgs.stdenv ]";
netboot.storeContents = lib.mkOption {
example = lib.literalExpression "[ pkgs.stdenv ]";
description = ''
This option lists additional derivations to be included in the
Nix store in the generated netboot image.
Expand All @@ -37,27 +33,27 @@ with lib;
# here and it causes a cyclic dependency.
boot.loader.grub.enable = false;

fileSystems."/" = mkImageMediaOverride
fileSystems."/" = lib.mkImageMediaOverride
{ fsType = "tmpfs";
options = [ "mode=0755" ];
};

# In stage 1, mount a tmpfs on top of /nix/store (the squashfs
# image) to make this a live CD.
fileSystems."/nix/.ro-store" = mkImageMediaOverride
fileSystems."/nix/.ro-store" = lib.mkImageMediaOverride
{ fsType = "squashfs";
device = "../nix-store.squashfs";
options = [ "loop" ];
neededForBoot = true;
};

fileSystems."/nix/.rw-store" = mkImageMediaOverride
fileSystems."/nix/.rw-store" = lib.mkImageMediaOverride
{ fsType = "tmpfs";
options = [ "mode=0755" ];
neededForBoot = true;
};

fileSystems."/nix/store" = mkImageMediaOverride
fileSystems."/nix/store" = lib.mkImageMediaOverride
{ overlay = {
lowerdir = [ "/nix/.ro-store" ];
upperdir = "/nix/.rw-store/store";
Expand Down
4 changes: 0 additions & 4 deletions nixos/modules/profiles/headless.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
# Common configuration for headless machines (e.g., Amazon EC2
# instances).

{ lib, ... }:

with lib;

{
# Don't start a tty on the serial consoles.
systemd.services."serial-getty@ttyS0".enable = lib.mkDefault false;
Expand Down
19 changes: 8 additions & 11 deletions nixos/modules/profiles/installation-device.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
# Provide a basic configuration for installation devices like CDs.
{ config, pkgs, lib, ... }:

with lib;

{
imports =
[ # Enable devices which are usually scanned, because we don't know the
Expand All @@ -23,10 +20,10 @@ with lib;
system.nixos.variant_id = lib.mkDefault "installer";

# Enable in installer, even if the minimal profile disables it.
documentation.enable = mkImageMediaOverride true;
documentation.enable = lib.mkImageMediaOverride true;

# Show the manual.
documentation.nixos.enable = mkImageMediaOverride true;
documentation.nixos.enable = lib.mkImageMediaOverride true;

# Use less privileged nixos user
users.users.nixos = {
Expand All @@ -44,8 +41,8 @@ with lib;

# Allow passwordless sudo from nixos user
security.sudo = {
enable = mkDefault true;
wheelNeedsPassword = mkImageMediaOverride false;
enable = lib.mkDefault true;
wheelNeedsPassword = lib.mkImageMediaOverride false;
};

# Automatically log in at the virtual consoles.
Expand All @@ -62,7 +59,7 @@ with lib;
If you need a wireless connection, type
`sudo systemctl start wpa_supplicant` and configure a
network using `wpa_cli`. See the NixOS manual for details.
'' + optionalString config.services.xserver.enable ''
'' + lib.optionalString config.services.xserver.enable ''

Type `sudo systemctl start display-manager' to
start the graphical user interface.
Expand All @@ -79,9 +76,9 @@ with lib;
};

# Enable wpa_supplicant, but don't start it by default.
networking.wireless.enable = mkDefault true;
networking.wireless.enable = lib.mkDefault true;
networking.wireless.userControlled.enable = true;
systemd.services.wpa_supplicant.wantedBy = mkOverride 50 [];
systemd.services.wpa_supplicant.wantedBy = lib.mkOverride 50 [];

# Tell the Nix evaluator to garbage collect more aggressively.
# This is desirable in memory-constrained environments that don't
Expand Down Expand Up @@ -114,7 +111,7 @@ with lib;
# Show all debug messages from the kernel but don't log refused packets
# because we have the firewall enabled. This makes installs from the
# console less cumbersome if the machine has a public IP.
networking.firewall.logRefusedConnections = mkDefault false;
networking.firewall.logRefusedConnections = lib.mkDefault false;

# Prevent installation media from evacuating persistent storage, as their
# var directory is not persistent and it would thus result in deletion of
Expand Down
10 changes: 3 additions & 7 deletions nixos/modules/security/rtkit.nix
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
# A module for ‘rtkit’, a DBus system service that hands out realtime
# scheduling priority to processes that ask for it.

{ config, lib, pkgs, ... }:

with lib;

{

options = {

security.rtkit.enable = mkOption {
type = types.bool;
security.rtkit.enable = lib.mkOption {
type = lib.types.bool;
default = false;
description = ''
Whether to enable the RealtimeKit system service, which hands
Expand All @@ -23,7 +19,7 @@ with lib;
};


config = mkIf config.security.rtkit.enable {
config = lib.mkIf config.security.rtkit.enable {

security.polkit.enable = true;

Expand Down
Loading