refactor
This commit is contained in:
parent
e47eaa32a3
commit
b7de76fe52
|
@ -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
11
nixos/msi/modules/js.nix
Normal 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
12
nixos/msi/modules/xdg.nix
Normal 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];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue