summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2023-09-02 12:14:32 +0530
committersinanmohd <sinan@sinanmohd.com>2023-09-02 12:20:13 +0530
commit950118add153321d33e20d8849728df830d2800f (patch)
tree0ec8739fc2ce94986d2db0ec3207e7bdb8b43932
parenta2cd8de3f9d8212ead10b4263b7a7d5afe71e164 (diff)
hosts/cez: make autologin host specific
-rw-r--r--configuration.nix1
-rw-r--r--hosts/cez.nix28
2 files changed, 17 insertions, 12 deletions
diff --git a/configuration.nix b/configuration.nix
index 27b351e..f247452 100644
--- a/configuration.nix
+++ b/configuration.nix
@@ -42,7 +42,6 @@ in
brightnessctl
];
};
- services.getty.autologinUser = user;
# system
environment = {
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;
+ };
};
}