Skip to content

Repository files navigation

nix-config

In this repository I keep my flake based nixos and home-manager configurations. Next to that, there is a configuration to build live-cds.

NixOS

Home-manager runs as a NixOS module, so a single rebuild applies both system and user configuration.

sudo nixos-rebuild --flake . switch

Or using the justfile shorthand:

just switch

Live cd

Ran from the root of this repo.

nix build .#nixosConfigurations.baseIso.config.system.build.isoImage

After a successful build, the iso can be found in result/iso/. Use cp to copy the image to for instance an usb thumb drive.

sudo cp result/iso/nixos-minimal-25.05.20250525.7c43f08-x86_64-linux.iso /dev/sdb

Don't forget to replace the destination drive with the proper drive.

Remote install with nix anywhere

The live iso contains ssh public keys, has sshd running and contains nmtui to setup the network. Once the network is up, use nixos-anywhere to install the system:

nix run github:nix-community/nixos-anywhere -- --flake .#${TARGET_HOST} --generate-hardware-config nixos-generate-config hosts/${TARGET_HOST}/hardware-configuration.nix --target-host root@${TARGET_HOST_IP}

Desktop environment

This repo supports GNOME and headless systems, and defaults to settings.gui = "gnome".

The default terminal multiplexer is Zellij. Set programs.zellij.enable = false per host/user if you want no multiplexer.

Input remapper is disabled by default because its root-owned daemon can inject global input. Opt in for a host by setting settings.inputRemapper.enable = true in its shared settings.

Laptop power policy

Battery charge thresholds are managed in BIOS/firmware (vendor power settings), not in NixOS services.

This keeps charging behavior consistent regardless of OS state.

About

new repo to start with darwin-nix and flakes

Resources

Security policy

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages