+/config

my dotfiles and nix configuration

git clone https://git.julia.blue/+/config

Julia RyanUpdate and fix lints387acb1

main
1.2 KiB48 linesraw
1{ pkgs, lib, config, ... }: {
2  home.packages = with pkgs; [
3    util-linux
4    moreutils
5    lsof
6    usbtop
7    powertop
8    lm_sensors
9    sysz
10    element
11    netscanner
12  ] ++ lib.optionals pkgs.stdenv.hostPlatform.isx86_64 [
13    lurk
14  ];
15
16  # programs.direnv.stdlib = "use angr";
17
18  targets.genericLinux.enable = true;
19  xdg = { enable = true;
20    userDirs = let home = config.home.homeDirectory; in {
21      enable = true;
22      setSessionVariables = true;
23      desktop = home;
24      templates = home + "/.templates";
25      publicShare = null;
26      documents = home + "/documents";
27      download = home + "/downloads";
28      music = home + "/music";
29      pictures = home + "/images";
30      videos = home + "/videos";
31    };
32
33    mime.enable = true;
34    mimeApps = { enable = true;
35      defaultApplications = let ff = "firefox.desktop"; in {
36        "application/pdf" = "zathura.desktop";
37        "text/html" = ff;
38        "x-scheme-handler/http" = ff;
39        "x-scheme-handler/https" = ff;
40        "x-scheme-handler/tg" = "org.telegram.desktop";
41      };
42    };
43    # don't warn when an app modified the file
44    configFile."mimeapps.list".force = true;
45  };
46
47  i18n.glibcLocales = pkgs.glibcLocalesUtf8;
48}