improve documentation

This commit is contained in:
Hadi
2025-03-26 16:01:34 +01:00
parent 29bebce5cd
commit 0409a4db26
18 changed files with 35 additions and 195 deletions

View File

@@ -1,55 +0,0 @@
{ pkgs, config, ... }: {
stylix.targets.grub.enable = false;
boot = {
bootspec.enable = true;
loader = {
efi.canTouchEfiVariables = true;
grub = {
enable = true;
devices = [ "nodev" ];
efiSupport = true;
useOSProber = true;
};
grub2-theme = {
enable = true;
theme = "whitesur";
icon = "whitesur";
splashImage = config.stylix.image;
bootMenuConfig = ''
item_color = "#333333"
selected_item_color = "#000000"
left = 30%
top = 30%
width = 40%
height = 40%
item_font = "Unifont Regular 24"
icon_width = 48
icon_height = 48
item_icon_space = 24
item_height = 56
item_padding = 8
item_spacing = 16
selected_item_pixmap_style = "select_*.png"
'';
};
};
tmp.cleanOnBoot = true;
kernelPackages =
pkgs.linuxPackages_latest; # _zen, _hardened, _rt, _rt_latest, etc.
# Silent boot
kernelParams = [
"quiet"
"splash"
"vga=current"
"rd.systemd.show_status=false"
"rd.udev.log_level=3"
"udev.log_priority=3"
];
consoleLogLevel = 0;
initrd.verbose = false;
};
}

View File

@@ -1,3 +1,4 @@
# SDDM is a display manager for X11 and Wayland
{ pkgs, inputs, config, lib, ... }:
let
foreground = config.theme.textColorOnWallpaper;

View File

@@ -1,3 +1,4 @@
# Tailscale is a VPN service that makes it easy to connect your devices between each other.
{ config, ... }: {
security.sudo.extraRules = [{
users = [ config.var.username ];

View File

@@ -1,3 +1,5 @@
# TUIGreet is a display manager.
# Legacy, I'm now using SDDM
{ pkgs, ... }: {
services.greetd = {
enable = true;

View File

@@ -3,6 +3,10 @@ let
hostname = config.var.hostname;
keyboardLayout = config.var.keyboardLayout;
configDir = config.var.configDirectory;
timeZone = config.var.timeZone;
defaultLocale = config.var.defaultLocale;
extraLocale = config.var.extraLocale;
autoUpgrade = config.var.autoUpgrade;
in {
networking.hostName = hostname;
@@ -10,7 +14,7 @@ in {
systemd.services.NetworkManager-wait-online.enable = false;
system.autoUpgrade = {
enable = config.var.autoUpgrade;
enable = autoUpgrade;
dates = "04:00";
flake = "${configDir}";
flags = [ "--update-input" "nixpkgs" "--commit-lock-file" ];
@@ -18,20 +22,20 @@ in {
};
time = {
timeZone = config.var.timeZone;
timeZone = timeZone;
hardwareClockInLocalTime = true;
};
i18n.defaultLocale = config.var.defaultLocale;
i18n.defaultLocale = defaultLocale;
i18n.extraLocaleSettings = {
LC_ADDRESS = config.var.extraLocale;
LC_IDENTIFICATION = config.var.extraLocale;
LC_MEASUREMENT = config.var.extraLocale;
LC_MONETARY = config.var.extraLocale;
LC_NAME = config.var.extraLocale;
LC_NUMERIC = config.var.extraLocale;
LC_PAPER = config.var.extraLocale;
LC_TELEPHONE = config.var.extraLocale;
LC_TIME = config.var.extraLocale;
LC_ADDRESS = extraLocale;
LC_IDENTIFICATION = extraLocale;
LC_MEASUREMENT = extraLocale;
LC_MONETARY = extraLocale;
LC_NAME = extraLocale;
LC_NUMERIC = extraLocale;
LC_PAPER = extraLocale;
LC_TELEPHONE = extraLocale;
LC_TIME = extraLocale;
};
services = {