Skip to content

u/How2Smash

In this archive from Dec 2016 to Sep 2020

8
posts
69
comments
0
media
324
score
1 saved before deletion

Storing a system config that auto updates in your homedir is a serious security vulnerability. Might as well just leave no password on sudo.

I do something similar. I make /cfg my config dir and have it auto update IF the latest commit is signed by my yubikey. Otherwise, I can force an update. /cfg is 700 owned by root, although 755 would be fine as long as there is no file my user can write to inside. /nix/store is 555 anyway, so I just need to worry about writes.

6 points

The simple solution I've come up with it have a git repo in /opt and a script that will take all files in the root directory and symlink them to their appropriate location. This means a path of GitRoot/DNS/etc/bind.conf will create a symlink to /etc/bind.conf. This allows easy and simple edits and quickly will expand over an entire system. I don't manage packages with it, but you could create a quick newline seperated list of package to ensure are installed and you'd be good to go.

This is equivilant to ensure file has contents and ensure package exists of other languages.

I use NixOS for my personal daily machines though, so system management is not an issue for me.

2 points

To use wireguard, you add generate a key, give that public key to a peer and they give you their public key. You then decide who get what IPs. You are not limited to a single peer.

There is no automatic peer management like bittorrent, but you do connect a wireguard interface to a group of peers who are allowed to route a specified list of ips (usually 1 IP, a subnet, or the whole internet).

So yes, peer to peer, but not decentralized peer discovery.

1 points

Ideally you don't host it at all. It is by design a peer to peer network. One (or more) peer can just so happen to allow routing to LAN IPS or the internet.

If you just want to use it as a self-hosted gateway, run it on any device that can handle the throughput of your internet, such as a desktop, server, RPi, or really anything with a modern operating system and Ethernet.

2 points

It depends what problem you're trying to solve. Want to just get packages as you please and not worry about dependencies or want to pin package versions? Nix will solve those problems.

Arch actually makes the most out of this because you're forced to have all your packages up to date unless you want linking errors when you install something new.

However, NixOS really emphasizes the set it up once and forget about it. It usually won't break unless it tells you beforehand, and if it does, just rollback. You work at a different abstraction level than Arch.

10 points

Systemd-homed, wireguard, Wayland, ZFS on linux has native encryption, in kernel freesync, and valve proton are all I can think of.

Personally, I've been getting into NixOS and defining my system to be reproducable and have a common config across my machines, but that's not new or Arch.

I3 is also a major thing to tinker with, but again, not new.

There's only so many ways you can build a system. Arch shows you most of them, but Gentoo will show you all of them.

15 points
  1. Hosts editing based on a common NixOS config.

  2. External and Internal, but I poison external DNS. Mail, too.

3,4. Self Signed, because I can trust that certificate on all machines easily and I am having troubles with DNS challenges on certbot. External domain only has non self hosted services or LAN only, so I let those handle SSL on their own or omit SSL because it's unnecessary.

  1. I'm not that big, but I name servers after one game series and workstations after another game series.

  2. External DNS is hosted externally, then I poison my hosts with VPN routes to some specific services.

  3. Absolutely not.

1 points

That's a perk IMO. What I have is a simple bash script I call resolve-link, which, well, resolves the link for you in place. It's not atomic or anything, but it takes they immutable file and makes a mutable copy.

Next time home manager activates, it clobbers it, but it allows me to experiment. I use it mostly for my sublime config files.

3 points

I've been using NixOS and loving it. It is 100% a programmer's OS, but it is capable of doing everything a normal OS does without any dependency issues.

Just take that config, stick it in git and you're off having reliably reproducable systems. Highly recommended, but learning curve is steep.

Puppet has a lower learning curve, but I feel it has more intent to be structured, having a a whole host or 3 for the puppet server.

The cloud has spawned several other management utilities, but those are the 2 I have experience with.

2 points

So many choices, because it all depends how you want to manage them and what language you want to write in. You can do for loops in bash, Puppet Bolt, Ansible, dsh, and I'm sure terraform and chef have a solution of their own.

IMO a well maintained system should be managed 90% declaratively. So, Puppet, NixOS/NixOps, Terraform, Chef, etc, but you did ask for ssh specifically.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.