From ce7331fb359c0c6c6566231a635bfe36e9da9fa4 Mon Sep 17 00:00:00 2001 From: alex Date: Wed, 28 May 2025 14:30:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=201.=20apc=20ups=20=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=202.=20flatpak=20desktop=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/home/xdg/default.nix | 13 ++++++------- profiles/apollo/nixos/default.nix | 3 +++ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/modules/home/xdg/default.nix b/modules/home/xdg/default.nix index 76b93e9..3c1a865 100644 --- a/modules/home/xdg/default.nix +++ b/modules/home/xdg/default.nix @@ -12,13 +12,12 @@ enable = true; cacheHome = config.home.homeDirectory + "/.cache"; - # manage $XDG_CONFIG_HOME/mimeapps.list - # xdg search all desktop entries from $XDG_DATA_DIRS, check it by command: - # echo $XDG_DATA_DIRS - # the system-level desktop entries can be list by command: - # ls -l /run/current-system/sw/share/applications/ - # the user-level desktop entries can be list by command(user ryan): - # ls /etc/profiles/per-user/ryan/share/applications/ + systemDirs = { + data = [ + "${config.home.homeDirectory}/.local/share/flatpak/exports/share" + "/var/lib/flatpak/exports/share" + ]; + }; userDirs = { enable = true; diff --git a/profiles/apollo/nixos/default.nix b/profiles/apollo/nixos/default.nix index b4674a1..0e0b91b 100644 --- a/profiles/apollo/nixos/default.nix +++ b/profiles/apollo/nixos/default.nix @@ -25,6 +25,9 @@ gnome.gnome-keyring.enable = true; nix-fhs.gui.enable = true; flatpak.enable = true; + apcupsd = { + enable = true; + }; }; security.pam.services.swaylock = { };