-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
62f27b0
commit ab93b07
Showing
8 changed files
with
114 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,22 @@ | ||
{ lib, ... }: | ||
let | ||
common = { | ||
enableGnomeKeyring = true; | ||
gnupg = { | ||
enable = true; | ||
noAutostart = true; | ||
storeOnly = true; | ||
}; | ||
}; | ||
inherit (lib.attrsets) genAttrs; | ||
in | ||
{ | ||
# unlock GPG keyring on login | ||
security.pam.services = { | ||
login = common; | ||
greetd = common; | ||
tuigreet = common; | ||
}; | ||
security.pam.services = | ||
genAttrs | ||
[ | ||
"login" | ||
"greetd" | ||
"tuigreet" | ||
] | ||
(_: { | ||
enableGnomeKeyring = true; | ||
gnupg = { | ||
enable = true; | ||
noAutostart = true; | ||
storeOnly = true; | ||
}; | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,31 @@ | ||
{ lib, ... }: | ||
let | ||
inherit (lib.attrsets) genAttrs; | ||
|
||
extraConfig = '' | ||
DefaultTimeoutStartSec=15s | ||
DefaultTimeoutStopSec=15s | ||
DefaultTimeoutAbortSec=15s | ||
DefaultDeviceTimeoutSec=15s | ||
''; | ||
in | ||
{ | ||
systemd = | ||
let | ||
extraConfig = '' | ||
DefaultTimeoutStartSec=15s | ||
DefaultTimeoutStopSec=15s | ||
DefaultTimeoutAbortSec=15s | ||
DefaultDeviceTimeoutSec=15s | ||
''; | ||
in | ||
{ | ||
inherit extraConfig; | ||
user = { | ||
inherit extraConfig; | ||
}; | ||
systemd = { | ||
inherit extraConfig; | ||
user = { inherit extraConfig; }; | ||
|
||
services = { | ||
"getty@tty1".enable = false; | ||
"autovt@tty1".enable = false; | ||
"getty@tty7".enable = false; | ||
"autovt@tty7".enable = false; | ||
"kmsconvt@tty1".enable = false; | ||
"kmsconvt@tty7".enable = false; | ||
}; | ||
}; | ||
services = | ||
genAttrs | ||
[ | ||
"getty@tty1" | ||
"autovt@tty1" | ||
"getty@tty7" | ||
"autovt@tty7" | ||
"kmsconvt@tty1" | ||
"kmsconvt@tty7" | ||
] | ||
(_: { | ||
enable = false; | ||
}); | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
{ lib, ... }: | ||
let | ||
inherit (lib.modules) mkForce; | ||
inherit (lib.attrsets) mapAttrs; | ||
in | ||
{ | ||
# we don't need fonts on a server | ||
# since there are no fonts to be configured outside the console | ||
fonts = { | ||
packages = mkForce [ ]; | ||
fontDir.enable = mkForce false; | ||
fontconfig.enable = mkForce false; | ||
fonts = mapAttrs (_: mkForce) { | ||
packages = [ ]; | ||
fontDir.enable = false; | ||
fontconfig.enable = false; | ||
}; | ||
} |