This commit is contained in:
Felix Buehler 2022-05-29 18:20:20 +02:00
commit 1a32c038d9
9 changed files with 75 additions and 30 deletions

View file

@ -17,17 +17,16 @@ let
} // flip mapAttrs' config.services.borgbackup.jobs (name: value: } // flip mapAttrs' config.services.borgbackup.jobs (name: value:
nameValuePair "borgbackup-job-${name}" { nameValuePair "borgbackup-job-${name}" {
unitConfig.OnFailure = "notify-problems@%i.service"; unitConfig.OnFailure = "notify-problems@%i.service";
preStart = lib.mkBefore ''
# waiting for internet after resume-from-suspend
until /run/wrappers/bin/ping google.com -c1 -q >/dev/null; do :; done
'';
} }
); );
# forces backup after boot in case server was powered off during scheduled event
config.systemd.timers = flip mapAttrs' config.services.borgbackup.jobs (name: value: config.systemd.timers = flip mapAttrs' config.services.borgbackup.jobs (name: value:
nameValuePair "borgbackup-job-${name}" { nameValuePair "borgbackup-job-${name}" {
# forces backup after boot in case server was powered off during scheduled event
timerConfig.Persistent = true; timerConfig.Persistent = true;
# only if network is available
wantedBy = [ "timers.target" ];
after = [ "network-online.target" ];
} }
); );
}; };
@ -45,6 +44,9 @@ in
]; ];
exclude = [ exclude = [
"/nix" "/nix"
"/sys"
"/run"
"/proc"
"/root/.cache/" "/root/.cache/"
"**/.Trash" "**/.Trash"
"/tmp/*" "/tmp/*"

View file

@ -1,9 +1,12 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
let
unstable = import <nixos-unstable> { config = { allowUnfree = true; }; };
in
{ {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
baobab baobab
#dupeguru dupeguru
unstable.findimagedupes
jdupes jdupes
kondo kondo
]; ];

View file

@ -3,9 +3,9 @@ let
unstable = import <nixos-unstable> { config = { allowUnfree = true; }; }; unstable = import <nixos-unstable> { config = { allowUnfree = true; }; };
in in
{ {
imports = [ imports = [
./fonts.nix ./fonts.nix
./nautilus.nix
]; ];
programs.gnome-disks.enable = true; programs.gnome-disks.enable = true;
@ -19,12 +19,7 @@ in
# gnome services # gnome services
services.dbus.packages = [ pkgs.gnome.dconf ]; services.dbus.packages = [ pkgs.gnome.dconf ];
services.udev.packages = [ pkgs.gnome.gnome-settings-daemon ]; services.udev.packages = [ pkgs.gnome.gnome-settings-daemon ];
services.gnome = { services.gnome.gnome-keyring.enable = true;
gnome-keyring.enable = true;
glib-networking.enable = true; # network-mount
};
# enable trash & network-mount
services.gvfs.enable = true;
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
adwaita-qt adwaita-qt
@ -35,7 +30,11 @@ in
firefox-wayland firefox-wayland
#geary #geary
ghostwriter ghostwriter
(gimp-with-plugins.override { plugins = with gimpPlugins; [ resynthesizer ]; }) (gimp-with-plugins.override {
plugins = with gimpPlugins; [
resynthesizer
];
})
glib glib
gnome.adwaita-icon-theme gnome.adwaita-icon-theme
gnome.dconf-editor gnome.dconf-editor
@ -43,7 +42,6 @@ in
gnome.file-roller gnome.file-roller
gnome.gnome-calendar gnome.gnome-calendar
gnome.gnome-system-monitor gnome.gnome-system-monitor
gnome.nautilus
gnome.simple-scan gnome.simple-scan
keepassxc keepassxc
keychain keychain
@ -59,14 +57,21 @@ in
qgnomeplatform qgnomeplatform
rhythmbox rhythmbox
simple-scan simple-scan
#spotify
socat socat
sshuttle sshuttle
tdesktop tdesktop
thunderbird thunderbird
virtmanager virtmanager
vlc vlc
mpv-with-scripts (mpv-with-scripts.override {
scripts = with mpvScripts; [
convert
mpris
simple-mpv-webui
sponsorblock
thumbnail
];
})
wayvnc wayvnc
xdg-utils xdg-utils
zathura zathura

View file

@ -34,6 +34,7 @@ in
scikitlearn scikitlearn
scipy scipy
tqdm # progressbar in pandas tqdm # progressbar in pandas
wheel # python development
])) ]))
ripgrep ripgrep
shellcheck shellcheck

View file

@ -1,8 +1,13 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
virtualisation.docker.enable = true;
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
docker
docker_compose docker_compose
]; ];
virtualisation.docker = {
enable = true;
autoPrune.enable = true;
};
} }

View file

@ -1,5 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
let let
unstable = import <nixos-unstable> { config = { allowUnfree = true; }; };
yt-dlp = pkgs.yt-dlp.override { yt-dlp = pkgs.yt-dlp.override {
withAlias = true; withAlias = true;
}; };
@ -12,17 +13,19 @@ in
gallery-dl gallery-dl
graphviz graphviz
handbrake handbrake
imagemagick
image_optim image_optim
imagemagick
inkscape inkscape
puddletag # audio tagging unstable.mat2 # metadata-cleaning
mediaelch
mp3gain
mp3splt # splitting mp3 files mp3splt # splitting mp3 files
mp3val mp3val
mediaelch
pdfsam-basic # pdf editing pdfsam-basic # pdf editing
picard picard # music tagging
projectm projectm # visualization of music
shotwell puddletag # audio tagging
shotwell # photo management
soundkonverter soundkonverter
yt-dlp yt-dlp
]; ];

29
extra/nautilus.nix Normal file
View file

@ -0,0 +1,29 @@
{ config, lib, pkgs, ... }:
let
unstable = import <nixos-unstable> { config = { allowUnfree = true; }; };
in
{
# enable trash & network-mount
services.gvfs.enable = true;
environment.sessionVariables.NAUTILUS_EXTENSION_DIR = "${config.system.path}/lib/nautilus/extensions-3.0";
environment.pathsToLink = [
"/share/nautilus-python/extensions"
];
services.gnome.glib-networking.enable = true; # network-mount
environment.systemPackages = with pkgs; [
# thumbnails
ffmpegthumbnailer
gnome.nautilus
# enable plugins
gnome.nautilus-python
# thumbnails
gst_all_1.gst-libav
# default-programms
shared-mime-info
# terminal-context-entry
unstable.nautilus-open-any-terminal
];
}

View file

@ -1,8 +1,7 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
{ {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
nix-prefetch-git nix-prefetch
nix-prefetch-github
nix-update nix-update
nixpkgs-fmt nixpkgs-fmt
nixpkgs-lint nixpkgs-lint

View file

@ -34,9 +34,7 @@
wshowkeys wshowkeys
]; ];
extraSessionCommands = ''
extraSessionCommands =
''
export XDG_SESSION_TYPE=wayland export XDG_SESSION_TYPE=wayland
export XDG_CURRENT_DESKTOP=sway export XDG_CURRENT_DESKTOP=sway
export SDL_VIDEODRIVER=wayland export SDL_VIDEODRIVER=wayland