mirror of
https://github.com/CHN-beta/nixos.git
synced 2026-01-12 04:19:22 +08:00
users.chn.plasma.autostart: init
This commit is contained in:
22
modules/users/chn/plasma/autostart/default.nix
Normal file
22
modules/users/chn/plasma/autostart/default.nix
Normal file
@@ -0,0 +1,22 @@
|
||||
inputs:
|
||||
{
|
||||
config = inputs.lib.mkIf inputs.config.nixos.system.gui.enable
|
||||
{
|
||||
home-manager.users.chn.config.home.file =
|
||||
let
|
||||
devices =
|
||||
{
|
||||
pc = [ "nheko" "kclockd" "yakuake" "telegram" ];
|
||||
surface = [ "kclockd" "yakuake" "telegram" ];
|
||||
};
|
||||
in builtins.listToAttrs (builtins.map
|
||||
(file: { name = ".config/autostart/${file}.desktop"; value.source = ./. + "/${file}.desktop"; })
|
||||
(devices.${inputs.config.nixos.system.networking.hostname}));
|
||||
environment.persistence =
|
||||
let impermanence = inputs.config.nixos.system.impermanence;
|
||||
in inputs.lib.mkIf impermanence.enable
|
||||
{
|
||||
"${impermanence.root}".users.chn.directories = [ ".config/autostart" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
6
modules/users/chn/plasma/autostart/kclockd.desktop
Normal file
6
modules/users/chn/plasma/autostart/kclockd.desktop
Normal file
@@ -0,0 +1,6 @@
|
||||
[Desktop Entry]
|
||||
DBusActivatable=true
|
||||
Exec=kclockd
|
||||
Name=org.kde.kclockd-autostart
|
||||
Type=Application
|
||||
X-Flatpak=org.kde.kclockd-autostart
|
||||
15
modules/users/chn/plasma/autostart/nheko.desktop
Normal file
15
modules/users/chn/plasma/autostart/nheko.desktop
Normal file
@@ -0,0 +1,15 @@
|
||||
[Desktop Entry]
|
||||
Categories=Network;InstantMessaging;Qt;
|
||||
Comment=Desktop client for Matrix
|
||||
Exec=nheko %u
|
||||
Icon=nheko
|
||||
Keywords=Matrix;matrix.org;chat;irc;communications;talk;riot;element;fractal;voip;
|
||||
MimeType=x-scheme-handler/matrix;
|
||||
Name=nheko
|
||||
StartupWMClass=nheko
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Version=1.0
|
||||
X-GNOME-UsesNotifications=true
|
||||
X-KDE-Keywords=Matrix,matrix.org,chat,irc,communications,talk,riot,element,fractal,voip,
|
||||
X-Purism-FormFactor=Workstation;Mobile;
|
||||
17
modules/users/chn/plasma/autostart/telegram.desktop
Normal file
17
modules/users/chn/plasma/autostart/telegram.desktop
Normal file
@@ -0,0 +1,17 @@
|
||||
[Desktop Entry]
|
||||
Name=Telegram Desktop
|
||||
Comment=Official desktop version of Telegram messaging app
|
||||
TryExec=telegram-desktop
|
||||
Exec=telegram-desktop -autostart
|
||||
Icon=telegram
|
||||
Terminal=false
|
||||
StartupWMClass=TelegramDesktop
|
||||
Type=Application
|
||||
Categories=Chat;Network;InstantMessaging;Qt;
|
||||
MimeType=x-scheme-handler/tg;
|
||||
Keywords=tg;chat;im;messaging;messenger;sms;tdesktop;
|
||||
Actions=quit;
|
||||
DBusActivatable=true
|
||||
SingleMainWindow=true
|
||||
X-GNOME-UsesNotifications=true
|
||||
X-GNOME-SingleWindow=true
|
||||
16
modules/users/chn/plasma/autostart/yakuake.desktop
Normal file
16
modules/users/chn/plasma/autostart/yakuake.desktop
Normal file
@@ -0,0 +1,16 @@
|
||||
[Desktop Entry]
|
||||
Categories=Qt;KDE;System;TerminalEmulator;
|
||||
Comment[zh_CN]=一个基于KDE Konsole 技术的下拉式终端仿真器。
|
||||
Comment=A drop-down terminal emulator based on KDE Konsole technology.
|
||||
DBusActivatable=true
|
||||
Exec=yakuake
|
||||
GenericName[zh_CN]=下拉式终端
|
||||
GenericName=Drop-down Terminal
|
||||
Icon=yakuake
|
||||
Name[zh_CN]=Yakuake
|
||||
Name=Yakuake
|
||||
Terminal=false
|
||||
Type=Application
|
||||
X-DBUS-ServiceName=org.kde.yakuake
|
||||
X-DBUS-StartupType=Unique
|
||||
X-KDE-StartupNotify=false
|
||||
@@ -1,6 +1,6 @@
|
||||
inputs:
|
||||
{
|
||||
imports = inputs.localLib.mkModules [ ./wallpaper ./konsole.nix ./shortcuts.nix ./theme.nix ];
|
||||
imports = inputs.localLib.mkModules [ ./autostart ./wallpaper ./konsole.nix ./shortcuts.nix ./theme.nix ];
|
||||
config = inputs.lib.mkIf inputs.config.nixos.system.gui.enable
|
||||
{
|
||||
home-manager.users.chn.config.programs.plasma = inputs.lib.mkMerge
|
||||
|
||||
Reference in New Issue
Block a user