diff options
author | Alex Auvolat <alex@adnab.me> | 2023-07-20 12:08:08 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2023-07-20 12:08:08 +0200 |
commit | 958063f086e1bfd7d75208dae9339acec33b1942 (patch) | |
tree | f7d5fc56f452260973afd3e99a7259d042e14120 /nixpkgs/kusanagi.nix | |
parent | 07a0c5465e608f3378f8405a56d2fd062a190e4e (diff) | |
download | user-config-958063f086e1bfd7d75208dae9339acec33b1942.tar.gz user-config-958063f086e1bfd7d75208dae9339acec33b1942.zip |
kusanagi with non-persistent home
Diffstat (limited to 'nixpkgs/kusanagi.nix')
-rw-r--r-- | nixpkgs/kusanagi.nix | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/nixpkgs/kusanagi.nix b/nixpkgs/kusanagi.nix index 2eb8900..bb61451 100644 --- a/nixpkgs/kusanagi.nix +++ b/nixpkgs/kusanagi.nix @@ -1,9 +1,58 @@ { pkgs, ... }: { 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 + ''; + + nixpkgs.config.packageOverrides = pkgs: { + nur = import (builtins.fetchTarball + "https://github.com/nix-community/NUR/archive/master.tar.gz") { + 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"; |