summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorquentin@aristote.fr <quentin@aristote.fr>2023-05-18 11:49:34 +0200
committerquentin@aristote.fr <quentin@aristote.fr>2023-05-18 11:59:50 +0200
commit001f53d081b78c5145cd7449f08f783bb56f35e3 (patch)
tree0049195260f97982d49575e770beb0b249f303ab /config
parentbda25fea52567b275df01e441894b6f5374a890f (diff)
enable serial console
Diffstat (limited to 'config')
-rw-r--r--config/default.nix1
-rw-r--r--config/hardware/default.nix6
2 files changed, 5 insertions, 2 deletions
diff --git a/config/default.nix b/config/default.nix
index ff22fc8..397b68e 100644
--- a/config/default.nix
+++ b/config/default.nix
@@ -2,7 +2,6 @@
{
imports = [
- (modulesPath + "/profiles/headless.nix")
(modulesPath + "/profiles/minimal.nix")
./boot.nix
./environment.nix
diff --git a/config/hardware/default.nix b/config/hardware/default.nix
index 8bf1e70..5b4f50f 100644
--- a/config/hardware/default.nix
+++ b/config/hardware/default.nix
@@ -1,7 +1,8 @@
-{ nixos-hardware, ... }:
+{ nixos-hardware, modulesPath, ... }:
{
imports = [
+ (modulesPath + "/profiles/headless.nix")
./hardware-configuration.nix
nixos-hardware.nixosModules.pcengines-apu
nixos-hardware.nixosModules.common-pc-ssd
@@ -25,4 +26,7 @@
# everything. This is supposed to increase performance by hitting
# CPU cache more often.
services.irqbalance.enable = true;
+
+ # Re-enable the serial console, disabled by the headless profile
+ systemd.services."serial-getty@ttyS0".enable = true;
}