mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-26 01:48:27 +02:00
feat: replace noctalia-shell with dma-shell
Signed-off-by: Ryan Yin <xiaoyin_c@qq.com>
This commit is contained in:
@@ -12,46 +12,46 @@ let
|
||||
in
|
||||
{
|
||||
|
||||
home.packages = [
|
||||
package
|
||||
pkgs.qt6Packages.qt6ct # for icon theme
|
||||
pkgs.app2unit # Launch Desktop Entries (or arbitrary commands) as Systemd user units
|
||||
]
|
||||
++ (lib.optionals pkgs.stdenv.isx86_64 [
|
||||
pkgs.gpu-screen-recorder # recoding screen
|
||||
]);
|
||||
|
||||
home.file."Pictures/Wallpapers".source = wallpapers;
|
||||
|
||||
xdg.configFile =
|
||||
let
|
||||
mkSymlink = config.lib.file.mkOutOfStoreSymlink;
|
||||
confPath = "${config.home.homeDirectory}/nix-config/home/linux/gui/base/noctalia";
|
||||
in
|
||||
{
|
||||
"noctalia/settings.json".source = mkSymlink "${confPath}/settings.json";
|
||||
"qt6ct/qt6ct.conf".source = mkSymlink "${confPath}/qt6ct.conf";
|
||||
};
|
||||
|
||||
systemd.user.services.noctalia-shell = {
|
||||
Unit = {
|
||||
Description = "Noctalia Shell - Wayland desktop shell";
|
||||
Documentation = "https://docs.noctalia.dev/docs";
|
||||
PartOf = [ config.wayland.systemd.target ];
|
||||
After = [ config.wayland.systemd.target ];
|
||||
};
|
||||
|
||||
Service = {
|
||||
ExecStart = lib.getExe package;
|
||||
Restart = "on-failure";
|
||||
|
||||
Environment = [
|
||||
"QT_QPA_PLATFORM=wayland;xcb"
|
||||
"QT_QPA_PLATFORMTHEME=qt6ct"
|
||||
"QT_AUTO_SCREEN_SCALE_FACTOR=1"
|
||||
];
|
||||
};
|
||||
|
||||
Install.WantedBy = [ config.wayland.systemd.target ];
|
||||
};
|
||||
# home.packages = [
|
||||
# package
|
||||
# pkgs.qt6Packages.qt6ct # for icon theme
|
||||
# pkgs.app2unit # Launch Desktop Entries (or arbitrary commands) as Systemd user units
|
||||
# ]
|
||||
# ++ (lib.optionals pkgs.stdenv.isx86_64 [
|
||||
# pkgs.gpu-screen-recorder # recoding screen
|
||||
# ]);
|
||||
#
|
||||
# home.file."Pictures/Wallpapers".source = wallpapers;
|
||||
#
|
||||
# xdg.configFile =
|
||||
# let
|
||||
# mkSymlink = config.lib.file.mkOutOfStoreSymlink;
|
||||
# confPath = "${config.home.homeDirectory}/nix-config/home/linux/gui/base/noctalia";
|
||||
# in
|
||||
# {
|
||||
# "noctalia/settings.json".source = mkSymlink "${confPath}/settings.json";
|
||||
# "qt6ct/qt6ct.conf".source = mkSymlink "${confPath}/qt6ct.conf";
|
||||
# };
|
||||
#
|
||||
# systemd.user.services.noctalia-shell = {
|
||||
# Unit = {
|
||||
# Description = "Noctalia Shell - Wayland desktop shell";
|
||||
# Documentation = "https://docs.noctalia.dev/docs";
|
||||
# PartOf = [ config.wayland.systemd.target ];
|
||||
# After = [ config.wayland.systemd.target ];
|
||||
# };
|
||||
#
|
||||
# Service = {
|
||||
# ExecStart = lib.getExe package;
|
||||
# Restart = "on-failure";
|
||||
#
|
||||
# Environment = [
|
||||
# "QT_QPA_PLATFORM=wayland;xcb"
|
||||
# "QT_QPA_PLATFORMTHEME=qt6ct"
|
||||
# "QT_AUTO_SCREEN_SCALE_FACTOR=1"
|
||||
# ];
|
||||
# };
|
||||
#
|
||||
# Install.WantedBy = [ config.wayland.systemd.target ];
|
||||
# };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user