feat: add formatter
This commit is contained in:
parent
d036cf224a
commit
cf005ff872
269 changed files with 369 additions and 226 deletions
0
system/modules/actual/default.nix
Normal file → Executable file
0
system/modules/actual/default.nix
Normal file → Executable file
0
system/modules/airplay.nix
Normal file → Executable file
0
system/modules/airplay.nix
Normal file → Executable file
0
system/modules/auto-mount.nix
Normal file → Executable file
0
system/modules/auto-mount.nix
Normal file → Executable file
0
system/modules/auto-upgrade.nix
Normal file → Executable file
0
system/modules/auto-upgrade.nix
Normal file → Executable file
0
system/modules/battery-life.nix
Normal file → Executable file
0
system/modules/battery-life.nix
Normal file → Executable file
0
system/modules/bluetooth.nix
Normal file → Executable file
0
system/modules/bluetooth.nix
Normal file → Executable file
0
system/modules/ca.nix
Normal file → Executable file
0
system/modules/ca.nix
Normal file → Executable file
0
system/modules/cockpit.nix
Normal file → Executable file
0
system/modules/cockpit.nix
Normal file → Executable file
0
system/modules/crowdsec.nix
Normal file → Executable file
0
system/modules/crowdsec.nix
Normal file → Executable file
0
system/modules/davinci-resolve.nix
Normal file → Executable file
0
system/modules/davinci-resolve.nix
Normal file → Executable file
0
system/modules/display-manager.nix
Normal file → Executable file
0
system/modules/display-manager.nix
Normal file → Executable file
0
system/modules/dns-server/default.nix
Normal file → Executable file
0
system/modules/dns-server/default.nix
Normal file → Executable file
0
system/modules/docmost.nix
Normal file → Executable file
0
system/modules/docmost.nix
Normal file → Executable file
0
system/modules/environment.nix
Normal file → Executable file
0
system/modules/environment.nix
Normal file → Executable file
0
system/modules/fail2ban.nix
Normal file → Executable file
0
system/modules/fail2ban.nix
Normal file → Executable file
0
system/modules/gaming.nix
Normal file → Executable file
0
system/modules/gaming.nix
Normal file → Executable file
0
system/modules/gc.nix
Normal file → Executable file
0
system/modules/gc.nix
Normal file → Executable file
0
system/modules/gitea.nix
Normal file → Executable file
0
system/modules/gitea.nix
Normal file → Executable file
0
system/modules/gnome.nix
Normal file → Executable file
0
system/modules/gnome.nix
Normal file → Executable file
0
system/modules/grafana.nix
Normal file → Executable file
0
system/modules/grafana.nix
Normal file → Executable file
0
system/modules/hardware.nix
Normal file → Executable file
0
system/modules/hardware.nix
Normal file → Executable file
0
system/modules/hyprland.nix
Normal file → Executable file
0
system/modules/hyprland.nix
Normal file → Executable file
0
system/modules/internationalisation.nix
Normal file → Executable file
0
system/modules/internationalisation.nix
Normal file → Executable file
0
system/modules/kubernetes.nix
Normal file → Executable file
0
system/modules/kubernetes.nix
Normal file → Executable file
0
system/modules/localsend.nix
Normal file → Executable file
0
system/modules/localsend.nix
Normal file → Executable file
0
system/modules/misc.nix
Normal file → Executable file
0
system/modules/misc.nix
Normal file → Executable file
0
system/modules/netbird-client.nix
Normal file → Executable file
0
system/modules/netbird-client.nix
Normal file → Executable file
0
system/modules/netbird-server.nix
Normal file → Executable file
0
system/modules/netbird-server.nix
Normal file → Executable file
0
system/modules/networking.nix
Normal file → Executable file
0
system/modules/networking.nix
Normal file → Executable file
0
system/modules/nextcloud.nix
Normal file → Executable file
0
system/modules/nextcloud.nix
Normal file → Executable file
18
system/modules/niri.nix
Normal file → Executable file
18
system/modules/niri.nix
Normal file → Executable file
|
|
@ -8,11 +8,8 @@ let
|
|||
inherit (lib)
|
||||
getExe
|
||||
pipe
|
||||
map
|
||||
listToAttrs
|
||||
genList
|
||||
;
|
||||
inherit (builtins) fetchurl;
|
||||
inherit (builtins) fetchurl genList listToAttrs;
|
||||
inherit (config.systemConf) username;
|
||||
|
||||
# nvidia-offload-enabled = config.hardware.nvidia.prime.offload.enableOffloadCmd;
|
||||
|
|
@ -20,8 +17,8 @@ let
|
|||
terminal = "ghostty";
|
||||
browser = "zen-twilight";
|
||||
|
||||
brightnessStep = builtins.toString 10;
|
||||
volumeStep = builtins.toString 4;
|
||||
brightnessStep = toString 10;
|
||||
volumeStep = toString 4;
|
||||
|
||||
execOnceScript = pkgs.writeShellScript "startupExec" ''
|
||||
# Fix nemo open in terminal
|
||||
|
|
@ -163,7 +160,10 @@ in
|
|||
];
|
||||
|
||||
input = {
|
||||
focus-follows-mouse.enable = true;
|
||||
focus-follows-mouse = {
|
||||
max-scroll-amount = "90%";
|
||||
enable = true;
|
||||
};
|
||||
mouse.accel-speed = -0.1;
|
||||
keyboard = {
|
||||
repeat-delay = 250;
|
||||
|
|
@ -226,11 +226,11 @@ in
|
|||
"Mod+WheelScrollLeft".action = focus-column-left;
|
||||
|
||||
# Touchpad
|
||||
"TouchpadScrollDown" = {
|
||||
"Mod+TouchpadScrollDown" = {
|
||||
cooldown-ms = 150;
|
||||
action = focus-window-or-workspace-down;
|
||||
};
|
||||
"TouchpadScrollUp" = {
|
||||
"Mod+TouchpadScrollUp" = {
|
||||
cooldown-ms = 150;
|
||||
action = focus-window-or-workspace-up;
|
||||
};
|
||||
|
|
|
|||
0
system/modules/nixsettings.nix
Normal file → Executable file
0
system/modules/nixsettings.nix
Normal file → Executable file
0
system/modules/nvidia.nix
Normal file → Executable file
0
system/modules/nvidia.nix
Normal file → Executable file
0
system/modules/obs-studio.nix
Normal file → Executable file
0
system/modules/obs-studio.nix
Normal file → Executable file
0
system/modules/opencloud.nix
Normal file → Executable file
0
system/modules/opencloud.nix
Normal file → Executable file
0
system/modules/openldap.nix
Normal file → Executable file
0
system/modules/openldap.nix
Normal file → Executable file
0
system/modules/packages.nix
Normal file → Executable file
0
system/modules/packages.nix
Normal file → Executable file
0
system/modules/paperless-ngx.nix
Normal file → Executable file
0
system/modules/paperless-ngx.nix
Normal file → Executable file
0
system/modules/plymouth.nix
Normal file → Executable file
0
system/modules/plymouth.nix
Normal file → Executable file
0
system/modules/polkit.nix
Normal file → Executable file
0
system/modules/polkit.nix
Normal file → Executable file
0
system/modules/postgresql.nix
Normal file → Executable file
0
system/modules/postgresql.nix
Normal file → Executable file
0
system/modules/presets/basic.nix
Normal file → Executable file
0
system/modules/presets/basic.nix
Normal file → Executable file
0
system/modules/presets/minimal.nix
Normal file → Executable file
0
system/modules/presets/minimal.nix
Normal file → Executable file
0
system/modules/printer.nix
Normal file → Executable file
0
system/modules/printer.nix
Normal file → Executable file
0
system/modules/programs.nix
Normal file → Executable file
0
system/modules/programs.nix
Normal file → Executable file
0
system/modules/prometheus.nix
Normal file → Executable file
0
system/modules/prometheus.nix
Normal file → Executable file
0
system/modules/rustdesk-server.nix
Normal file → Executable file
0
system/modules/rustdesk-server.nix
Normal file → Executable file
0
system/modules/secure-boot.nix
Normal file → Executable file
0
system/modules/secure-boot.nix
Normal file → Executable file
0
system/modules/security.nix
Normal file → Executable file
0
system/modules/security.nix
Normal file → Executable file
8
system/modules/services.nix
Normal file → Executable file
8
system/modules/services.nix
Normal file → Executable file
|
|
@ -32,13 +32,5 @@ in
|
|||
PermitRootLogin = lib.mkDefault "no";
|
||||
};
|
||||
};
|
||||
|
||||
xserver = {
|
||||
enable = false;
|
||||
xkb = {
|
||||
layout = "us";
|
||||
options = "caps:swapescape";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
0
system/modules/shells/noctalia/bar.nix
Normal file → Executable file
0
system/modules/shells/noctalia/bar.nix
Normal file → Executable file
0
system/modules/shells/noctalia/controlCenter.nix
Normal file → Executable file
0
system/modules/shells/noctalia/controlCenter.nix
Normal file → Executable file
0
system/modules/shells/noctalia/default.nix
Normal file → Executable file
0
system/modules/shells/noctalia/default.nix
Normal file → Executable file
0
system/modules/shells/noctalia/sessionMenu.nix
Normal file → Executable file
0
system/modules/shells/noctalia/sessionMenu.nix
Normal file → Executable file
0
system/modules/shells/noctalia/systemMonitor.nix
Normal file → Executable file
0
system/modules/shells/noctalia/systemMonitor.nix
Normal file → Executable file
0
system/modules/shells/noctalia/templates.nix
Normal file → Executable file
0
system/modules/shells/noctalia/templates.nix
Normal file → Executable file
0
system/modules/sops-nix.nix
Normal file → Executable file
0
system/modules/sops-nix.nix
Normal file → Executable file
0
system/modules/sound.nix
Normal file → Executable file
0
system/modules/sound.nix
Normal file → Executable file
0
system/modules/stalwart.nix
Normal file → Executable file
0
system/modules/stalwart.nix
Normal file → Executable file
0
system/modules/stylix.nix
Normal file → Executable file
0
system/modules/stylix.nix
Normal file → Executable file
0
system/modules/sunshine.nix
Normal file → Executable file
0
system/modules/sunshine.nix
Normal file → Executable file
0
system/modules/systemd-resolv.nix
Normal file → Executable file
0
system/modules/systemd-resolv.nix
Normal file → Executable file
0
system/modules/time.nix
Normal file → Executable file
0
system/modules/time.nix
Normal file → Executable file
6
system/modules/tmux.nix
Normal file → Executable file
6
system/modules/tmux.nix
Normal file → Executable file
|
|
@ -2,7 +2,8 @@
|
|||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
getIconScript = pkgs.writeShellScript "get-icon" ''
|
||||
get_icons() {
|
||||
local session_name="$1"
|
||||
|
|
@ -30,7 +31,8 @@
|
|||
|
||||
prefixKey = "C-Space";
|
||||
tmuxConfigPath = "/etc/tmux.conf";
|
||||
in {
|
||||
in
|
||||
{
|
||||
environment = {
|
||||
variables = {
|
||||
TMUXINATOR_CONFIG = "/etc/tmuxinator";
|
||||
|
|
|
|||
0
system/modules/users.nix
Normal file → Executable file
0
system/modules/users.nix
Normal file → Executable file
15
system/modules/vaultwarden.nix
Normal file → Executable file
15
system/modules/vaultwarden.nix
Normal file → Executable file
|
|
@ -1,6 +1,12 @@
|
|||
{ domain }:
|
||||
{ config, ... }:
|
||||
let
|
||||
inherit (config.sops) secrets;
|
||||
cfg = config.services.vaultwarden;
|
||||
in
|
||||
{
|
||||
sops.secrets."vaultwarden" = { };
|
||||
|
||||
services.postgresql = {
|
||||
enable = true;
|
||||
ensureUsers = [
|
||||
|
|
@ -17,7 +23,7 @@
|
|||
services.vaultwarden = {
|
||||
enable = true;
|
||||
dbBackend = "postgresql";
|
||||
environmentFile = config.sops.secrets.vaultwarden.path;
|
||||
environmentFile = secrets.vaultwarden.path;
|
||||
config = {
|
||||
DOMAIN = "https://${domain}";
|
||||
SIGNUPS_ALLOWED = true;
|
||||
|
|
@ -26,6 +32,11 @@
|
|||
ROCKET_ADDRESS = "127.0.0.1";
|
||||
ROCKET_LOG = "critical";
|
||||
|
||||
SSO_ENABLED = true;
|
||||
SSO_ONLY = true;
|
||||
SSO_SIGNUPS_MATCH_EMAIL = true;
|
||||
SSO_AUTH_ONLY_NOT_SESSION = true;
|
||||
|
||||
DATABASE_URL = "postgresql:///vaultwarden";
|
||||
};
|
||||
};
|
||||
|
|
@ -34,7 +45,7 @@
|
|||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:${toString config.services.vaultwarden.config.ROCKET_PORT}/";
|
||||
proxyPass = "http://127.0.0.1:${toString cfg.config.ROCKET_PORT}/";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
|
|
|
|||
0
system/modules/virtualization.nix
Normal file → Executable file
0
system/modules/virtualization.nix
Normal file → Executable file
0
system/modules/webcam.nix
Normal file → Executable file
0
system/modules/webcam.nix
Normal file → Executable file
0
system/modules/wine.nix
Normal file → Executable file
0
system/modules/wine.nix
Normal file → Executable file
0
system/modules/wireguard.nix
Normal file → Executable file
0
system/modules/wireguard.nix
Normal file → Executable file
Loading…
Add table
Add a link
Reference in a new issue