autostart

This commit is contained in:
Daniel Langbein 2023-09-07 20:20:29 +02:00
parent de8a6b665f
commit 485e4b2937
3 changed files with 16 additions and 0 deletions

View File

@ -14,6 +14,7 @@
./home-manager.nix ./home-manager.nix
../../modules/base.nix ../../modules/base.nix
../../modules/programs.nix ../../modules/programs.nix
../../modules/autostart.nix
../../modules/fwupd.nix ../../modules/fwupd.nix
../../modules/print-and-scan.nix ../../modules/print-and-scan.nix
../../modules/fde-ssh-unlock.nix ../../modules/fde-ssh-unlock.nix

View File

@ -14,6 +14,7 @@
./home-manager.nix ./home-manager.nix
../../modules/base.nix ../../modules/base.nix
../../modules/programs.nix ../../modules/programs.nix
../../modules/autostart.nix
../../modules/fwupd.nix ../../modules/fwupd.nix
../../modules/print-and-scan.nix ../../modules/print-and-scan.nix
../../modules/fde-ssh-unlock.nix ../../modules/fde-ssh-unlock.nix

14
modules/autostart.nix Normal file
View File

@ -0,0 +1,14 @@
{ config, pkgs, lib, ... }:
{
# See also:
# Temporary workaround until https://github.com/nix-community/home-manager/issues/3447 is merged.
# The keepassxc desktop file is named differently than pkg.name. Thus we add it manually.
home-manager.users.yoda = { osConfig, config, pkgs, ... }: {
home.file.keepassxc = {
target = ".config/autostart/" + "org.keepassxc.KeePassXC" + ".desktop";
source = (pkgs.keepassxc + "/share/applications/" + "org.keepassxc.KeePassXC" + ".desktop");
};
};
}