Skip to content
  • Categories
  • Recent
  • Tags
  • All Topics
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Caint logo. It's just text.
  1. Home
  2. Uncategorized
  3. Is there any way on Nixos to encrypt certain directories behind a password?
Welcome to Caint!

Issues? Post in Comments & Feedback
You can now view, reply, and favourite posts from the Fediverse. You can click here or click on the on the navigation bar on the left.

Is there any way on Nixos to encrypt certain directories behind a password?

Scheduled Pinned Locked Moved Uncategorized
askfedilinuxnixos
5 Posts 4 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Adronia :adronia:A This user is from outside of this forum
    Adronia :adronia:A This user is from outside of this forum
    Adronia :adronia:
    wrote last edited by
    #1

    Is there any way on Nixos to encrypt certain directories behind a password? I need to encrypt some directories from people at college just in case they would tamper with my laptop in the future
    #askfedi #linux #nixos

    VladimirV Ramin HonaryR 2 Replies Last reply
    0
    • Adronia :adronia:A Adronia :adronia:

      Is there any way on Nixos to encrypt certain directories behind a password? I need to encrypt some directories from people at college just in case they would tamper with my laptop in the future
      #askfedi #linux #nixos

      VladimirV This user is from outside of this forum
      VladimirV This user is from outside of this forum
      Vladimir
      wrote last edited by
      #2

      @adronia it's not really nixos related but https://github.com/rfjakob/gocryptfs is good

      mkjM 1 Reply Last reply
      0
      • Adronia :adronia:A Adronia :adronia:

        Is there any way on Nixos to encrypt certain directories behind a password? I need to encrypt some directories from people at college just in case they would tamper with my laptop in the future
        #askfedi #linux #nixos

        Ramin HonaryR This user is from outside of this forum
        Ramin HonaryR This user is from outside of this forum
        Ramin Honary
        wrote last edited by
        #3

        @adronia@tiggi.es it is better to do full-disk encryption and make sure your laptop auto-locks after a few minutes of inactivity. If you don’t already have full-disk encryption setup, you will have to reinstall the operating system.

        If you only want to keep the directory encrypted and not change it often, I recommend you archive the directory and then encrypt the archive using GPG.

        If you want an encrypted directory that you can update regularly, I would instead create a virtual disk with full disk encryptpion.

        mkjM 1 Reply Last reply
        0
        • Ramin HonaryR Ramin Honary

          @adronia@tiggi.es it is better to do full-disk encryption and make sure your laptop auto-locks after a few minutes of inactivity. If you don’t already have full-disk encryption setup, you will have to reinstall the operating system.

          If you only want to keep the directory encrypted and not change it often, I recommend you archive the directory and then encrypt the archive using GPG.

          If you want an encrypted directory that you can update regularly, I would instead create a virtual disk with full disk encryptpion.

          mkjM This user is from outside of this forum
          mkjM This user is from outside of this forum
          mkj
          wrote last edited by
          #4

          It is at least technically possible to add LUKS full-disk encryption after the fact, but it's somewhat complex. (Basically, the process would be to shrink the file system, set up an unencrypted LUKS container for the key management, set up the system to use the LUKS container as the backing storage for the file system, and then re-encrypt the LUKS container to actually make use of encryption. Lots of things that can go wrong.)

          I do agree though FDE seems a better fit.

          @ramin_hal9001 @adronia

          1 Reply Last reply
          1
          0
          • R ActivityRelay shared this topic
          • VladimirV Vladimir

            @adronia it's not really nixos related but https://github.com/rfjakob/gocryptfs is good

            mkjM This user is from outside of this forum
            mkjM This user is from outside of this forum
            mkj
            wrote last edited by
            #5

            @vavakado @adronia ecryptfs is another option. It can be added largely in-place.

            #Linux

            1 Reply Last reply
            1
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • All Topics
            • Popular
            • World
            • Users
            • Groups