fmt
This commit is contained in:
parent
a828ba26b6
commit
8fc44ea817
@ -1,7 +1,11 @@
|
|||||||
let
|
let
|
||||||
configuration = { config, lib, pkgs, ... }:
|
configuration = {
|
||||||
with pkgs;
|
config,
|
||||||
let
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
with pkgs; let
|
||||||
src = fetchGit "https://github.com/drduh/YubiKey-Guide";
|
src = fetchGit "https://github.com/drduh/YubiKey-Guide";
|
||||||
|
|
||||||
guide = "${src}/README.md";
|
guide = "${src}/README.md";
|
||||||
@ -14,14 +18,14 @@ let
|
|||||||
|
|
||||||
xserverCfg = config.services.xserver;
|
xserverCfg = config.services.xserver;
|
||||||
|
|
||||||
pinentryFlavour = if xserverCfg.desktopManager.lxqt.enable || xserverCfg.desktopManager.plasma5.enable then
|
pinentryFlavour =
|
||||||
"qt"
|
if xserverCfg.desktopManager.lxqt.enable || xserverCfg.desktopManager.plasma5.enable
|
||||||
else if xserverCfg.desktopManager.xfce.enable then
|
then "qt"
|
||||||
"gtk2"
|
else if xserverCfg.desktopManager.xfce.enable
|
||||||
else if xserverCfg.enable || config.programs.sway.enable then
|
then "gtk2"
|
||||||
"gnome3"
|
else if xserverCfg.enable || config.programs.sway.enable
|
||||||
else
|
then "gnome3"
|
||||||
"curses";
|
else "curses";
|
||||||
|
|
||||||
# Instead of hard-coding the pinentry program, chose the appropriate one
|
# Instead of hard-coding the pinentry program, chose the appropriate one
|
||||||
# based on the environment of the image the user has chosen to build.
|
# based on the environment of the image the user has chosen to build.
|
||||||
@ -52,7 +56,6 @@ let
|
|||||||
name = "yubikey-guide";
|
name = "yubikey-guide";
|
||||||
paths = [view-yubikey-guide shortcut];
|
paths = [view-yubikey-guide shortcut];
|
||||||
};
|
};
|
||||||
|
|
||||||
in {
|
in {
|
||||||
nixpkgs.config = {allowBroken = true;};
|
nixpkgs.config = {allowBroken = true;};
|
||||||
|
|
||||||
@ -169,7 +172,6 @@ let
|
|||||||
#nixos-yubikey = nixos.iso_minimal; # No graphical environment
|
#nixos-yubikey = nixos.iso_minimal; # No graphical environment
|
||||||
#nixos-yubikey = nixos.iso_gnome;
|
#nixos-yubikey = nixos.iso_gnome;
|
||||||
nixos-yubikey = nixos.iso_plasma5;
|
nixos-yubikey = nixos.iso_plasma5;
|
||||||
|
|
||||||
in {
|
in {
|
||||||
inherit nixos-yubikey;
|
inherit nixos-yubikey;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user