forked from fabian/nix_config
updates post explanation fatberoo
This commit is contained in:
parent
82f58738ad
commit
62cd093202
17 changed files with 17 additions and 178 deletions
|
@ -12,11 +12,6 @@ in {
|
|||
};
|
||||
config = mkIf cfg.enable {
|
||||
services = {
|
||||
xserver = {
|
||||
enable = true;
|
||||
xkb.layout = "us";
|
||||
displayManager.startx.enable = true;
|
||||
};
|
||||
libinput.enable = true;
|
||||
};
|
||||
|
||||
|
|
|
@ -1,44 +0,0 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.local.sys.yubikey;
|
||||
in {
|
||||
options.local.sys.yubikey = {
|
||||
enable = mkEnableOption "yubikey settings";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
services = {
|
||||
pcscd.enable = true;
|
||||
udev.packages = [pkgs.yubikey-personalization];
|
||||
};
|
||||
|
||||
environment.etc."pkcs11/modules/ykcs11".text = ''
|
||||
module: ${pkgs.yubico-piv-tool}/lib/libykcs11.so
|
||||
'';
|
||||
|
||||
programs.gnupg.agent = {
|
||||
enable = true;
|
||||
enableSSHSupport = true;
|
||||
};
|
||||
|
||||
security.pam = {
|
||||
services = {
|
||||
login.u2fAuth = true;
|
||||
sudo.u2fAuth = true;
|
||||
};
|
||||
|
||||
u2f = {
|
||||
enable = true;
|
||||
control = "sufficient";
|
||||
settings = {
|
||||
debug = false;
|
||||
cue = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -14,7 +14,6 @@
|
|||
local.sys = {
|
||||
baseline.enable = true;
|
||||
|
||||
yubikey.enable = true;
|
||||
audio.enable = true;
|
||||
graphics.enable = true;
|
||||
virtualisation.enable = true;
|
||||
|
@ -25,7 +24,6 @@
|
|||
users = {
|
||||
chem = {
|
||||
enable = true;
|
||||
unixId = 1002;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue