blob: 8021273d16186901f909858c710217f2a2f293ed (
plain) (
tree)
|
|
{ pkgs, ... }:
let
nurSrc = builtins.fetchTarball {
url =
"https://github.com/nix-community/NUR/archive/687ed97c4379e9ad1346fc673e3e0fc88210de14.tar.gz";
sha256 = "sha256:0pxljc5bzcwb8c43qmm5l49p03snq7piqnshglqday2dw6cfcd6l";
};
in {
imports = [ ./common.nix ];
programs.bash.profileExtra = ''
ln -sf /Z/lx/.ssh ~/.ssh
mkdir -p ~/.gnupg
ln -sf /Z/lx/.gnupg/pubring.kbx ~/.gnupg/
ln -sf /Z/lx/.gnupg/trustdb.gpg ~/.gnupg/
ln -sf /Z/lx/.gnupg/private-keys-v1.d ~/.gnupg/
ln -sf /Z/lx/Downloads ~/Downloads
ln -sf /Z/lx/.cargo ~/.cargo
ln -sf /Z/lx/app/arduino/Arduino ~/Arduino
ln -sf /Z/lx/app/arduino/.arduino15 ~/.arduino15
'';
nixpkgs.config.packageOverrides = pkgs: {
nur = import nurSrc { inherit pkgs; };
};
home.file.".config/qutebrowser/quickmarks".source = ../qutebrowser/quickmarks;
programs.firefox.enable = true;
programs.firefox.profiles.default = {
isDefault = true;
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
ublock-origin
privacy-badger
startpage-private-search
];
settings = {
"extensions.autoDisableScopes" = 0;
"extensions.enabledScopes" = 15;
};
};
xdg.desktopEntries.llpp = {
name = "llpp";
genericName = "PDF viewer";
exec = "llpp %f";
terminal = false;
categories = [ "Graphics" "Viewer" ];
mimeType = [ "application/pdf" "application/x-pdf" ];
type = "Application";
};
xdg.mimeApps.enable = true;
xdg.mimeApps.defaultApplications = {
"application/pdf" = [ "llpp.desktop" ];
};
home.homeDirectory = "/home/lx";
xdg.userDirs.download = "/home/lx/Downloads";
programs.bash.shellAliases.z = "cd /Z/lx";
services.gpg-agent.enable = true;
services.gpg-agent.enableSshSupport = false;
services.gpg-agent.pinentryFlavor = "qt";
services.gpg-agent.extraConfig = "no-allow-external-cache";
services.syncthing.extraOptions = [ "--home=/Z/lx/app/syncthing" ];
}
|