aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Weigl-Bosker <stefan@s00.xyz>2025-07-14 20:25:45 -0400
committerStefan Weigl-Bosker <stefan@s00.xyz>2025-07-14 20:46:46 -0400
commit15e1fbea21a44b6b84b7e8514a3979492dbbdcc9 (patch)
tree07984a9aab57fb382004e8dd6ada2c84d4627e1c
parent13593ff313eb79af576fc0523f9fde1c02f6f896 (diff)
downloadhome-15e1fbea21a44b6b84b7e8514a3979492dbbdcc9.tar.gz
repo: separate and reword common nixos config
-rw-r--r--fw/configuration.nix2
-rw-r--r--nixos/default.nix31
2 files changed, 28 insertions, 5 deletions
diff --git a/fw/configuration.nix b/fw/configuration.nix
index c66497c..071c725 100644
--- a/fw/configuration.nix
+++ b/fw/configuration.nix
@@ -83,7 +83,7 @@
# services.fprintd.enable = true;
# services.fprintd.tod.enable = true;
# services.fprintd.tod.driver = pkgs.libfprint-2-tod1-goodix;
- boot.initrd.systemd.enable = true;
+ # boot.initrd.systemd.enable = true;
environment.systemPackages = [ pkgs.tpm2-tss ];
system.stateVersion = "25.05";
};
diff --git a/nixos/default.nix b/nixos/default.nix
index aac8986..47eeca6 100644
--- a/nixos/default.nix
+++ b/nixos/default.nix
@@ -54,10 +54,25 @@ in
nixpkgs.config.allowUnfree = true;
- boot.kernelPackages = pkgs.linuxPackages_latest;
- boot.loader.systemd-boot.enable = true;
- boot.loader.systemd-boot.consoleMode = "max";
- boot.loader.efi.canTouchEfiVariables = true;
+ boot = {
+ consoleLogLevel=0;
+ initrd.verbose = false;
+ initrd.systemd.enable = true; # required for early stuff
+ kernelPackages = pkgs.linuxPackages_latest;
+ kernelParams = ["quiet" "splash" "rd.systemd.show_status=false" "rd.udev.log_level=3" "udev.log_priority=3" "boot.shell_on_fail"];
+ loader = {
+ timeout = 0;
+ systemd-boot = {
+ enable = true;
+ consoleMode = "auto";
+ editor = false;
+ };
+ efi.canTouchEfiVariables = true;
+ };
+ plymouth = {
+ enable = true;
+ };
+ };
networking = {
hostName = cfg.hostname;
@@ -103,6 +118,10 @@ in
services.greetd = {
enable = false;
settings = {
+ initial_session = {
+ command = "sway --unsupported-gpu";
+ user = "${cfg.username}";
+ };
default_session = {
command = "${pkgs.greetd.greetd}/bin/agreety --cmd 'sway --unsupported-gpu'";
};
@@ -172,8 +191,12 @@ in
# environment.pathsToLink = [ "/share/zsh" ];
console = {
+ packages = [
+ pkgs.cozette
+ ];
earlySetup = true;
useXkbConfig = true;
+ font = "${pkgs.cozette}/share/consolefonts/cozette12x26.psfu";
colors = [
"0f0f0f"
"ac8a8c"