progress dump
This commit is contained in:
parent
4741aa8a47
commit
a951911578
6 changed files with 68 additions and 46 deletions
|
@ -23,6 +23,7 @@
|
||||||
pinentryPackage = pkgs.pinentry-qt;
|
pinentryPackage = pkgs.pinentry-qt;
|
||||||
};
|
};
|
||||||
modules = {
|
modules = {
|
||||||
|
wms.wayland.enable = true;
|
||||||
desktops.hyprland.enable = true;
|
desktops.hyprland.enable = true;
|
||||||
|
|
||||||
theming = {
|
theming = {
|
||||||
|
@ -62,8 +63,8 @@
|
||||||
services = {
|
services = {
|
||||||
locate.enable = true;
|
locate.enable = true;
|
||||||
kanata.enable = true;
|
kanata.enable = true;
|
||||||
uwsm.enable = true;
|
uwsm.enable = false;
|
||||||
greetd.enable = true;
|
greetd.enable = false;
|
||||||
|
|
||||||
media.mpd = {
|
media.mpd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -36,6 +36,7 @@
|
||||||
forgejo.enable = true;
|
forgejo.enable = true;
|
||||||
grafana.enable = true;
|
grafana.enable = true;
|
||||||
prometheus.enable = true;
|
prometheus.enable = true;
|
||||||
|
plausible.enable = true;
|
||||||
};
|
};
|
||||||
programs = {
|
programs = {
|
||||||
editors = {
|
editors = {
|
||||||
|
|
|
@ -55,32 +55,25 @@ in {
|
||||||
# This is the standard port for SMTP, and is used by mail servers to send email to each other.
|
# This is the standard port for SMTP, and is used by mail servers to send email to each other.
|
||||||
smtp = {
|
smtp = {
|
||||||
protocol = "smtp";
|
protocol = "smtp";
|
||||||
bind = ["localhost::25" "[::]:25"];
|
bind = ["[::]:25"];
|
||||||
tls.implicit = true;
|
tls.implicit = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# SMTP submissions with implicit TLS are received on port 465 by default.
|
# SMTP submissions with implicit TLS are received on port 465 by default.
|
||||||
# This is the standard port for SMTP submissions with native implicit TLS,
|
# This is the standard port for SMTP submissions with native implicit TLS,
|
||||||
# and is used by mail clients to send email to mail servers.
|
# and is used by mail clients to send email to mail servers.
|
||||||
|
|
||||||
submissions = {
|
submissions = {
|
||||||
bind = ["localhost:465" "[::]:465"];
|
bind = ["[::]:465"];
|
||||||
protocol = "smtp";
|
protocol = "smtp";
|
||||||
tls.implicit = true;
|
tls.implicit = true;
|
||||||
};
|
};
|
||||||
imaps = {
|
imaps = {
|
||||||
bind = ["localhost:993" "[::]:993"];
|
bind = ["[::]:993"];
|
||||||
protocol = "imap";
|
protocol = "imap";
|
||||||
tls.implicit = true;
|
tls.implicit = true;
|
||||||
};
|
};
|
||||||
jmap = {
|
|
||||||
bind = ["localhost:8080" "[::]:8080"];
|
|
||||||
url = "https://mail.${domain}";
|
|
||||||
protocol = "jmap";
|
|
||||||
tls.implicit = true;
|
|
||||||
};
|
|
||||||
management = {
|
management = {
|
||||||
bind = ["localhost:8080"];
|
bind = ["127.0.0.1:8080"];
|
||||||
protocol = "http";
|
protocol = "http";
|
||||||
tls.implicit = true;
|
tls.implicit = true;
|
||||||
};
|
};
|
||||||
|
@ -90,40 +83,40 @@ in {
|
||||||
inherit domain;
|
inherit domain;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
storage = {
|
# storage = {
|
||||||
data = "postgresql";
|
# data = "postgresql";
|
||||||
blob = "postgresql";
|
# blob = "postgresql";
|
||||||
fts = "postgresql";
|
# fts = "postgresql";
|
||||||
lookup = "postgresql";
|
# lookup = "postgresql";
|
||||||
full-text = {
|
# full-text = {
|
||||||
default-language = "en";
|
# default-language = "en";
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
store = {
|
# store = {
|
||||||
postgresql = {
|
# postgresql = {
|
||||||
# Specifies the database type, set to "postgresql" for PostgreSQL.
|
# # Specifies the database type, set to "postgresql" for PostgreSQL.
|
||||||
type = "postgresql";
|
# type = "postgresql";
|
||||||
|
|
||||||
# The hostname or IP address of the PostgreSQL server.
|
# # The hostname or IP address of the PostgreSQL server.
|
||||||
host = "localhost";
|
# host = "localhost";
|
||||||
|
|
||||||
# Port PostgreSQL runs on. Defaults to 5432.
|
# # Port PostgreSQL runs on. Defaults to 5432.
|
||||||
port = "5432";
|
# port = "5432";
|
||||||
|
|
||||||
# Name of the database to connect to.
|
# # Name of the database to connect to.
|
||||||
# TODO: add this to PostgreSQL.
|
# # TODO: add this to PostgreSQL.
|
||||||
database = "stalwart";
|
# database = "stalwart";
|
||||||
|
|
||||||
# The username used for authentication with the PostgreSQL server.
|
# # The username used for authentication with the PostgreSQL server.
|
||||||
# TODO: add this to PostgreSQL.
|
# # TODO: add this to PostgreSQL.
|
||||||
user = "stalwart";
|
# user = "stalwart";
|
||||||
|
|
||||||
password = "";
|
# password = "";
|
||||||
|
|
||||||
# Enable TLS
|
# # Enable TLS
|
||||||
tls.enable = true;
|
# tls.enable = true;
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
|
|
|
@ -38,6 +38,16 @@ in {
|
||||||
governor = "performance";
|
governor = "performance";
|
||||||
# Turbo boost setting: "always", "auto", or "never"
|
# Turbo boost setting: "always", "auto", or "never"
|
||||||
turbo = "auto";
|
turbo = "auto";
|
||||||
|
|
||||||
|
# Enable or disable automatic turbo management (when turbo = "auto")
|
||||||
|
enable_auto_turbo = true;
|
||||||
|
# Custom thresholds for auto turbo management
|
||||||
|
turbo_auto_settings = {
|
||||||
|
load_threshold_high = 70.0;
|
||||||
|
load_threshold_low = 30.0;
|
||||||
|
temp_threshold_high = 75.0;
|
||||||
|
initial_turbo_state = false; # whether turbo should be initially enabled (false = disabled)
|
||||||
|
};
|
||||||
# Energy Performance Preference
|
# Energy Performance Preference
|
||||||
epp = "performance";
|
epp = "performance";
|
||||||
# Energy Performance Bias (0-15 scale or named value)
|
# Energy Performance Bias (0-15 scale or named value)
|
||||||
|
@ -54,9 +64,24 @@ in {
|
||||||
battery = {
|
battery = {
|
||||||
governor = "powersave";
|
governor = "powersave";
|
||||||
turbo = "auto";
|
turbo = "auto";
|
||||||
|
|
||||||
|
# More conservative auto turbo settings on battery
|
||||||
|
enable_auto_turbo = true;
|
||||||
|
turbo_auto_settings = {
|
||||||
|
load_threshold_high = 80.0;
|
||||||
|
load_threshold_low = 40.0;
|
||||||
|
temp_threshold_high = 70.0;
|
||||||
|
# start with turbo disabled on battery for power savings
|
||||||
|
initial_turbo_state = false;
|
||||||
|
};
|
||||||
epp = "power";
|
epp = "power";
|
||||||
epb = "balance_power";
|
epb = "balance_power";
|
||||||
platform_profile = "low-power";
|
platform_profile = "low-power";
|
||||||
|
|
||||||
|
# Global battery charging thresholds (applied to both profiles unless overridden)
|
||||||
|
# Start charging at 40%, stop at 80% - extends battery lifespan
|
||||||
|
# take precedence over this global setting
|
||||||
|
battery_charge_thresholds = [40 90];
|
||||||
min_freq_mhz = 800;
|
min_freq_mhz = 800;
|
||||||
max_freq_mhz = 2500;
|
max_freq_mhz = 2500;
|
||||||
};
|
};
|
||||||
|
|
|
@ -8,11 +8,6 @@
|
||||||
inherit (lib.options) mkEnableOption;
|
inherit (lib.options) mkEnableOption;
|
||||||
|
|
||||||
cfg = config.modules.desktops.niri;
|
cfg = config.modules.desktops.niri;
|
||||||
|
|
||||||
niri-config = {
|
|
||||||
};
|
|
||||||
|
|
||||||
toKDL = import ./toKDL.nix lib;
|
|
||||||
in {
|
in {
|
||||||
options.modules.desktops.niri.enable = mkEnableOption "Niri, a scolling tiling wayland compositor";
|
options.modules.desktops.niri.enable = mkEnableOption "Niri, a scolling tiling wayland compositor";
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
@ -26,5 +21,9 @@ in {
|
||||||
|
|
||||||
# set niri's config location to /etc/niri/config.kdl.
|
# set niri's config location to /etc/niri/config.kdl.
|
||||||
environment.etc."niri/config.kdl".source = ./config.kdl;
|
environment.etc."niri/config.kdl".source = ./config.kdl;
|
||||||
|
|
||||||
|
environment.systemPackages = builtins.attrValues {
|
||||||
|
inherit (pkgs) xwayland-satellite avizo;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -135,6 +135,9 @@
|
||||||
rustfmt
|
rustfmt
|
||||||
# Shell
|
# Shell
|
||||||
shellcheck
|
shellcheck
|
||||||
|
|
||||||
|
kdlfmt
|
||||||
|
|
||||||
superhtml
|
superhtml
|
||||||
# toml
|
# toml
|
||||||
taplo
|
taplo
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue