❄️ Dotfiles for our NixOS system configuration.
at master 661 B view raw
1{ 2 lib, 3 osConfig, 4 pkgs, 5 ... 6}: 7 8{ 9 config = lib.mkIf osConfig.settings.profiles.graphical.enable { 10 xdg.configFile = { 11 # .desktop files for autostart only work on Linux with XDG 12 "autostart/1password.desktop" = lib.mkIf pkgs.stdenv.hostPlatform.isLinux { 13 text = '' 14 [Desktop Entry] 15 Name=1Password 16 Exec=1password --silent %U 17 Terminal=false 18 Type=Application 19 Icon=1password 20 StartupWMClass=1Password 21 Comment=Password manager and secure wallet 22 MimeType=x-scheme-handler/onepassword; 23 Categories=Office; 24 ''; 25 }; 26 }; 27 }; 28}