NixOS Secrets Management | SOPS-NIX

  Рет қаралды 19,076

Vimjoyer

Vimjoyer

Күн бұрын

Discord server: discord.gg/AqHbaeK43b
Donations: ko-fi.com/vimj...
All code blocks: github.com/vim...

Пікірлер: 54
@Gaivs
@Gaivs 10 ай бұрын
Great video as always! To me, the difficulty with nix has always been that there are too many ways of doing the same thing, so when I try to do something, I can look at the documentation, the source code, other peoples configs, etc. everyone do the same things in different ways. This means that having your bite-size videos are extremely useful, as you make them very modular, so even though my config is already a sprawling mess of nix files, imports etc., I can always just add your stuff without any problems!
@abbcc555
@abbcc555 2 ай бұрын
This video is incomplete as are many others. This excess complexity is unfortunately why NixOS is and always will be an esoteric obscurity. The configuration is so appalling that the user-base is limited to people with way too much free time. This means that there will be very few users and thus documentation never gets past the rudimentary.
@HyuLilium
@HyuLilium 6 ай бұрын
I need a bit more explanations than this like a more traditional tutorial, but this is the only video about secrets management on nix 😅
@MiaLovesRod
@MiaLovesRod 10 ай бұрын
YOUR VIDEOS ARE GOLD
@redlionstudio2750
@redlionstudio2750 2 ай бұрын
what if I want to just use my password to decrypt secrets?
@ViperLarry-v7p
@ViperLarry-v7p 10 ай бұрын
Just today I was beginning to setup sops-nix, this timing couldnt be any better! Thank you!!
@abbcc555
@abbcc555 2 ай бұрын
@2:02 sops: command not found. again a broken tutorial
@yukendhiran8043
@yukendhiran8043 Ай бұрын
Learn the concept then read the manual
@yukendhiran8043
@yukendhiran8043 Ай бұрын
Or use Ubuntu 😂
@abbcc555
@abbcc555 Ай бұрын
@@yukendhiran8043 Neither of your suggestions provides the sops command.
@kexec.
@kexec. Ай бұрын
install sops 😂 sops-nix “helps” to use sops with nixos not replacing them
@abbcc555
@abbcc555 Ай бұрын
@@kexec. I haven't found a working guide yet on how to install it.
@MasterChaoko
@MasterChaoko 10 ай бұрын
Just FYI: age is pronounced "ah-gay", because the name comes from Latin. "Age" in Latin is a command spoken to another person to "act"/"go". Here's a good example: kzbin.info/www/bejne/fYqqiYyPhNVnl9U
@vimjoyer
@vimjoyer 10 ай бұрын
Didn't know, thanks!
@ChuckBoecking
@ChuckBoecking 6 ай бұрын
Thank you - great video!! I have a question regarding t=96s where you add sops.age.keyFile to configuration.nix... If I am creating a configuration.nix to be shared and ultimately deployed on a different server/machine, the reference to the keyfile will be public (which should be fine). However, I do not believe it is discussed how the target server/machine is to get the keyfile (private age key} so that it can decript the details. Do you mind sharing or pointing me in the right direction of how you would do this?
@vimjoyer
@vimjoyer 6 ай бұрын
I guess the easiest way is to just put it there with ssh
@dragonblade3166
@dragonblade3166 10 ай бұрын
I was just looking at this yesterday. Thx for the vid.
@elpitbullhouse
@elpitbullhouse 10 ай бұрын
This is gold! Thank you! 🙌
@kwinzman
@kwinzman 10 ай бұрын
Your channel covers amazing topics and has good production quality. But still from all the videos I have seen over the years yours are some of the most difficult to follow, learn from, or reproduce. I am not sure if it's your presentation style or if I just don't know enough about the Nix language yet.
@vimjoyer
@vimjoyer 10 ай бұрын
Thank you for your honest criticism. I already know how to work with Nix, and it's hard for me to highlight those hard to follow moments, so if you have difficulties with any part I'd love to hear about it to pay more attention in future vids Edit: spelling
@jorge28624
@jorge28624 2 ай бұрын
This video is still my go-to way to have a refresher on sops-nix! way clearer than the documentation on that project lol
@ThatNateGuy
@ThatNateGuy 10 ай бұрын
If you are using a new microphone, it sounds great!
@vimjoyer
@vimjoyer 10 ай бұрын
It's the same one, but I was recording after work, so my voice might sound a bit tired. That could actually be the reason
@mattlau04
@mattlau04 9 ай бұрын
The production quality sure is improving really fast!
@SJ-ds8lp
@SJ-ds8lp 16 күн бұрын
Why not agenix?
@vimjoyer
@vimjoyer 15 күн бұрын
Agenix is great too
@unknown-otter
@unknown-otter 6 ай бұрын
The only thing I haven't been able to do with sops is to define hosts file. networking.hosts (not sure about the name, writing from a phone) requires a list and there's no any other way like "hostsFile" or something like we have for ssh-config, for example. Simply setting a path for sops secret to /etc/hosts doesn't work for me. Any ideas on how to implement this?
@vimjoyer
@vimjoyer 6 ай бұрын
Not sure really
@AlleBalle54
@AlleBalle54 10 ай бұрын
great conrent
@Bvngee
@Bvngee 10 ай бұрын
great commrent
@RobFisherUK
@RobFisherUK 3 ай бұрын
Is there a way to have a secret with multiple lines? In my case, I'm trying to make an environment file with multiple environment variables. If I do a YAML multi-line string, Sops seems to replace the newlines with spaces when it decodes the secret.
@bonsairobo
@bonsairobo Ай бұрын
Love it. I just followed these instructions to store my VPN credentials and deploy them into an OpenVPN configuration.
@Medan1993
@Medan1993 3 ай бұрын
At 2:02 you run sops command. Which at that point is not yet available. Should that be just added to systemPackages or just work just with rest of the configuration being done first? Also at 2:44 you are using "inputs" already inside "inputs"? For me this just generates building error: `"sops-nix" is a thunk while a ....` but ommiting it works though.
@abbcc555
@abbcc555 Ай бұрын
unfortunately these are very sloppy videos which miss a lot of the details
@apisashla8650
@apisashla8650 10 күн бұрын
if you hadn't figured out already, most other guides suggest running the sops command using "nix-shell -p" or "nix shell." (edit: specifically the command would be something like "nix-shell -p sops --run "sops secrets.yaml" ".) I agree this should have been specified, but also, running ad-hoc commands without permanently installing is one of the main benefits of running nix and nixos, so I can see how he'd forget that's not obvious.
@sacredgaming3174
@sacredgaming3174 10 ай бұрын
I was just looking into this! Thanks
@unknowingwaffles
@unknowingwaffles 4 ай бұрын
I don't know what I am doing wrong but I can't get past creating the secrets file at the 2 minutes point. when I run sops secrets.yaml and try to save the file I get the error "No master keys were provided, so sops can't encrypt the file. Press a key to return to the editor, or Ctrl+C to exit."
@mars_0008
@mars_0008 10 ай бұрын
How scaleable are secrets? For example, if i have 10 programs which require user and password details, can i use secrets on all of them to save me having to authenticate each one? or do you need to rely on each program creating an api for the secret?
@vimjoyer
@vimjoyer 10 ай бұрын
Nix is a programming language, so your secrets are as scalable as you want them to be. Just create simple functions to decrease amount of boilerplate, and create as many secrets as you wish in just a couple of lines.
@mars_0008
@mars_0008 10 ай бұрын
@@vimjoyer i am still struggling how i tell each app what secret to use. From my understanding, the particular package on nix needs to expose some 'password' field e.g programs.postman = { password = config.sops.secrets; }; This means very few packages will have the ability to declaratively authenticate as they won't have the 'password' field.
@PabloAndresDealbera
@PabloAndresDealbera 10 ай бұрын
Are you going to cover other methods of secret management with Nix?
@vimjoyer
@vimjoyer 10 ай бұрын
Maybe
@VinitKhandagle
@VinitKhandagle 10 ай бұрын
Awesome!!!
@maksymperepelytsia6032
@maksymperepelytsia6032 10 ай бұрын
За червоно-чорну великодку окремий лайк :) Взагалі дуже дякую за контент, Ваш канал був основною причиною перейти на NixOS, і я ні граму не пожалів! Бажаю каналу розвитку і процвітання, нехай все буде тільки добре! Як буду мати фінансову можливість закину пару гривників на якусь каву або щось поміцніше :)
@vimjoyer
@vimjoyer 10 ай бұрын
Дякую :)
@lattakia3812
@lattakia3812 10 ай бұрын
@elys7563
@elys7563 10 ай бұрын
Make one complete setup of hyprland with necessary packages on nixos
Nix File Fetching | fetchurl and Flakes
4:21
Vimjoyer
Рет қаралды 8 М.
Ultimate Nix Flakes Guide
17:08
Vimjoyer
Рет қаралды 22 М.
Electric Flying Bird with Hanging Wire Automatic for Ceiling Parrot
00:15
Ozoda - Lada ( Ko’k jiguli 2 )
06:07
Ozoda
Рет қаралды 15 МЛН
Watermelon magic box! #shorts by Leisi Crazy
00:20
Leisi Crazy
Рет қаралды 48 МЛН
Nix and NeoVim
13:38
ThePrimeTime
Рет қаралды 142 М.
Perfect NixOS | Impermanence Setup
8:52
Vimjoyer
Рет қаралды 20 М.
NixOS Secrets Management - Part 1/3
12:40
EmergentMind
Рет қаралды 8 М.
NixOS Virtual machines
43:03
NixOS Discovery
Рет қаралды 1,8 М.
Nix(OS) Ecosystem Explained
11:19
Vimjoyer
Рет қаралды 8 М.
Nix explained from the ground up
23:39
Surma
Рет қаралды 35 М.
NixOS Automated Remote Bootstrapping with Secrets - Part 1/4
9:41
EmergentMind
Рет қаралды 1,5 М.
NixOS Has One BIG Problem
17:48
The Linux Cast
Рет қаралды 71 М.
Modularize NixOS and Home Manager | Great Practices
8:07
Vimjoyer
Рет қаралды 26 М.
Revolutionize Your Desktop With AGS | Easiest Wayland Widgets
10:15