[chore] Nixfmt and remove some unused vars

This commit is contained in:
Uttarayan Mondal
2024-03-19 11:13:57 +05:30
parent d912b2ae49
commit 1c50bbd91d
3 changed files with 38 additions and 46 deletions

View File

@@ -1,4 +1,4 @@
{ pkgs, device, ... }: {
{ pkgs, ... }: {
imports = [ ./yabai.nix ./skhd.nix ];
environment.systemPackages = with pkgs; [ nix neovim ];
@@ -16,21 +16,20 @@
};
# security.pam.enableSudoTouchIdAuth = true;
system.patches = [
(pkgs.writeText "pam-reattach.patch"
# diff
''
new file mode 100644
index 0000000..e4293c0
--- /dev/null
+++ b/etc/pam.d/sudo_local
@@ -0,0 +1,3 @@
+# sudo_local: local config file which survives system update and is included for sudo
+# uncomment following line to enable Touch ID for sudo
+auth optional ${pkgs.pam-reattach}/lib/pam/pam_reattach.so
'')
];
# system.patches = [
# (pkgs.writeText "pam-reattach.patch"
# # diff
# ''
# new file mode 100644
# index 0000000..e4293c0
# --- /dev/null
# +++ b/etc/pam.d/sudo_local
# @@ -0,0 +1,3 @@
# +# sudo_local: local config file which survives system update and is included for sudo
# +# uncomment following line to enable Touch ID for sudo
# +auth optional ${pkgs.pam-reattach}/lib/pam/pam_reattach.so
# '')
# ];
programs.bash.enable = true;
programs.zsh.enable = true;