summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--maintainers/maintainer-list.nix5
-rw-r--r--nixos/doc/manual/release-notes/rl-1903.xml10
-rw-r--r--nixos/modules/installer/tools/nixos-generate-config.pl2
-rw-r--r--nixos/modules/rename.nix3
-rw-r--r--nixos/modules/services/hardware/tlp.nix4
-rw-r--r--nixos/modules/services/networking/shairport-sync.nix2
-rw-r--r--nixos/modules/services/networking/ssh/sshd.nix5
-rw-r--r--nixos/modules/tasks/cpu-freq.nix71
-rw-r--r--pkgs/applications/altcoins/namecoin.nix4
-rw-r--r--pkgs/applications/audio/faust/faustlive.nix4
-rw-r--r--pkgs/applications/editors/neovim/default.nix4
-rw-r--r--pkgs/applications/editors/neovim/neovim-remote.nix4
-rw-r--r--pkgs/applications/editors/sublime/3/packages.nix6
-rw-r--r--pkgs/applications/graphics/wings/default.nix29
-rw-r--r--pkgs/applications/misc/digitalbitbox/default.nix4
-rw-r--r--pkgs/applications/misc/fsv/default.nix47
-rw-r--r--pkgs/applications/misc/pwsafe/default.nix4
-rw-r--r--pkgs/applications/misc/rofi/config.patch54
-rw-r--r--pkgs/applications/misc/rofi/default.nix12
-rw-r--r--pkgs/applications/misc/translate-shell/default.nix4
-rw-r--r--pkgs/applications/misc/visidata/default.nix4
-rw-r--r--pkgs/applications/misc/xterm/default.nix4
-rw-r--r--pkgs/applications/networking/instant-messengers/fractal/default.nix43
-rw-r--r--pkgs/applications/networking/instant-messengers/toxic/default.nix4
-rw-r--r--pkgs/applications/office/gnucash/2.4.nix91
-rw-r--r--pkgs/applications/office/gnucash/2.6.nix116
-rw-r--r--pkgs/applications/office/trilium/default.nix58
-rw-r--r--pkgs/applications/science/electronics/kicad/default.nix4
-rw-r--r--pkgs/applications/version-management/git-and-tools/git-remote-gcrypt/default.nix4
-rw-r--r--pkgs/applications/version-management/gitkraken/default.nix11
-rw-r--r--pkgs/data/fonts/cantarell-fonts/default.nix6
-rw-r--r--pkgs/data/fonts/cooper-hewitt/default.nix22
-rw-r--r--pkgs/data/fonts/droid/default.nix64
-rw-r--r--pkgs/data/fonts/font-awesome-5/default.nix8
-rw-r--r--pkgs/data/fonts/inter-ui/default.nix4
-rw-r--r--pkgs/data/fonts/iosevka/bin.nix4
-rw-r--r--pkgs/data/fonts/material-design-icons/default.nix4
-rw-r--r--pkgs/development/compilers/dmd/default.nix21
-rw-r--r--pkgs/development/compilers/ldc/default.nix139
-rw-r--r--pkgs/development/haskell-modules/configuration-common.nix21
-rw-r--r--pkgs/development/haskell-modules/hackage-packages.nix6
-rw-r--r--pkgs/development/interpreters/perl/default.nix9
-rw-r--r--pkgs/development/interpreters/perl/no-sys-dirs-5.29.patch251
-rw-r--r--pkgs/development/libraries/esdl/default.nix32
-rw-r--r--pkgs/development/libraries/goffice/0.8.nix38
-rw-r--r--pkgs/development/libraries/goffice/pcre_info.patch13
-rw-r--r--pkgs/development/libraries/libqrencode/default.nix35
-rw-r--r--pkgs/development/libraries/libxmlb/default.nix4
-rw-r--r--pkgs/development/libraries/qrencode/default.nix47
-rw-r--r--pkgs/development/libraries/science/math/suitesparse/default.nix11
-rw-r--r--pkgs/development/libraries/sqlcipher/default.nix4
-rw-r--r--pkgs/development/libraries/sundials/default.nix4
-rw-r--r--pkgs/development/libraries/wolfssl/default.nix4
-rw-r--r--pkgs/development/python-modules/blockdiagcontrib-cisco/default.nix25
-rw-r--r--pkgs/development/python-modules/channels/default.nix4
-rw-r--r--pkgs/development/python-modules/curve25519-donna/default.nix18
-rw-r--r--pkgs/development/python-modules/pyatv/default.nix24
-rw-r--r--pkgs/development/python-modules/pybotvac/default.nix20
-rw-r--r--pkgs/development/python-modules/pytado/default.nix21
-rw-r--r--pkgs/development/python-modules/srptools/default.nix22
-rw-r--r--pkgs/development/python-modules/stem/default.nix4
-rw-r--r--pkgs/development/python-modules/zodbpickle/default.nix4
-rw-r--r--pkgs/development/tools/build-managers/dub/default.nix4
-rw-r--r--pkgs/development/tools/build-managers/sbt/default.nix4
-rw-r--r--pkgs/development/tools/documentation/doxygen/default.nix7
-rw-r--r--pkgs/development/tools/dtools/default.nix6
-rw-r--r--pkgs/development/tools/literate-programming/Literate/default.nix6
-rw-r--r--pkgs/development/tools/misc/cproto/default.nix32
-rw-r--r--pkgs/games/anki/default.nix16
-rw-r--r--pkgs/games/frogatto/data.nix26
-rw-r--r--pkgs/games/frogatto/default.nix43
-rw-r--r--pkgs/games/frogatto/engine.nix50
-rw-r--r--pkgs/misc/vim-plugins/generated.nix10
-rw-r--r--pkgs/misc/vim-plugins/vim-plugin-names1
-rw-r--r--pkgs/misc/vim-plugins/vim-utils.nix70
-rw-r--r--pkgs/os-specific/linux/conky/default.nix4
-rw-r--r--pkgs/os-specific/linux/google-authenticator/default.nix2
-rw-r--r--pkgs/os-specific/linux/kernel/linux-hardkernel-4.14.nix6
-rw-r--r--pkgs/os-specific/linux/lxc/default.nix4
-rw-r--r--pkgs/servers/home-assistant/component-packages.nix22
-rw-r--r--pkgs/servers/sql/postgresql/default.nix6
-rw-r--r--pkgs/stdenv/linux/bootstrap-files/x86_64-musl.nix8
-rw-r--r--pkgs/stdenv/native/default.nix2
-rw-r--r--pkgs/tools/graphics/qrencode/default.nix21
-rw-r--r--pkgs/tools/misc/sdate/default.nix19
-rw-r--r--pkgs/tools/misc/woeusb/default.nix4
-rw-r--r--pkgs/tools/misc/xdaliclock/default.nix4
-rw-r--r--pkgs/tools/networking/spoofer/default.nix4
-rw-r--r--pkgs/tools/networking/tcpreplay/default.nix4
-rw-r--r--pkgs/tools/security/asc-key-to-qr-code-gif/default.nix6
-rw-r--r--pkgs/tools/system/smartmontools/default.nix17
-rw-r--r--pkgs/tools/virtualization/amazon-ecs-cli/default.nix30
-rw-r--r--pkgs/top-level/aliases.nix2
-rw-r--r--pkgs/top-level/all-packages.nix52
-rw-r--r--pkgs/top-level/emacs-packages.nix22
-rw-r--r--pkgs/top-level/python-packages.nix12
-rw-r--r--pkgs/top-level/release.nix5
97 files changed, 1185 insertions, 856 deletions
diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix
index e7750bfc47f5..71422e4ed5a6 100644
--- a/maintainers/maintainer-list.nix
+++ b/maintainers/maintainer-list.nix
@@ -391,6 +391,11 @@
github = "asppsa";
name = "Alastair Pharo";
};
+ astro = {
+ email = "astro@spaceboyz.net";
+ github = "astro";
+ name = "Astro";
+ };
astsmtl = {
email = "astsmtl@yandex.ru";
github = "astsmtl";
diff --git a/nixos/doc/manual/release-notes/rl-1903.xml b/nixos/doc/manual/release-notes/rl-1903.xml
index 89d9f48aedd3..65761c12c6a4 100644
--- a/nixos/doc/manual/release-notes/rl-1903.xml
+++ b/nixos/doc/manual/release-notes/rl-1903.xml
@@ -408,6 +408,16 @@
from nixpkgs due to the lack of maintainers.
</para>
</listitem>
+ <listitem>
+ <para>
+ The <option>powerManagement.cpuFreqGovernor</option> option has been
+ aliased to <option>powerManagement.cpufreq.governor</option>. On laptops,
+ <option>powerManagement.cpuFreqGovernor</option> is sometimes set in
+ <literal>/etc/nixos/hardware-configuration.nix</literal>, so you can
+ rename it to the new name, or run
+ <literal>nixos-generate-config</literal> again.
+ </para>
+ </listitem>
</itemizedlist>
</section>
</section>
diff --git a/nixos/modules/installer/tools/nixos-generate-config.pl b/nixos/modules/installer/tools/nixos-generate-config.pl
index 52a129b39bcd..fa01dc7bbaf0 100644
--- a/nixos/modules/installer/tools/nixos-generate-config.pl
+++ b/nixos/modules/installer/tools/nixos-generate-config.pl
@@ -104,7 +104,7 @@ if (-e "/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors") {
foreach $e (@desired_governors) {
if (index($governors, $e) != -1) {
- last if (push @attrs, "powerManagement.cpuFreqGovernor = lib.mkDefault \"$e\";");
+ last if (push @attrs, "powerManagement.cpufreq.governor = lib.mkDefault \"$e\";");
}
}
}
diff --git a/nixos/modules/rename.nix b/nixos/modules/rename.nix
index dc0a175d5bb8..0ed0f4ac209a 100644
--- a/nixos/modules/rename.nix
+++ b/nixos/modules/rename.nix
@@ -286,6 +286,9 @@ with lib;
(mkRenamedOptionModule [ "hardware" "ckb" "enable" ] [ "hardware" "ckb-next" "enable" ])
(mkRenamedOptionModule [ "hardware" "ckb" "package" ] [ "hardware" "ckb-next" "package" ])
+ # cpufeq
+ (mkAliasOptionModule [ "powerManagement" "cpuFreqGovernor" ] [ "powerManagement" "cpufreq" "governor" ])
+
] ++ (flip map [ "blackboxExporter" "collectdExporter" "fritzboxExporter"
"jsonExporter" "minioExporter" "nginxExporter" "nodeExporter"
"snmpExporter" "unifiExporter" "varnishExporter" ]
diff --git a/nixos/modules/services/hardware/tlp.nix b/nixos/modules/services/hardware/tlp.nix
index 68425822a884..bbc5b5b80a08 100644
--- a/nixos/modules/services/hardware/tlp.nix
+++ b/nixos/modules/services/hardware/tlp.nix
@@ -55,7 +55,9 @@ in
config = mkIf cfg.enable {
powerManagement.scsiLinkPolicy = null;
- powerManagement.cpuFreqGovernor = null;
+ powerManagement.cpufreq.governor = null;
+ powerManagement.cpufreq.max = null;
+ powerManagement.cpufreq.min = null;
systemd.sockets."systemd-rfkill".enable = false;
diff --git a/nixos/modules/services/networking/shairport-sync.nix b/nixos/modules/services/networking/shairport-sync.nix
index 90c0689dc7bf..68e005ab81da 100644
--- a/nixos/modules/services/networking/shairport-sync.nix
+++ b/nixos/modules/services/networking/shairport-sync.nix
@@ -27,7 +27,7 @@ in
};
arguments = mkOption {
- default = "-v pulse";
+ default = "-v -o pa";
description = ''
Arguments to pass to the daemon. Defaults to a local pulseaudio
server.
diff --git a/nixos/modules/services/networking/ssh/sshd.nix b/nixos/modules/services/networking/ssh/sshd.nix
index 5fab79f1b3d7..90d08ca31316 100644
--- a/nixos/modules/services/networking/ssh/sshd.nix
+++ b/nixos/modules/services/networking/ssh/sshd.nix
@@ -352,6 +352,10 @@ in
path = [ cfgc.package pkgs.gawk ];
environment.LD_LIBRARY_PATH = nssModulesPath;
+ restartTriggers = optionals (!cfg.startWhenNeeded) [
+ config.environment.etc."ssh/sshd_config".source
+ ];
+
preStart =
''
# Make sure we don't write to stdout, since in case of
@@ -387,6 +391,7 @@ in
Restart = "always";
Type = "simple";
});
+
};
in
diff --git a/nixos/modules/tasks/cpu-freq.nix b/nixos/modules/tasks/cpu-freq.nix
index 5f8b5df52acf..684c43a1e903 100644
--- a/nixos/modules/tasks/cpu-freq.nix
+++ b/nixos/modules/tasks/cpu-freq.nix
@@ -4,22 +4,43 @@ with lib;
let
cpupower = config.boot.kernelPackages.cpupower;
- cfg = config.powerManagement;
+ cfg = config.powerManagement.cpufreq;
in
{
###### interface
- options = {
+ options.powerManagement.cpufreq = {
- powerManagement.cpuFreqGovernor = mkOption {
+ governor = mkOption {
type = types.nullOr types.str;
default = null;
example = "ondemand";
description = ''
Configure the governor used to regulate the frequence of the
available CPUs. By default, the kernel configures the
- performance governor.
+ performance governor, although this may be overwriten in your
+ hardware-configuration.nix file.
+
+ Often used values: "ondemand", "powersave", "performance"
+ '';
+ };
+
+ max = mkOption {
+ type = types.nullOr types.ints.unsigned;
+ default = null;
+ example = 2200000;
+ description = ''
+ The maximum frequency the CPU will use. Defaults to the maximum possible.
+ '';
+ };
+
+ min = mkOption {
+ type = types.nullOr types.ints.unsigned;
+ default = null;
+ example = 800000;
+ description = ''
+ The minimum frequency the CPU will use.
'';
};
@@ -28,25 +49,37 @@ in
###### implementation
- config = mkIf (!config.boot.isContainer && config.powerManagement.cpuFreqGovernor != null) {
+ config =
+ let
+ governorEnable = cfg.governor != null;
+ ma