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 = [
../../modules/home
];
sway.enable = true;
sway.laptop = true;
shell.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
# manage.
@ -27,49 +24,8 @@
# release notes.
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;
services.nextcloud-client.enable = true;
services.udiskie = {
enable = true;
automount = true;
notify = true;
};
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;

View File

@ -17,7 +17,7 @@ in {
];
services.mpd = {
enable = true;
musicDirectory = "~/Music/";
musicDirectory = "${config.home.homeDirectory}/Music/";
network.startWhenNeeded = true;
extraConfig = ''
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,4 +1,15 @@
{...}: {
{
lib,
config,
...
}: let
cfg = config.myPrograms.foot;
in {
options = {
myPrograms.foot.enable = lib.mkEnableOption "foot, a lightweight wayland terminal emulator";
};
config = lib.mkIf cfg.enable {
programs.foot = {
enable = true;
settings = {
@ -27,4 +38,5 @@
};
};
};
};
}

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,4 +1,15 @@
{...}: {
{
lib,
config,
...
}: let
cfg = config.myPrograms.thunderbird;
in {
options = {
myPrograms.thunderbird.enable = lib.mkEnableOption "thunderbird, a email client";
};
config = lib.mkIf cfg.enable {
accounts.email.accounts = {
"google max" = {
address = "max.kaenner@gmail.com";
@ -101,4 +112,5 @@
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;
};
};
}