Reworked KDE Theme reminder to be a popup. Fixed Trayscale not working by default.
This commit is contained in:
9
configuration.nix
Normal file → Executable file
9
configuration.nix
Normal file → Executable file
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
#Nix flake file limit: ulimit -n 500000
|
#Nix flake file limit: ulimit -n 500000
|
||||||
|
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, username, ... }:
|
||||||
{
|
{
|
||||||
|
|
||||||
#Assign Swap to the PC
|
#Assign Swap to the PC
|
||||||
@ -100,8 +100,9 @@
|
|||||||
|
|
||||||
tailscale = {
|
tailscale = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraUpFlags = [
|
useRoutingFeatures = "client";
|
||||||
"--operator=${builtins.getEnv "USER"}"
|
extraSetFlags = [
|
||||||
|
"--operator=${username}"
|
||||||
"--accept-routes"
|
"--accept-routes"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
@ -139,6 +140,8 @@
|
|||||||
#In order for dynamically linked executables to work
|
#In order for dynamically linked executables to work
|
||||||
programs.nix-ld.enable = true;
|
programs.nix-ld.enable = true;
|
||||||
|
|
||||||
|
programs.steam.enable = true;
|
||||||
|
|
||||||
# Configure console keymap
|
# Configure console keymap
|
||||||
console.keyMap = "de";
|
console.keyMap = "de";
|
||||||
|
|
||||||
|
|||||||
0
firefox.nix
Normal file → Executable file
0
firefox.nix
Normal file → Executable file
0
flake.lock
generated
Normal file → Executable file
0
flake.lock
generated
Normal file → Executable file
@ -8,24 +8,24 @@
|
|||||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "sd_mod" ];
|
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "uas" "sd_mod" ];
|
||||||
boot.initrd.kernelModules = [ ];
|
boot.initrd.kernelModules = [ ];
|
||||||
boot.kernelModules = [ "kvm-intel" ];
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" =
|
||||||
{ device = "/dev/disk/by-uuid/e50e3c90-8486-46a2-aa7f-ec3ace52344e";
|
{ device = "/dev/disk/by-uuid/908d7dfb-fb97-4b78-80b5-dc8d810522e0";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/boot" =
|
fileSystems."/boot" =
|
||||||
{ device = "/dev/disk/by-uuid/D876-ED20";
|
{ device = "/dev/disk/by-uuid/F4AB-9E6A";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
options = [ "fmask=0077" "dmask=0077" ];
|
options = [ "fmask=0077" "dmask=0077" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices =
|
swapDevices =
|
||||||
[ { device = "/dev/disk/by-uuid/a80421d5-1b37-4fd2-b308-fd5bbd81fe10"; }
|
[ { device = "/dev/disk/by-uuid/d969d107-c7b5-4d5e-8c47-310cacbd38d1"; }
|
||||||
];
|
];
|
||||||
|
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||||
@ -34,7 +34,6 @@
|
|||||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||||
networking.useDHCP = lib.mkDefault true;
|
networking.useDHCP = lib.mkDefault true;
|
||||||
# networking.interfaces.eno1.useDHCP = lib.mkDefault true;
|
# networking.interfaces.eno1.useDHCP = lib.mkDefault true;
|
||||||
# networking.interfaces.tailscale0.useDHCP = lib.mkDefault true;
|
|
||||||
# networking.interfaces.wlp2s0.useDHCP = lib.mkDefault true;
|
# networking.interfaces.wlp2s0.useDHCP = lib.mkDefault true;
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
|||||||
0
hyprland/hyprland-home.nix
Normal file → Executable file
0
hyprland/hyprland-home.nix
Normal file → Executable file
0
hyprland/hyprland.conf
Normal file → Executable file
0
hyprland/hyprland.conf
Normal file → Executable file
0
hyprland/hyprland.nix
Normal file → Executable file
0
hyprland/hyprland.nix
Normal file → Executable file
0
neovim-home.nix
Normal file → Executable file
0
neovim-home.nix
Normal file → Executable file
0
neovim.nix
Normal file → Executable file
0
neovim.nix
Normal file → Executable file
4
other/aliases
Normal file → Executable file
4
other/aliases
Normal file → Executable file
@ -38,7 +38,9 @@ alias home-edit="sudoedit /etc/nixos/home.nix"
|
|||||||
|
|
||||||
alias cd-nix="cd /etc/nixos/"
|
alias cd-nix="cd /etc/nixos/"
|
||||||
|
|
||||||
|
#KDE Plasma Specific
|
||||||
|
#-----
|
||||||
|
alias kde-theme-apply="source /etc/nixos/plasma/konsave.sh"
|
||||||
|
|
||||||
#Hyprland Specific
|
#Hyprland Specific
|
||||||
#-----
|
#-----
|
||||||
|
|||||||
0
other/colors.sh
Normal file → Executable file
0
other/colors.sh
Normal file → Executable file
0
other/pfp.png
Normal file → Executable file
0
other/pfp.png
Normal file → Executable file
|
Before Width: | Height: | Size: 211 KiB After Width: | Height: | Size: 211 KiB |
0
other/pfp.sh
Normal file → Executable file
0
other/pfp.sh
Normal file → Executable file
0
other/wallpaper.png
Normal file → Executable file
0
other/wallpaper.png
Normal file → Executable file
|
Before Width: | Height: | Size: 8.9 MiB After Width: | Height: | Size: 8.9 MiB |
1
packages.nix
Normal file → Executable file
1
packages.nix
Normal file → Executable file
@ -24,6 +24,7 @@
|
|||||||
konsave #A package to transfer the look and feel of KDE Plasma to other machines
|
konsave #A package to transfer the look and feel of KDE Plasma to other machines
|
||||||
ocs-url
|
ocs-url
|
||||||
kdePackages.plasma-workspace
|
kdePackages.plasma-workspace
|
||||||
|
kdePackages.kdialog
|
||||||
openssh #SSH
|
openssh #SSH
|
||||||
zoxide #Alternatice to cd, browse files
|
zoxide #Alternatice to cd, browse files
|
||||||
fzf-zsh #Search for file names
|
fzf-zsh #Search for file names
|
||||||
|
|||||||
29
plasma/autostart.nix
Normal file → Executable file
29
plasma/autostart.nix
Normal file → Executable file
@ -1,12 +1,16 @@
|
|||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
{
|
{
|
||||||
|
|
||||||
|
#To show logs of services run: journalctl --user-unit={service-name} --user
|
||||||
|
|
||||||
systemd.user.services.set-wallpaper = {
|
systemd.user.services.set-wallpaper = {
|
||||||
enable = true;
|
enable = true;
|
||||||
description = "Set KDE Plasma wallpaper";
|
description = "Set KDE Plasma wallpaper";
|
||||||
#after = [ "plasma-desktop.service" ];
|
#after = [ "plasma-desktop.service" ];
|
||||||
serviceConfig.ExecStart = [ "/run/current-system/sw/bin/plasma-apply-wallpaperimage /etc/nixos/other/wallpaper.png" ];
|
|
||||||
wantedBy = [ "graphical-session.target" ];
|
wantedBy = [ "graphical-session.target" ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
|
ExecStart = [ "/run/current-system/sw/bin/plasma-apply-wallpaperimage /etc/nixos/other/wallpaper.png" ];
|
||||||
|
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
RestartSec = "5s";
|
RestartSec = "5s";
|
||||||
@ -17,9 +21,10 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
description = "Automatically start Yakuake";
|
description = "Automatically start Yakuake";
|
||||||
after = [ "graphical-session.target" ];
|
after = [ "graphical-session.target" ];
|
||||||
serviceConfig.ExecStart = [ "${pkgs.kdePackages.yakuake}/bin/yakuake" ];
|
|
||||||
wantedBy = [ "graphical-session.target" ];
|
wantedBy = [ "graphical-session.target" ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
|
ExecStart = [ "${pkgs.kdePackages.yakuake}/bin/yakuake" ];
|
||||||
|
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
RestartSec = "5s";
|
RestartSec = "5s";
|
||||||
@ -27,13 +32,31 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.user.services.theme-set-reminder = {
|
||||||
|
enable = true;
|
||||||
|
description = "Remind the user to apply the custom Plasma Theme shipped with this NixOS";
|
||||||
|
after = [ "graphical-session.target" ];
|
||||||
|
wantedBy = [ "graphical-session.target" ];
|
||||||
|
serviceConfig = {
|
||||||
|
# ExecStart = [ "${pkgs.kdePackages.kdialog}/bin/kdialog --passivepopup \"Dont forget to apply custom system theme! (run kde-theme-apply in terminal)\"" ];
|
||||||
|
ExecStart = [ "/etc/nixos/plasma/theme-popup.sh" ];
|
||||||
|
|
||||||
|
Type = "oneshot";
|
||||||
|
Restart = "on-failure";
|
||||||
|
RestartSec = "5s";
|
||||||
|
# Environment = "PATH=/run/current-system/sw/bin:/etc/profiles/per-user/$USER/bin";
|
||||||
|
# Environment = "DISPLAY=:0";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
systemd.user.services.autostart-trayscale = {
|
systemd.user.services.autostart-trayscale = {
|
||||||
enable = true;
|
enable = true;
|
||||||
description = "Automatically start Trayscale";
|
description = "Automatically start Trayscale";
|
||||||
#after = [ "plasma-desktop.service" ];
|
#after = [ "plasma-desktop.service" ];
|
||||||
serviceConfig.ExecStart = [ "${pkgs.trayscale}/bin/trayscale --hide-window" ];
|
|
||||||
wantedBy = [ "default.target" ];
|
wantedBy = [ "default.target" ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
|
ExecStart = [ "${pkgs.trayscale}/bin/trayscale --hide-window" ];
|
||||||
|
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
RestartSec = "5s";
|
RestartSec = "5s";
|
||||||
|
|||||||
5
plasma/kde-plasma.nix
Normal file → Executable file
5
plasma/kde-plasma.nix
Normal file → Executable file
@ -32,12 +32,10 @@ in
|
|||||||
# variant = "";
|
# variant = "";
|
||||||
#};
|
#};
|
||||||
|
|
||||||
#theme-reminder uses a definitive /home/cookiez path!!!
|
|
||||||
system.activationScripts.script.text = ''
|
system.activationScripts.script.text = ''
|
||||||
source /etc/nixos/other/colors.sh
|
source /etc/nixos/other/colors.sh
|
||||||
source /etc/nixos/other/pfp.sh
|
source /etc/nixos/other/pfp.sh
|
||||||
|
|
||||||
source /etc/nixos/plasma/theme-reminder.sh
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
#services.displayManager.sddm = {
|
#services.displayManager.sddm = {
|
||||||
@ -55,7 +53,4 @@ in
|
|||||||
# background = "${background-package}"
|
# background = "${background-package}"
|
||||||
# '')
|
# '')
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
programs.steam.enable = true;
|
|
||||||
}
|
}
|
||||||
|
|||||||
0
plasma/konsave.sh
Normal file → Executable file
0
plasma/konsave.sh
Normal file → Executable file
11
plasma/theme-popup.sh
Executable file
11
plasma/theme-popup.sh
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
sleep 15
|
||||||
|
FLAG_FILE="/home/cookiez/.flags/theme-flag"
|
||||||
|
|
||||||
|
|
||||||
|
if [ ! -f "$FLAG_FILE" ]; then
|
||||||
|
/run/current-system/sw/bin/kdialog --passivepopup "Dont forget to apply custom system theme! (run kde-theme-apply in terminal)" 60
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Finished Popup Script!"
|
||||||
@ -1,9 +0,0 @@
|
|||||||
source /etc/nixos/other/colors.sh
|
|
||||||
FLAG_FILE="/home/cookiez/.flags/theme-flag"
|
|
||||||
|
|
||||||
if [ ! -f "$FLAG_FILE" ]; then
|
|
||||||
echo -e "${RED}Warning: Make sure to apply the custom system theme!${NOCOLOR} (source '/etc/nixos/plasma/konsave.sh')"
|
|
||||||
fi
|
|
||||||
#else
|
|
||||||
# echo "Flag file exists - Theme should be applied already!"
|
|
||||||
#fi
|
|
||||||
0
plasma/theme.knsv
Normal file → Executable file
0
plasma/theme.knsv
Normal file → Executable file
Reference in New Issue
Block a user