314 current 1970-01-01 01:00:00 23.11.20240514.9ddcaff 6.1.90 *

This commit is contained in:
Max Känner 2024-05-18 21:20:50 +02:00
parent f3eacd23c3
commit 63563d6537
7 changed files with 237 additions and 176 deletions

View File

@ -1,17 +1,14 @@
{ {...}: {
pkgs,
inputs,
...
}: {
imports = [ imports = [
../../modules/home ../../modules/home
]; ];
sway.enable = true;
sway.laptop = true;
shell.enable = true; shell.enable = true;
git.enable = true; git.enable = true;
music.enable = true;
sway.enable = true;
sway.laptop = true;
myPrograms.enable = true;
# Home Manager needs a bit of information about you and the paths it should # Home Manager needs a bit of information about you and the paths it should
# manage. # manage.
@ -27,49 +24,8 @@
# release notes. # release notes.
home.stateVersion = "23.11"; # Please read the comment before changing. home.stateVersion = "23.11"; # Please read the comment before changing.
# The home.packages option allows you to install Nix packages into your
# environment.
home.packages = with pkgs; [
unzip
nextcloud-client
firefox
thunderbird
xournalpp
prismlauncher
steam
blender
betaflight-configurator
loudgain
youtube-dl
dconf
distrobox
libqalculate
sops
pwvucontrol
qpwgraph
discord
libreoffice-fresh
mate.caja
libsForQt5.okular
mpv
gimp
freecad
flatpak
wine
unstable.gyroflow
prusa-slicer
];
xdg.enable = true; xdg.enable = true;
services.nextcloud-client.enable = true;
services.udiskie = {
enable = true;
automount = true;
notify = true;
};
# Let Home Manager install and manage itself. # Let Home Manager install and manage itself.
programs.home-manager.enable = true; programs.home-manager.enable = true;

View File

@ -17,7 +17,7 @@ in {
]; ];
services.mpd = { services.mpd = {
enable = true; enable = true;
musicDirectory = "~/Music/"; musicDirectory = "${config.home.homeDirectory}/Music/";
network.startWhenNeeded = true; network.startWhenNeeded = true;
extraConfig = '' extraConfig = ''
restore_paused "yes" restore_paused "yes"

View File

@ -1,3 +1,50 @@
{...}: { {
imports = [./foot.nix ./thunderbird.nix]; lib,
config,
pkgs,
...
}: let
cfg = config.myPrograms;
in {
imports = [./foot.nix ./thunderbird.nix ./nextcloud.nix ./udiskie.nix];
options = {
myPrograms.enable = lib.mkEnableOption "programs for desktop use";
};
config = lib.mkIf cfg.enable {
myPrograms.foot.enable = lib.mkDefault true;
myPrograms.thunderbird.enable = lib.mkDefault true;
myPrograms.nextcloud.enable = lib.mkDefault true;
myPrograms.udiskie.enable = lib.mkDefault true;
home.packages = with pkgs; [
unzip
firefox
xournalpp
prismlauncher
steam
blender
betaflight-configurator
loudgain
youtube-dl
dconf
distrobox
libqalculate
sops
pwvucontrol
qpwgraph
discord
libreoffice-fresh
mate.caja
libsForQt5.okular
mpv
gimp
freecad
flatpak
wine
unstable.gyroflow
prusa-slicer
];
};
} }

View File

@ -1,29 +1,41 @@
{...}: { {
programs.foot = { lib,
enable = true; config,
settings = { ...
main = { }: let
font = "FiraCode Nerd Font Mono:size=10"; cfg = config.myPrograms.foot;
dpi-aware = "yes"; in {
}; options = {
colors = { myPrograms.foot.enable = lib.mkEnableOption "foot, a lightweight wayland terminal emulator";
regular0 = "222222"; # black };
regular1 = "cc9393"; # red
regular2 = "7f9f7f"; # green
regular3 = "d0bf8f"; # yellow
regular4 = "8cd0d3"; # blue
regular5 = "dc8cc3"; # magenta
regular6 = "93e0e3"; # cyan
regular7 = "dcdccc"; # white
bright0 = "666666"; # black config = lib.mkIf cfg.enable {
bright1 = "dca3a3"; # red programs.foot = {
bright2 = "bfebbf"; # green enable = true;
bright3 = "f0dfaf"; # yellow settings = {
bright4 = "8cd0d3"; # blue main = {
bright5 = "fcace3"; # magenta font = "FiraCode Nerd Font Mono:size=10";
bright6 = "b3ffff"; # cyan dpi-aware = "yes";
bright7 = "ffffff"; # white };
colors = {
regular0 = "222222"; # black
regular1 = "cc9393"; # red
regular2 = "7f9f7f"; # green
regular3 = "d0bf8f"; # yellow
regular4 = "8cd0d3"; # blue
regular5 = "dc8cc3"; # magenta
regular6 = "93e0e3"; # cyan
regular7 = "dcdccc"; # white
bright0 = "666666"; # black
bright1 = "dca3a3"; # red
bright2 = "bfebbf"; # green
bright3 = "f0dfaf"; # yellow
bright4 = "8cd0d3"; # blue
bright5 = "fcace3"; # magenta
bright6 = "b3ffff"; # cyan
bright7 = "ffffff"; # white
};
}; };
}; };
}; };

View File

@ -0,0 +1,15 @@
{
lib,
config,
...
}: let
cfg = config.myPrograms.nextcloud;
in {
options = {
myPrograms.nextcloud.enable = lib.mkEnableOption "nextcloud client";
};
config = lib.mkIf cfg.enable {
services.nextcloud-client.enable = true;
};
}

View File

@ -1,104 +1,116 @@
{...}: { {
accounts.email.accounts = { lib,
"google max" = { config,
address = "max.kaenner@gmail.com"; ...
userName = "max.kaenner@gmail.com"; }: let
realName = "Max Känner"; cfg = config.myPrograms.thunderbird;
flavor = "gmail.com"; in {
thunderbird = { options = {
enable = true; myPrograms.thunderbird.enable = lib.mkEnableOption "thunderbird, a email client";
settings = id: {
"mail.smtpserver.smtp_${id}.authMethod" = 10;
"mail.server.server_${id}.authMethod" = 10;
};
};
primary = true;
};
"google informatiker" = {
address = "kaenner9@gmail.com";
userName = "kaenner9@gmail.com";
realName = "Max Känner";
flavor = "gmail.com";
thunderbird = {
enable = true;
settings = id: {
"mail.smtpserver.smtp_${id}.authMethod" = 10;
"mail.server.server_${id}.authMethod" = 10;
};
};
};
"uni" = {
address = "max.kaenner@stud.uni-hannover.de";
userName = "max.kaenner@stud.uni-hannover.de";
realName = "Max Känner";
imap = {
host = "mail.stud.uni-hannover.de";
port = 993;
tls = {
enable = true;
useStartTls = false;
};
};
smtp = {
host = "smtp.uni-hannover.de";
port = 587;
tls = {
enable = true;
useStartTls = true;
};
};
thunderbird.enable = true;
};
"luhbots" = {
address = "max.kaenner@luhbots.de";
userName = "max.kaenner@luhbots.de";
realName = "Max Känner";
imap = {
host = "luhbots.de";
port = 993;
tls = {
enable = true;
useStartTls = false;
};
};
smtp = {
host = "luhbots.de";
port = 587;
tls = {
enable = true;
useStartTls = true;
};
};
thunderbird.enable = true;
};
"gymstolz" = {
address = "max.kaenner@gym-stolz.de";
userName = "max.kaenner";
realName = "Max Känner";
imap = {
host = "gym-stolz.de";
port = 143;
tls = {
enable = true;
useStartTls = true;
};
};
smtp = {
host = "gym-stolz.de";
port = 587;
tls = {
enable = true;
useStartTls = true;
};
};
thunderbird.enable = true;
};
}; };
programs.thunderbird = { config = lib.mkIf cfg.enable {
enable = true; accounts.email.accounts = {
profiles.default = { "google max" = {
isDefault = true; address = "max.kaenner@gmail.com";
userName = "max.kaenner@gmail.com";
realName = "Max Känner";
flavor = "gmail.com";
thunderbird = {
enable = true;
settings = id: {
"mail.smtpserver.smtp_${id}.authMethod" = 10;
"mail.server.server_${id}.authMethod" = 10;
};
};
primary = true;
};
"google informatiker" = {
address = "kaenner9@gmail.com";
userName = "kaenner9@gmail.com";
realName = "Max Känner";
flavor = "gmail.com";
thunderbird = {
enable = true;
settings = id: {
"mail.smtpserver.smtp_${id}.authMethod" = 10;
"mail.server.server_${id}.authMethod" = 10;
};
};
};
"uni" = {
address = "max.kaenner@stud.uni-hannover.de";
userName = "max.kaenner@stud.uni-hannover.de";
realName = "Max Känner";
imap = {
host = "mail.stud.uni-hannover.de";
port = 993;
tls = {
enable = true;
useStartTls = false;
};
};
smtp = {
host = "smtp.uni-hannover.de";
port = 587;
tls = {
enable = true;
useStartTls = true;
};
};
thunderbird.enable = true;
};
"luhbots" = {
address = "max.kaenner@luhbots.de";
userName = "max.kaenner@luhbots.de";
realName = "Max Känner";
imap = {
host = "luhbots.de";
port = 993;
tls = {
enable = true;
useStartTls = false;
};
};
smtp = {
host = "luhbots.de";
port = 587;
tls = {
enable = true;
useStartTls = true;
};
};
thunderbird.enable = true;
};
"gymstolz" = {
address = "max.kaenner@gym-stolz.de";
userName = "max.kaenner";
realName = "Max Känner";
imap = {
host = "gym-stolz.de";
port = 143;
tls = {
enable = true;
useStartTls = true;
};
};
smtp = {
host = "gym-stolz.de";
port = 587;
tls = {
enable = true;
useStartTls = true;
};
};
thunderbird.enable = true;
};
};
programs.thunderbird = {
enable = true;
profiles.default = {
isDefault = true;
};
}; };
}; };
} }

View File

@ -0,0 +1,19 @@
{
lib,
config,
...
}: let
cfg = config.myPrograms.udiskie;
in {
options = {
myPrograms.udiskie.enable = lib.mkEnableOption "auto media mounting";
};
config = lib.mkIf cfg.enable {
services.udiskie = {
enable = true;
automount = true;
notify = true;
};
};
}