This commit is contained in:
Maciej Jur 2024-07-27 16:13:48 +02:00
parent e47eaa32a3
commit b7de76fe52
Signed by: kamov
GPG key ID: 191CBFF5F72ECAFD
3 changed files with 25 additions and 7 deletions

View file

@ -2,10 +2,12 @@
{
imports = [
./modules/xdg.nix
./modules/gaming.nix
./modules/ghci
./modules/lean.nix
./modules/ocaml.nix
./modules/js.nix
];
home = {
@ -29,13 +31,6 @@
];
};
xdg.mimeApps.defaultApplications = {
"text/html" = ["firefox-devedition.desktop"];
"text/xml" = ["firefox-devedition.desktop"];
"x-scheme-handler/http" = ["firefox-devedition.desktop"];
"x-scheme-handler/https" = ["firefox-devedition.desktop"];
};
programs = {
# default shell
fish = {

11
nixos/msi/modules/js.nix Normal file
View file

@ -0,0 +1,11 @@
{ pkgs, config, ... }:
{
home.sessionVariables = {
npm_config_prefix = "${config.xdg.cacheHome}/npm";
};
home.packages = with pkgs; [
nodejs
];
}

12
nixos/msi/modules/xdg.nix Normal file
View file

@ -0,0 +1,12 @@
{ ... }:
let
firefox = "firefox-devedition.desktop";
in
{
xdg.mimeApps.defaultApplications = {
"text/html" = [firefox];
"text/xml" = [firefox];
"x-scheme-handler/http" = [firefox];
"x-scheme-handler/https" = [firefox];
};
}