feat: add encryption
This commit is contained in:
parent
54ea969b61
commit
15d70f8472
4 changed files with 153 additions and 8 deletions
|
|
@ -1,4 +1,8 @@
|
|||
{ ... }:
|
||||
{ config, lib, ... }:
|
||||
|
||||
let
|
||||
hasLuksDevice = config.boot.initrd.luks.devices != { };
|
||||
in
|
||||
|
||||
{
|
||||
imports = [
|
||||
|
|
@ -9,6 +13,15 @@
|
|||
|
||||
networking.hostName = "framework-work";
|
||||
|
||||
# Once root is LUKS-encrypted, the disk passphrase is the boot password.
|
||||
# GDM autologin avoids entering a second password after the disk is unlocked.
|
||||
services.displayManager.autoLogin = {
|
||||
enable = hasLuksDevice;
|
||||
user = "jet";
|
||||
};
|
||||
|
||||
swapDevices = lib.mkForce [ ];
|
||||
|
||||
fileSystems."/tmp" = {
|
||||
device = "tmpfs";
|
||||
fsType = "tmpfs";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue