this post was submitted on 18 Oct 2023
70 points (93.8% liked)

Linux

47362 readers
1127 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I'm looking for recommendations for a dotfile manager - there are so many out there I've got a bit of options paralysis!

I'd like a system that can backup all my dotfiles - with version management - and, if I nuked my home directory, could restore them all for me with a simple command.

Thanks in advance for you suggestions!

you are viewing a single comment's thread
view the rest of the comments
[–] cvf@kbin.social 20 points 11 months ago* (last edited 11 months ago) (2 children)

Home-manager on NixOs. It handles more than just dotfiles, as it also manages installed programs.

[–] saud@lemmy.ml 7 points 11 months ago

It works outside of NixOS too! Just need to have the nix package manager installed.

[–] velox_vulnus@lemmy.ml 2 points 11 months ago (3 children)

How do you manage configuration.nix? Can you share? I've not yet create a NixOS dotfile.

[–] yiliu@informis.land 4 points 11 months ago

Just so it's clear for everybody: Nix is a programming language, build system, and package manager. NixOS is a Linux distro built with (and upon) Nix. Home Manager is a dotfile and home management tool using Nix, allowing control of dotfiles, but also per-user software, systemd services, and more. You can use Home Manager in any distro, not just NixOS (but you do need to install Nix).

[–] chayleaf@lemmy.ml 2 points 11 months ago (1 children)

Here's my example (Github mirror). It stores everything from my custom packages (like GIMP 2.99, which isn't yet packaged in nixpkgs, or a custom virtiofsd to workaround an upstream bug caused by switching from the old C to the new Rust implementation), to my fish, sway, rofi, mpv configs, to my entire server setup, including Gitea, Nextcloud, Keycloak, Mumble, mailserver and Matrix server with some bots and bridges (I recently migrated from an x86_64 to a arm64 board and the only post-install setup I had to do was copy /var), to my router's nftables rules.

[–] velox_vulnus@lemmy.ml 1 points 11 months ago (1 children)

Do you host Nextcloud and Gitea locally? Or do you run it on Nix-supported platforms like Railway?

[–] chayleaf@lemmy.ml 1 points 11 months ago* (last edited 11 months ago)

I host it on an Arm SBC lying in the closet, specifically Radxa Rock 5A (well, the dotfiles mention that much). That said, you don't need your VPS service to offer NixOS provisioning, you can just use nixos-infect

[–] Klaymore@sh.itjust.works 1 points 11 months ago

I just use Git for my nixos config files.