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