From 93bc67dac3c6134e1ec32b33efafe654bc27efac Mon Sep 17 00:00:00 2001 From: Chris Date: Sun, 1 Mar 2026 11:15:56 +0000 Subject: [PATCH] Persist enpass files --- flake.nix | 148 +++++++++++++++++++++++++++--------------------------- 1 file changed, 75 insertions(+), 73 deletions(-) diff --git a/flake.nix b/flake.nix index 9c54607..e787d5e 100644 --- a/flake.nix +++ b/flake.nix @@ -39,8 +39,8 @@ disko.devices = { disk = { stationette = { - type = "disk"; - device = "/dev/sda"; # Check this with lsblk + type = "disk"; + device = "/dev/sda"; # Check this with lsblk content = { type = "gpt"; partitions = { @@ -59,24 +59,24 @@ content = { type = "btrfs"; extraArgs = [ "-f" ]; # Force overwrite - subvolumes = { - "/root" = { - mountpoint = "/"; - mountOptions = [ "compress=zstd" "noatime" ]; + subvolumes = { + "/root" = { + mountpoint = "/"; + mountOptions = [ "compress=zstd" "noatime" ]; + }; + "/nix" = { + mountpoint = "/nix"; + mountOptions = [ "compress=zstd" "noatime" ]; + }; + "/persist" = { + mountpoint = "/persist"; + mountOptions = [ "compress=zstd" "noatime" ]; + }; + "/swap" = { + mountpoint = "/.swapvol"; + swap.swapfile.size = "8G"; + }; }; - "/nix" = { - mountpoint = "/nix"; - mountOptions = [ "compress=zstd" "noatime" ]; - }; - "/persist" = { - mountpoint = "/persist"; - mountOptions = [ "compress=zstd" "noatime" ]; - }; - "/swap" = { - mountpoint = "/.swapvol"; - swap.swapfile.size = "8G"; - }; - }; }; }; }; @@ -202,9 +202,11 @@ ".config/dotfiles" ".config/nvim" ".config/nixos" + ".config/sinew.in/Enpass" ".local/share/direnv" ".local/share/nvim" ".local/share/zoxide" + ".local/share/Enpass" ".ssh" ]; }; @@ -290,7 +292,7 @@ # kdePackages.dolphin enpass enpass-cli - # expressvpn + expressvpn # jellyfin-ffmpeg # inkscape # krita @@ -325,61 +327,61 @@ in { firefox = { enable = true; - # package = pkgs.wrapFirefox pkgs.firefox-unwrapped { - # extraPolicies = { - # DisableTelemetry = true; - # DisableFirefoxStudies = true; - # EnableTrackingProtection = { - # Value= true; - # Locked = true; - # Cryptomining = true; - # Fingerprinting = true; - # }; - # DisablePocket = true; - # DisableFirefoxAccounts = true; - # DisableAccounts = true; - # DisableFirefoxScreenshots = true; - # OverrideFirstRunPage = ""; - # OverridePostUpdatePage = ""; - # DontCheckDefaultBrowser = true; - # DisplayBookmarksToolbar = "always"; # alternatives: "always" or "newtab" - # DisplayMenuBar = "default-off"; # alternatives: "always", "never" or "default-on" - # SearchBar = "unified"; # alternative: "separate" + package = pkgs.wrapFirefox pkgs.firefox-unwrapped { + extraPolicies = { + DisableTelemetry = true; + DisableFirefoxStudies = true; + EnableTrackingProtection = { + Value= true; + Locked = true; + Cryptomining = true; + Fingerprinting = true; + }; + DisablePocket = true; + DisableFirefoxAccounts = true; + DisableAccounts = true; + DisableFirefoxScreenshots = true; + OverrideFirstRunPage = ""; + OverridePostUpdatePage = ""; + DontCheckDefaultBrowser = true; + DisplayBookmarksToolbar = "always"; # alternatives: "always" or "newtab" + DisplayMenuBar = "default-off"; # alternatives: "always", "never" or "default-on" + SearchBar = "unified"; # alternative: "separate" - # /* ---- EXTENSIONS ---- */ - # ExtensionSettings = { - # "*".installation_mode = "allowed"; # blocks all addons except the ones specified below - # # Enpass - # "firefox-enpass@enpass.io" = { - # install_url = "https://dl.enpass.io/stable/extensions/firefox/versions/v6.11.10.2/enpass_password_manager-6.11.10.2.xpi"; - # installation_mode = "force_installed"; - # }; - # }; + /* ---- EXTENSIONS ---- */ + ExtensionSettings = { + "*".installation_mode = "allowed"; # blocks all addons except the ones specified below + # Enpass + "firefox-enpass@enpass.io" = { + install_url = "https://dl.enpass.io/stable/extensions/firefox/versions/v6.11.10.2/enpass_password_manager-6.11.10.2.xpi"; + installation_mode = "force_installed"; + }; + }; - # /* ---- PREFERENCES ---- */ - # # Set preferences shared by all profiles. - # Preferences = { - # "browser.contentblocking.category" = { Value = "strict"; Status = "locked"; }; - # "extensions.pocket.enabled" = lock-false; - # "extensions.screenshots.disabled" = lock-true; - # "browser.topsites.contile.enabled" = lock-false; - # "browser.formfill.enable" = lock-false; - # "browser.search.suggest.enabled" = lock-false; - # "browser.search.suggest.enabled.private" = lock-false; - # "browser.urlbar.suggest.searches" = lock-false; - # "browser.urlbar.showSearchSuggestionsFirst" = lock-false; - # "browser.newtabpage.activity-stream.feeds.section.topstories" = lock-false; - # "browser.newtabpage.activity-stream.feeds.snippets" = lock-false; - # "browser.newtabpage.activity-stream.section.highlights.includePocket" = lock-false; - # "browser.newtabpage.activity-stream.section.highlights.includeBookmarks" = lock-false; - # "browser.newtabpage.activity-stream.section.highlights.includeDownloads" = lock-false; - # "browser.newtabpage.activity-stream.section.highlights.includeVisited" = lock-false; - # "browser.newtabpage.activity-stream.showSponsored" = lock-false; - # "browser.newtabpage.activity-stream.system.showSponsored" = lock-false; - # "browser.newtabpage.activity-stream.showSponsoredTopSites" = lock-false; - # }; - # }; - # }; + /* ---- PREFERENCES ---- */ + # Set preferences shared by all profiles. + Preferences = { + "browser.contentblocking.category" = { Value = "strict"; Status = "locked"; }; + "extensions.pocket.enabled" = lock-false; + "extensions.screenshots.disabled" = lock-true; + "browser.topsites.contile.enabled" = lock-false; + "browser.formfill.enable" = lock-false; + "browser.search.suggest.enabled" = lock-false; + "browser.search.suggest.enabled.private" = lock-false; + "browser.urlbar.suggest.searches" = lock-false; + "browser.urlbar.showSearchSuggestionsFirst" = lock-false; + "browser.newtabpage.activity-stream.feeds.section.topstories" = lock-false; + "browser.newtabpage.activity-stream.feeds.snippets" = lock-false; + "browser.newtabpage.activity-stream.section.highlights.includePocket" = lock-false; + "browser.newtabpage.activity-stream.section.highlights.includeBookmarks" = lock-false; + "browser.newtabpage.activity-stream.section.highlights.includeDownloads" = lock-false; + "browser.newtabpage.activity-stream.section.highlights.includeVisited" = lock-false; + "browser.newtabpage.activity-stream.showSponsored" = lock-false; + "browser.newtabpage.activity-stream.system.showSponsored" = lock-false; + "browser.newtabpage.activity-stream.showSponsoredTopSites" = lock-false; + }; + }; + }; }; }; nixpkgs = {