add xdg.nix

This commit is contained in:
Daniel Langbein 2024-02-23 13:53:27 +01:00
parent af34ffbc39
commit f64043f67d
Signed by: langfingaz
GPG Key ID: 6C47C753F0823002
3 changed files with 19 additions and 0 deletions

View File

@ -7,6 +7,7 @@
../../modules/nur-and-unstable.nix ../../modules/nur-and-unstable.nix
../../modules/base.nix ../../modules/base.nix
../../modules/base-efi.nix ../../modules/base-efi.nix
../../modules/xdg.nix
../../modules/power-management.nix ../../modules/power-management.nix
../../modules/ntfs.nix ../../modules/ntfs.nix
../../modules/git.nix ../../modules/git.nix

View File

@ -7,6 +7,7 @@
../../modules/nur-and-unstable.nix ../../modules/nur-and-unstable.nix
../../modules/base.nix ../../modules/base.nix
../../modules/base-efi.nix ../../modules/base-efi.nix
../../modules/xdg.nix
../../modules/power-management.nix ../../modules/power-management.nix
../../modules/tuxedo-rs.nix ../../modules/tuxedo-rs.nix
../../modules/ntfs.nix ../../modules/ntfs.nix

17
modules/xdg.nix Normal file
View File

@ -0,0 +1,17 @@
{ config, pkgs, ... }:
{
# This updates the desktop database. https://github.com/NixOS/nixpkgs/blob/3cb4ae6689d2aa3f363516234572613b31212b78/nixos/modules/config/xdg/mime.nix#L91-L100
xdg.mime.enable = true;
# To create `mimeapps.list`, see options `xdg.mime.*`. https://github.com/NixOS/nixpkgs/pull/120087
# # Inside the following Home Manager configuration block,
# # `config` refers to Home Manager configuration.
# home-manager.users.yoda = { osConfig, config, pkgs, ... }: {
# xdg = {
# enable = true;
# # This updates the desktop database. https://github.com/nix-community/home-manager/blob/0e0e9669547e45ea6cca2de4044c1a384fd0fe55/modules/misc/xdg-mime.nix#L45-L58
# mime.enable = true;
# };
# };
}