aboutsummaryrefslogtreecommitdiff
path: root/nixos
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 /nixos
parent13593ff313eb79af576fc0523f9fde1c02f6f896 (diff)
downloadhome-15e1fbea21a44b6b84b7e8514a3979492dbbdcc9.tar.gz
repo: separate and reword common nixos config
Diffstat (limited to 'nixos')
-rw-r--r--nixos/default.nix31
1 files changed, 27 insertions, 4 deletions
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"