Use nss_myhostname from systemd
This commit is contained in:
parent
6199d4bb8e
commit
8ef4074811
|
@ -56,5 +56,5 @@ in
|
|||
# Use nss-myhostname to ensure that our hostname always resolves to
|
||||
# a valid IP address. It returns all locally configured IP
|
||||
# addresses, or ::1 and 127.0.0.2 as fallbacks.
|
||||
system.nssModules = [ pkgs.nss_myhostname ];
|
||||
system.nssModules = [ pkgs.systemd ];
|
||||
}
|
||||
|
|
|
@ -22,9 +22,7 @@ let
|
|||
pathsToLink = "/lib/dri";
|
||||
|
||||
# To admit zero-length 'paths'
|
||||
postBuild = "
|
||||
mkdir -p $out/lib/dri
|
||||
";
|
||||
postBuild = "mkdir -p $out/lib/dri";
|
||||
};
|
||||
|
||||
# file provided by services.xserver.displayManager.session.script
|
||||
|
@ -91,7 +89,7 @@ let
|
|||
${xorg.xrdb}/bin/xrdb -merge ~/.Xdefaults
|
||||
fi
|
||||
|
||||
export LIBVA_DRIVERS_PATH=${vaapiDrivers}/lib/dri;
|
||||
export LIBVA_DRIVERS_PATH=${vaapiDrivers}/lib/dri
|
||||
|
||||
source /etc/profile
|
||||
|
||||
|
@ -139,7 +137,7 @@ let
|
|||
|
||||
mkDesktops = names: pkgs.runCommand "desktops" {}
|
||||
''
|
||||
ensureDir $out
|
||||
mkdir -p $out
|
||||
${concatMapStrings (n: ''
|
||||
cat - > "$out/${n}.desktop" << EODESKTOP
|
||||
[Desktop Entry]
|
||||
|
|
|
@ -204,11 +204,11 @@ in
|
|||
};
|
||||
|
||||
vaapiDrivers = mkOption {
|
||||
default = [ pkgs.vaapiIntel pkgs.vaapiVdpau ];
|
||||
default = [ ];
|
||||
defaultText = "[ pkgs.vaapiIntel pkgs.vaapiVdpau ]";
|
||||
example = "[ pkgs.vaapiIntel pkgs.vaapiVdpau ]";
|
||||
description = ''
|
||||
Names of the packages providing libva acceleration drivers.
|
||||
Packages providing libva acceleration drivers.
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue