From c5ba938baa7193b40b2126e0d4fd0647cf6a30a7 Mon Sep 17 00:00:00 2001 From: Yan Lin Date: Sat, 13 Sep 2025 09:52:18 +0200 Subject: [PATCH] Minor update on thinkpad system config --- hosts/nixos/thinkpad/hardware-configuration.nix | 4 +--- hosts/nixos/thinkpad/system.nix | 10 ++++++++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/hosts/nixos/thinkpad/hardware-configuration.nix b/hosts/nixos/thinkpad/hardware-configuration.nix index b598705..afa74a0 100644 --- a/hosts/nixos/thinkpad/hardware-configuration.nix +++ b/hosts/nixos/thinkpad/hardware-configuration.nix @@ -24,9 +24,7 @@ options = [ "fmask=0077" "dmask=0077" ]; }; - swapDevices = [ - { device = "/dev/disk/by-partlabel/disk-main-swap"; } - ]; + swapDevices = [ ]; # Enables DHCP on each ethernet and wireless interface. In case of scripted networking # (the default) this is the recommended approach. When using systemd-networkd it's diff --git a/hosts/nixos/thinkpad/system.nix b/hosts/nixos/thinkpad/system.nix index 0afbbc7..e933efd 100644 --- a/hosts/nixos/thinkpad/system.nix +++ b/hosts/nixos/thinkpad/system.nix @@ -132,6 +132,12 @@ wayland.enable = true; }; + # Auto-login + services.displayManager.autoLogin = { + enable = true; + user = "yanlin"; + }; + # Desktop environment services.desktopManager.plasma6.enable = true; @@ -221,9 +227,9 @@ description = "yanlin"; extraGroups = [ "networkmanager" "wheel" "video" "audio" "input" ]; shell = pkgs.zsh; - hashedPassword = "$6$8NUV0JK33hs3XBYe$osnYKzENDLYHQEpj8Z5F6ECpLdc8Y3RZcVGxQ0bc/6DepTwugAkfX8h6ItI01dJyk8RstiGsWVVCKGwXaL.sN."; + hashedPassword = "$6$kSyaRzAtj8VPcNeX$NsEP6zQAfp6O8YWcolfPRKnhIcJlKu5luZgWqozJAHtbE/gv90KoOOKU7Dt.FnbPB0Ej26jXoBH4X.7y/OLGB1"; openssh.authorizedKeys.keys = [ - "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIG35m0DgTrEOAM+1wAlYZ8mvLelNTcx65cFccGPQcxmo yanlin@imac" + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICp2goZiuSfwMA02GsHhYzUZHrQPPBgP5sWSNP9kQR3e yanlin@imac" ]; };