From 950118add153321d33e20d8849728df830d2800f Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Sat, 2 Sep 2023 12:14:32 +0530 Subject: hosts/cez: make autologin host specific --- hosts/cez.nix | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) (limited to 'hosts/cez.nix') diff --git a/hosts/cez.nix b/hosts/cez.nix index 2b6ebb4..bf9ffde 100644 --- a/hosts/cez.nix +++ b/hosts/cez.nix @@ -1,5 +1,8 @@ -{ pkgs, ... }: +{ config, pkgs, ... }: +let + user = config.userdata.user; +in { imports = [ ../modules/wayland.nix @@ -12,13 +15,6 @@ consoleLogLevel = 3; kernelPackages = pkgs.linuxPackages_latest; }; - - networking = { - hostName = "cez"; - dhcpcd.wait = "background"; - wireless.iwd.enable = true; - }; - sound = { enable = true; extraConfig = '' @@ -26,8 +22,18 @@ defaults.ctl.card 1 ''; }; - services.pipewire = { - enable = true; - pulse.enable = true; + + networking = { + hostName = "cez"; + dhcpcd.wait = "background"; + wireless.iwd.enable = true; + }; + + services = { + getty.autologinUser = user; + pipewire = { + enable = true; + pulse.enable = true; + }; }; } -- cgit v1.2.3