mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 21:06:01 +01:00
nix module: Fix attempted workaround for option name change
`system.stateVersion` is about *system state*, i.e., stuff that was created by old software versions on users' machines, like SQL databases that have moved to a different directory or such. It will not help figure out whether an option has been renamed.
This commit is contained in:
parent
3576ee61f1
commit
4d14edd8a5
1 changed files with 6 additions and 4 deletions
|
@ -2,6 +2,7 @@ inputs: {
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
|
options,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
|
@ -62,10 +63,11 @@ in {
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
environment.systemPackages = [cfg.finalPackage];
|
environment.systemPackages = [cfg.finalPackage];
|
||||||
|
|
||||||
fonts =
|
# NixOS changed the name of this attribute between NixOS 23.05 and
|
||||||
if versionOlder config.system.stateVersion "23.11"
|
# 23.11
|
||||||
then {enableDefaultFonts = mkDefault true;}
|
fonts = if builtins.hasAttr "enableDefaultPackages" options.fonts
|
||||||
else {enableDefaultPackages = mkDefault true;};
|
then {enableDefaultPackages = mkDefault true;}
|
||||||
|
else {enableDefaultFonts = mkDefault true;};
|
||||||
|
|
||||||
hardware.opengl.enable = mkDefault true;
|
hardware.opengl.enable = mkDefault true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue