mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
[UPGRADE/General] Upgrade to 22.05
Fix incompatible options Enable flakes by default !
This commit is contained in:
parent
c84b845d12
commit
b47462f73c
5 changed files with 10 additions and 8 deletions
|
|
@ -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
|
||||
];
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
];
|
||||
};
|
||||
|
|
|
|||
4
nix.nix
4
nix.nix
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue