From 958063f086e1bfd7d75208dae9339acec33b1942 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Thu, 20 Jul 2023 12:08:08 +0200 Subject: kusanagi with non-persistent home --- nixpkgs/common.nix | 4 ++-- nixpkgs/kusanagi.nix | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+), 2 deletions(-) (limited to 'nixpkgs') diff --git a/nixpkgs/common.nix b/nixpkgs/common.nix index d652db4..7450d40 100644 --- a/nixpkgs/common.nix +++ b/nixpkgs/common.nix @@ -43,6 +43,7 @@ home.file = { ".vim/coc-settings.json".source = ../vim/coc-settings.json; ".config/tmux/tmux.conf".source = ../tmux/tmux.conf; + ".config/qutebrowser/config.py".source = ../qutebrowser/config.py; ".config/sx/sxrc".executable = true; ".config/sx/sxrc".text = '' ${pkgs.xorg.xsetroot}/bin/xsetroot -solid "#008080" @@ -57,9 +58,8 @@ ".config/icewm/toolbar".text = '' prog "Terminal" xterm st prog "Qutebrowser" ${pkgs.qutebrowser}/share/icons/hicolor/32x32/apps/qutebrowser.png qutebrowser - prog "Firefox" ${pkgs.firefox-esr}/share/icons/hicolor/32x32/apps/firefox.png ${pkgs.firefox-esr}/bin/firefox + prog "Firefox" ${pkgs.firefox}/share/icons/hicolor/32x32/apps/firefox.png ${pkgs.firefox}/bin/firefox prog "Midori" ${pkgs.midori}/share/icons/hicolor/22x22/apps/org.midori_browser.Midori.png midori - prog "Sylpheed" ${pkgs.sylpheed}/share/pixmaps/sylpheed.png sylpheed prog "Thunderbird" ${pkgs.thunderbird}/share/icons/hicolor/32x32/apps/thunderbird.png thunderbird prog "Spotify" ${pkgs.spotify}/share/icons/hicolor/32x32/apps/spotify-client.png spotify ''; 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"; -- cgit v1.2.3