[UPGRADE/General] Upgrade to 22.05

Fix incompatible options
Enable flakes by default !
This commit is contained in:
Antoine Viallon 2022-06-09 01:06:34 +02:00
parent c84b845d12
commit b47462f73c
Signed by: aviallon
GPG key ID: 186FC35EDEB25716
5 changed files with 10 additions and 8 deletions

View file

@ -90,7 +90,7 @@ in {
jack.enable = true;
alsa.enable = true;
alsa.support32Bit = mkDefault true;
media-session.enable = true;
wireplumber.enable = true;
};
security.rtkit.enable = true; # Real-time support for pipewire
@ -207,7 +207,7 @@ in {
services.packagekit.enable = true;
networking.networkmanager = {
packages = [
plugins = [
pkgs.networkmanager-openvpn
];
};

View file

@ -83,9 +83,10 @@ in
)
]);
boot.initrd.services.udev.rules = concatStringsSep "\n" cfg.udevRules;
services.udev = {
extraRules = concatStringsSep "\n" cfg.udevRules;
initrdRules = concatStringsSep "\n" cfg.udevRules;
};
boot.tmpOnTmpfs = true;

View file

@ -29,6 +29,10 @@ let
};
in
{
imports = [
(mkRemovedOptionModule [ "aviallon" "general" "flakes" "enable" ] "Flakes are now enabled by default")
];
options.aviallon.general = {
enable = mkOption {
default = true;
@ -56,7 +60,6 @@ in
type = types.str;
};
unsafeOptimizations = mkEnableOption "unsafe system tuning";
flakes.enable = mkEnableOption "experimental flake support";
debug = mkEnableOption "debug-specific configuration";
};

View file

@ -41,7 +41,7 @@ in
networking.networkmanager = {
wifi.backend = mkDefault "iwd";
dns = mkDefault cfg.dns;
packages = with pkgs; concatLists [
plugins = with pkgs; concatLists [
(optional (cfg.dns == "dnsmasq") dnsmasq)
];
};

View file

@ -29,9 +29,7 @@ in
nix.extraOptions = myLib.config.toNix {
builders-use-substitutes = true;
experimental-features = concatLists [
(optionals generalCfg.flakes.enable ["nix-command" "flakes"])
];
experimental-features = [ "nix-command" "flakes"];
download-attempts = 5;
stalled-download-timeout = 20;
};