refactor: Formatting

This commit is contained in:
2025-02-07 22:13:20 +01:00
parent c3f4470f80
commit dc2abe6ff1
36 changed files with 349 additions and 198 deletions
+1 -1
View File
@@ -4,4 +4,4 @@
./environments
./hardware
];
}
}
+17 -14
View File
@@ -1,10 +1,13 @@
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}:
let
cfg = config.my.profiles.apps;
in {
in
{
options.my.profiles.apps = with lib; {
desktop_apps = mkEnableOption "Basic Apps";
@@ -16,17 +19,17 @@ let
users.users.finn.packages = with pkgs; [
firefox
thunderbird
google-chrome
google-chrome
vscode
discord
spotify
keepassxc
discord
spotify
keepassxc
moonlight-qt
nextcloud-client
pipewire
nextcloud-client
pipewire
wireplumber
vlc
vlc
ghostty
];
};
}
};
}
+1 -1
View File
@@ -15,4 +15,4 @@
./jellyfin
./jellyseerr
];
}
}
+10 -3
View File
@@ -1,6 +1,13 @@
{ config, lib, pkgs, ... }:
let cfg = config.my.profiles.development;
in {
{
config,
lib,
pkgs,
...
}:
let
cfg = config.my.profiles.development;
in
{
options.my.profiles.development = with lib; {
enable = mkEnableOption "Development Tools";
+9 -2
View File
@@ -1,5 +1,12 @@
# Docker related settings
{ config, inputs, lib, options, pkgs, ... }:
{
config,
inputs,
lib,
options,
pkgs,
...
}:
let
cfg = config.my.profiles.docker;
in
@@ -19,4 +26,4 @@ in
autoPrune.enable = true;
};
};
}
}
+16 -11
View File
@@ -1,7 +1,13 @@
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}:
let
cfg = config.my.profiles.hyprland;
in {
in
{
options.my.profiles.hyprland = with lib; {
enable = mkEnableOption "hyprland env";
};
@@ -12,12 +18,11 @@ let
xwayland.enable = true;
};
services.displayManager.sddm.wayland.enable = true;
services.xserver = {
layout = "de";
xkbVariant = "";
};
layout = "de";
xkbVariant = "";
};
users.users.finn.packages = with pkgs; [
wofi
mako
@@ -30,12 +35,12 @@ let
#xdg-desktop-portal-hyprland
];
hardware = {
# Opengl
opengl.enable = true;
# Opengl
opengl.enable = true;
# Most wayland compositors need this
nvidia.modesetting.enable = true;
};
# Most wayland compositors need this
nvidia.modesetting.enable = true;
};
};
}
+7 -3
View File
@@ -1,5 +1,10 @@
# manages and downloads films
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}:
let
cfg = config.my.profiles.jellyfin;
in
@@ -15,9 +20,8 @@ in
openFirewall = true;
};
systemd.services.jellyfin = {
after = [ "network-online.target" ];
};
};
}
}
+1 -2
View File
@@ -1,4 +1,3 @@
# manages and downloads films
{ config, lib, ... }:
let
@@ -20,4 +19,4 @@ in
after = [ "network-online.target" ];
};
};
}
}
+10 -5
View File
@@ -1,5 +1,10 @@
# KDE Desktio Environment
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}:
let
cfg = config.my.profiles.kde-desktop;
in
@@ -10,13 +15,13 @@ in
config = lib.mkIf cfg.enable {
services.xserver = {
enable = true;
displayManager.sddm.enable = true;
desktopManager.plasma5.enable = true;
enable = true;
displayManager.sddm.enable = true;
desktopManager.plasma5.enable = true;
};
users.users.finn.packages = with pkgs; [
# Programms can be added here...
numix-icon-theme
];
};
}
}
+13 -11
View File
@@ -8,18 +8,20 @@ in
enable = mkEnableOption "Paperless Server";
port = mkOption {
type = types.port;
default = 28981;
example = 8080;
description = "Internal port for webui";
};
type = types.port;
default = 28981;
example = 8080;
description = "Internal port for webui";
};
extraConfig = mkOption {
type = types.attrs;
default = {};
example = { PAPERLESS_OCR_LANGUAGE = "deu+eng"; };
description = "Extra configuration options";
};
type = types.attrs;
default = { };
example = {
PAPERLESS_OCR_LANGUAGE = "deu+eng";
};
description = "Extra configuration options";
};
};
config = lib.mkIf cfg.enable {
@@ -33,4 +35,4 @@ in
};
networking.firewall.allowedTCPPorts = [ cfg.port ];
};
}
}
+9 -4
View File
@@ -1,10 +1,15 @@
# manages indexes
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}:
let
cfg = config.my.profiles.prowlarr;
# domain = config.networking.domain;
# port = 9696;
in
# domain = config.networking.domain;
# port = 9696;
{
options.my.profiles.prowlarr = with lib; {
enable = mkEnableOption "Prowlarr for indexing";
@@ -30,4 +35,4 @@ in
after = [ "network-online.target" ];
};
};
}
}
+9 -4
View File
@@ -1,10 +1,15 @@
# manages and downloads films
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}:
let
cfg = config.my.profiles.radarr;
# domain = config.networking.domain;
# port = 7878;
in
# domain = config.networking.domain;
# port = 7878;
{
options.my.profiles.radarr = with lib; {
enable = mkEnableOption "Sonarr for films management";
@@ -23,4 +28,4 @@ in
after = [ "network-online.target" ];
};
};
}
}
+9 -4
View File
@@ -1,10 +1,15 @@
# manages and downloads films
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}:
let
cfg = config.my.profiles.readarr;
# domain = config.networking.domain;
# port = 7878;
in
# domain = config.networking.domain;
# port = 7878;
{
options.my.profiles.readarr = with lib; {
enable = mkEnableOption "Readarr for ebook management";
@@ -23,4 +28,4 @@ in
after = [ "network-online.target" ];
};
};
}
}
+8 -3
View File
@@ -1,9 +1,14 @@
# manages and downloads films
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}:
let
cfg = config.my.profiles.sonarr;
# domain = config.networking.domain;
port = 8989;
port = 8989;
in
{
options.my.profiles.sonarr = with lib; {
@@ -23,4 +28,4 @@ in
after = [ "network-online.target" ];
};
};
}
}
+13 -10
View File
@@ -1,9 +1,13 @@
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}:
let
cfg = config.my.profiles.zsh;
in {
in
{
options.my.profiles.zsh = with lib; {
enable = mkEnableOption "zsh env";
@@ -12,13 +16,12 @@ let
config = lib.mkIf cfg.enable {
users.defaultUserShell = pkgs.zsh;
programs.zsh = {
enable = true;
ohMyZsh = {
enable = true;
ohMyZsh = {
enable = true;
theme = "agnoster";
};
theme = "agnoster";
};
};
};
};
}
+6 -1
View File
@@ -1,4 +1,9 @@
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}:
let
cfg = config.my.hardware.bluetooth;
in
+1 -1
View File
@@ -14,4 +14,4 @@
#./thunderbolt
#./wifi
];
}
}
+7 -4
View File
@@ -1,4 +1,9 @@
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}:
let
cfg = config.my.hardware.bluetooth;
in
@@ -7,8 +12,6 @@ in
enable = mkEnableOption "Sound configuration";
};
config = lib.mkIf cfg.enable {
hardware.pulseaudio.enable = false;
hardware.pulseaudio.support32Bit = true;
@@ -17,4 +20,4 @@ in
headsetcontrol
];
};
}
}
+7 -2
View File
@@ -1,4 +1,9 @@
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}:
let
cfg = config.my.hardware.wifi;
in
@@ -13,4 +18,4 @@ in
package = pkgs.rtw89-firmware;
};
};
}
}