Skip Navigation

Search

Linux @lemmy.ml
jamesbunagna @discuss.online

Emulating NixOS' impermanence module on Fedora Atomic

Hey folks! After using Fedora Atomic for quite a while and really appreciating its approach, I've been eyeing one particular feature from NixOS: its congruent system management. Inspired from Graham Christensen's "Erase your darlings" post, I'd like to explore implementing something similar to NixOS' impermanence module on Fedora Atomic as one step towards better state management.

Why not just switch to NixOS? Well, while NixOS's package management and declarative approach are incredible, I specifically value Fedora's stringent package vetting and security practices. The nixpkgs repository, despite its impressive scope, operates more like a user repository in terms of security standards.

I've already made some progress with the following:

  • Fedora Atomic's shift to bootable OCI containers
Nix / NixOS @programming.dev
QuazarOmega @lemy.lol

Is there a way to automatically import all .nix files in a directory?

My solution:

 nix
    
let

  nixFilesInDirectory = directory:
    (
      map (file: "${directory}/${file}")
      (
        builtins.filter
          (
            nodeName:
              (builtins.isList (builtins.match ".+\.nix$" nodeName)) &&
              # checking that it is NOT a directory by seeing
              # if the node name forcefully used as a directory is an invalid path
              (!builtins.pathExists "${directory}/${nodeName}/.")
          )
          (builtins.attrNames (builtins.readDir directory))
      )
    );

  nixFilesInDirectories = directoryList:
    (
      builtins.concatMap
        (directory: nixFilesInDirectory directory)
        (directoryList)
    );
  # ...
in {
  imports = nixFilesInDirectories ([
      "${./programs}"
      "${./programs/terminal-niceties}"
  ]);
  # ...
}


  

snippet from the full source code: [quazar-omega/home-manager-config (L5-L26)](https://codeberg.org/quazar-omega/home-manager-config/src/commit/7afabf08c04d0d9ce48e06091

GameDeals @lemmit.online
Lemmit.Online bot @lemmit.online
BOT

Star Deal — Dying Light 2 Stay Human: Reloaded Edition (61% off ~ $23.39/£21.44/€23.39) | Dragon's Dogma 2 (18% off ~ $57.39/£44.26/€53.29) | SAND LAND pre-order (18% off ~ $49.19/£40....

This is an automated archive made by the Lemmit Bot.

The original was posted on /r/gamedeals by /u/WeAreFanatical on 2024-04-24 17:03:23.

Original Title: [Fanatical] Star Deal — Dying Light 2 Stay Human: Reloaded Edition (61% off ~ $23.39/£21.44/€23.39) | Dragon's Dogma 2 (18% off ~ $57.39/£44.26/€53.29) | SAND LAND pre-order (18% off ~ $49.19/£40.99/€49.19) | Deals of the Day: Human Fall Flat (75% off ~ $4.99/£3.99/€4.99), and more


Hello, GameDeals!

Star Deal

Title Discount USD GBP EUR Store & Rating Modes HLTB Cards Steam Deck ProtonDB
Dying Light 2 Stay Human: Reloaded Edition 61% $23.39 £21.44 €23.39 [Steam](https:
NixOS - Purely functional @lemmit.online
Lemmit.Online bot @lemmit.online
BOT

The Joys of NixOS

This is an automated archive made by the Lemmit Bot.

The original was posted on /r/nixos by /u/jevyjevjevs on 2024-03-06 13:25:12.


(I posted this on my blog, but wanted to put it here for the discussion)

My History with Linux

In 1999, I installed Fedora 5.2 on my parents' computer and started down the deep path of exploring technology in this fundamentally different alternative operating system.

I remember joining IRC:

Jevin: I remember typing in a password during the install, but what's the username? Friendly Linux Person: Oh, your username is root.

Then I got started building a business hosting websites on a server in my parents basement using my residential cable model. Yeah, that got shut down real fast.

My progression of distros has looked something like this:

Fedora -> Slackware ->

NixOS - Purely functional @lemmit.online
Lemmit.Online bot @lemmit.online
BOT

apply temporal changes without rebuilding system?

This is an automated archive made by the Lemmit Bot.

The original was posted on /r/nixos by /u/conixtract on 2023-08-29 12:08:31.


I use home manager as a nixos modul. Thus I have to run sudo nixos-rebuild switch each time I make changes within home manager - which in general I don't mind. Fiddling around with aesthetics however I rebuild a lot to see if I like the changes in my dotfiles. This gets a little tedious after a while as the sys rebuild takes a bit of time.

Is there a way to make temporal changes that take effect immediately so that I can play around and only apply the things I like within the .nix file?

Neovim @programming.dev
kronicmage @lemmy.ca

I love using Home Manager with Neovim

Just wanted to add some content and encourage discussion :D

I'm a big fan of using Home Manager to manage my Neovim and other dotfiles. It keeps everything in one place, and it's really good at managing non-neovim dependencies like fzf and such. Check out my dotfiles home.nix and nvim folder and tell me what you think!