diff --git a/hosts/yodaTab/configuration.nix b/hosts/yodaTab/configuration.nix index 1946d08..2679c55 100644 --- a/hosts/yodaTab/configuration.nix +++ b/hosts/yodaTab/configuration.nix @@ -7,6 +7,7 @@ ../../modules/nur-and-unstable.nix ../../modules/base.nix ../../modules/base-efi.nix + ../../modules/xdg.nix ../../modules/power-management.nix ../../modules/ntfs.nix ../../modules/git.nix diff --git a/hosts/yodaTux/configuration.nix b/hosts/yodaTux/configuration.nix index e3f880f..a2d3b5c 100644 --- a/hosts/yodaTux/configuration.nix +++ b/hosts/yodaTux/configuration.nix @@ -7,6 +7,7 @@ ../../modules/nur-and-unstable.nix ../../modules/base.nix ../../modules/base-efi.nix + ../../modules/xdg.nix ../../modules/power-management.nix ../../modules/tuxedo-rs.nix ../../modules/ntfs.nix diff --git a/modules/xdg.nix b/modules/xdg.nix new file mode 100644 index 0000000..d98f6bc --- /dev/null +++ b/modules/xdg.nix @@ -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; +# }; +# }; +}