Set up Hyprland config. Restructured Desktop environment configs into separate folders.
This commit is contained in:
41
plasma/autostart.nix
Normal file
41
plasma/autostart.nix
Normal 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 = true;
|
||||
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 = false;
|
||||
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";
|
||||
};
|
||||
};
|
||||
}
|
||||
61
plasma/kde-plasma.nix
Normal file
61
plasma/kde-plasma.nix
Normal file
@ -0,0 +1,61 @@
|
||||
{config, pkgs, ...}:
|
||||
|
||||
let
|
||||
# Define the custom background package with the correct relative path
|
||||
background-package = pkgs.stdenvNoCC.mkDerivation {
|
||||
name = "background-image";
|
||||
src = ./other/wallpaper.png; # Place wallpaper.jpg in the same directory as this config file
|
||||
dontUnpack = true;
|
||||
installPhase = ''
|
||||
cp $src $out
|
||||
'';
|
||||
};
|
||||
in
|
||||
|
||||
{
|
||||
imports =
|
||||
[
|
||||
#Example:
|
||||
#./hardware-configuration.nix
|
||||
./autostart.nix
|
||||
#Moved Back to flake until plasma theme configuration is done!
|
||||
#./zsh.nix
|
||||
];
|
||||
|
||||
# Enable the X11 windowing system.
|
||||
# You can disable this if you're only using the Wayland session.
|
||||
#services.xserver.enable = true;
|
||||
|
||||
# Configure keymap in X11
|
||||
#services.xserver.xkb = {
|
||||
# layout = "de";
|
||||
# variant = "";
|
||||
#};
|
||||
|
||||
#theme-reminder uses a definitive /home/cookiez path!!!
|
||||
system.activationScripts.script.text = ''
|
||||
source /etc/nixos/other/colors.sh
|
||||
source /etc/nixos/other/pfp.sh
|
||||
|
||||
source /etc/nixos/other/theme-reminder.sh
|
||||
'';
|
||||
|
||||
#services.displayManager.sddm = {
|
||||
# enable = true;
|
||||
# theme = "breeze";
|
||||
# wayland.enable = true;
|
||||
#};
|
||||
|
||||
# Enable the KDE Plasma Desktop Environment.
|
||||
services.desktopManager.plasma6.enable = true;
|
||||
|
||||
# environment.systemPackages = with pkgs; [
|
||||
# (pkgs.writeTextDir "share/sddm/themes/breeze/theme.conf.user" ''
|
||||
# [General]
|
||||
# background = "${background-package}"
|
||||
# '')
|
||||
# ];
|
||||
|
||||
|
||||
programs.steam.enable = true;
|
||||
}
|
||||
Reference in New Issue
Block a user