From f64043f67de264cc01694a25539810190f99d816 Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Fri, 23 Feb 2024 13:53:27 +0100 Subject: [PATCH] add xdg.nix --- hosts/yodaTab/configuration.nix | 1 + hosts/yodaTux/configuration.nix | 1 + modules/xdg.nix | 17 +++++++++++++++++ 3 files changed, 19 insertions(+) create mode 100644 modules/xdg.nix 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; +# }; +# }; +}