Initial commit of NixOS config

This commit is contained in:
2025-08-07 14:04:06 +02:00
commit 3255b199db
24 changed files with 996 additions and 0 deletions

41
autostart.nix Normal file
View File

@ -0,0 +1,41 @@
{ config, pkgs, ... }:
{
systemd.user.services.set-wallpaper = {
enable = true;
description = "Set KDE Plasma wallpaper";
#after = [ "plasma-desktop.service" ];
serviceConfig.ExecStart = [ "/run/current-system/sw/bin/plasma-apply-wallpaperimage /etc/nixos/other/wallpaper.png" ];
wantedBy = [ "graphical-session.target" ];
serviceConfig = {
Type = "oneshot";
Restart = "on-failure";
RestartSec = "5s";
};
};
systemd.user.services.autostart-yakuake = {
enable = false;
description = "Automatically start Yakuake";
#after = [ "plasma-desktop.service" ];
serviceConfig.ExecStart = [ "${pkgs.kdePackages.yakuake}/bin/yakuake" ];
wantedBy = [ "default.target" ];
serviceConfig = {
Type = "oneshot";
Restart = "on-failure";
RestartSec = "5s";
};
};
systemd.user.services.autostart-trayscale = {
enable = true;
description = "Automatically start Trayscale";
#after = [ "plasma-desktop.service" ];
serviceConfig.ExecStart = [ "${pkgs.trayscale}/bin/trayscale --hide-window" ];
wantedBy = [ "default.target" ];
serviceConfig = {
Type = "oneshot";
Restart = "on-failure";
RestartSec = "5s";
};
};
}