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;
|
jack.enable = true;
|
||||||
alsa.enable = true;
|
alsa.enable = true;
|
||||||
alsa.support32Bit = mkDefault true;
|
alsa.support32Bit = mkDefault true;
|
||||||
media-session.enable = true;
|
wireplumber.enable = true;
|
||||||
};
|
};
|
||||||
security.rtkit.enable = true; # Real-time support for pipewire
|
security.rtkit.enable = true; # Real-time support for pipewire
|
||||||
|
|
||||||
|
|
@ -207,7 +207,7 @@ in {
|
||||||
services.packagekit.enable = true;
|
services.packagekit.enable = true;
|
||||||
|
|
||||||
networking.networkmanager = {
|
networking.networkmanager = {
|
||||||
packages = [
|
plugins = [
|
||||||
pkgs.networkmanager-openvpn
|
pkgs.networkmanager-openvpn
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -83,9 +83,10 @@ in
|
||||||
)
|
)
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
boot.initrd.services.udev.rules = concatStringsSep "\n" cfg.udevRules;
|
||||||
|
|
||||||
services.udev = {
|
services.udev = {
|
||||||
extraRules = concatStringsSep "\n" cfg.udevRules;
|
extraRules = concatStringsSep "\n" cfg.udevRules;
|
||||||
initrdRules = concatStringsSep "\n" cfg.udevRules;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
boot.tmpOnTmpfs = true;
|
boot.tmpOnTmpfs = true;
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,10 @@ let
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
imports = [
|
||||||
|
(mkRemovedOptionModule [ "aviallon" "general" "flakes" "enable" ] "Flakes are now enabled by default")
|
||||||
|
];
|
||||||
|
|
||||||
options.aviallon.general = {
|
options.aviallon.general = {
|
||||||
enable = mkOption {
|
enable = mkOption {
|
||||||
default = true;
|
default = true;
|
||||||
|
|
@ -56,7 +60,6 @@ in
|
||||||
type = types.str;
|
type = types.str;
|
||||||
};
|
};
|
||||||
unsafeOptimizations = mkEnableOption "unsafe system tuning";
|
unsafeOptimizations = mkEnableOption "unsafe system tuning";
|
||||||
flakes.enable = mkEnableOption "experimental flake support";
|
|
||||||
debug = mkEnableOption "debug-specific configuration";
|
debug = mkEnableOption "debug-specific configuration";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ in
|
||||||
networking.networkmanager = {
|
networking.networkmanager = {
|
||||||
wifi.backend = mkDefault "iwd";
|
wifi.backend = mkDefault "iwd";
|
||||||
dns = mkDefault cfg.dns;
|
dns = mkDefault cfg.dns;
|
||||||
packages = with pkgs; concatLists [
|
plugins = with pkgs; concatLists [
|
||||||
(optional (cfg.dns == "dnsmasq") dnsmasq)
|
(optional (cfg.dns == "dnsmasq") dnsmasq)
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
4
nix.nix
4
nix.nix
|
|
@ -29,9 +29,7 @@ in
|
||||||
|
|
||||||
nix.extraOptions = myLib.config.toNix {
|
nix.extraOptions = myLib.config.toNix {
|
||||||
builders-use-substitutes = true;
|
builders-use-substitutes = true;
|
||||||
experimental-features = concatLists [
|
experimental-features = [ "nix-command" "flakes"];
|
||||||
(optionals generalCfg.flakes.enable ["nix-command" "flakes"])
|
|
||||||
];
|
|
||||||
download-attempts = 5;
|
download-attempts = 5;
|
||||||
stalled-download-timeout = 20;
|
stalled-download-timeout = 20;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue