All Projects → thiagokokada → nix-configs

thiagokokada / nix-configs

Licence: MIT license
My Nix{OS} configuration files

Programming Languages

Nix
1067 projects
emacs lisp
2029 projects
shell
77523 projects
python
139335 projects - #7 most used programming language
YASnippet
69 projects

Projects that are alternatives of or similar to nix-configs

base16.nix
Quickly theme programs in your favourite base16 colorscheme
Stars: ✭ 61 (+12.96%)
Mutual labels:  nix, nixos, flake, home-manager, nix-flake
nyx
⚙️Nix[OS] Configuration
Stars: ✭ 50 (-7.41%)
Mutual labels:  nix, nixos, home-manager, nix-flake
microvm.nix
NixOS MicroVMs
Stars: ✭ 136 (+151.85%)
Mutual labels:  nix, nixos, flake, nix-flake
nix-config
A collection of my system configs and dotfiles
Stars: ✭ 35 (-35.19%)
Mutual labels:  nix, nixos, home-manager, nix-flake
dotfiles
NixOS system config & Home-Manager user config
Stars: ✭ 43 (-20.37%)
Mutual labels:  nix, nixos, flake, home-manager
digga
A flake utility library to craft shell-, home-, and hosts- environments.
Stars: ✭ 818 (+1414.81%)
Mutual labels:  nix, nixos, flake, nix-flake
nixdots
I have no idea what the hell I'm doing
Stars: ✭ 46 (-14.81%)
Mutual labels:  nix, nixos, nix-flake
nix-rice
A library to functionally define your configuration and theme (rice) with Nix
Stars: ✭ 43 (-20.37%)
Mutual labels:  nix, nixos, home-manager
deadnix
Scan Nix files for dead code
Stars: ✭ 121 (+124.07%)
Mutual labels:  nix, nixos, nix-flake
dotnix
nix stuff
Stars: ✭ 27 (-50%)
Mutual labels:  nix, nixos, nix-flake
homeage
runtime decrypted age secrets for nix home manager
Stars: ✭ 43 (-20.37%)
Mutual labels:  nix, nixos, home-manager
dotfiles
No place like ~. Nix. All. The. Things.
Stars: ✭ 48 (-11.11%)
Mutual labels:  nix, nixos, home-manager
dotfiles
🏠
Stars: ✭ 53 (-1.85%)
Mutual labels:  nix, nixos, nix-flake
system
The system configuration of a professional yak shaver
Stars: ✭ 42 (-22.22%)
Mutual labels:  nix, nixos, nix-flake
system
Declarative NixOS system configuration for all my machines
Stars: ✭ 14 (-74.07%)
Mutual labels:  nix, nixos, home-manager
dotnix
Shackled within an elaborate prison of my own design.
Stars: ✭ 35 (-35.19%)
Mutual labels:  nix, nixos, home-manager
nixpkgs
My Nix system configs!
Stars: ✭ 143 (+164.81%)
Mutual labels:  nix, home-manager, nix-flake
flake-utils-plus
Use Nix flakes without any fluff.
Stars: ✭ 280 (+418.52%)
Mutual labels:  nix, nixos, nix-flake
rc
Structured system configuration (I moved from NixOS to GuixSD)
Stars: ✭ 97 (+79.63%)
Mutual labels:  nix, nixos, flake
dotfiles
My NixOS dotfiles
Stars: ✭ 21 (-61.11%)
Mutual labels:  nix, nixos, home-manager

nix-configs

build-and-cache

My Nix{OS} configuration files

Overview

  • nix configuration for my laptops, desktops and more
  • nix flake-powered
  • guaranteed to be reproducible

Disclaimer

This config is not based on any previous available Flake-based Nix{OS} config, instead I choose to develop my own from the available examples and documentation. Some of the repositories that helped me to build this config:

Also, some extra resources and documentation about Flakes:

Remember: Flakes is experimental, so you shouldn't try this approach until you have some experience in Nix.

Dotfiles

This repository also includes my home-manager configuration. It is used to configure home in NixOS systems (using home-manager as a NixOS module) but it should also work in standalone mode.

Installation

NixOS

After following the instructions in manual to prepare the system and partition the disk, run the following process to install:

$ sudo git clone https://github.com/thiagokokada/nix-configs/ /mnt/etc/nixos
$ sudo chown -R 1000:1000 /mnt/etc/nixos # optional if you want to edit your config without root
$ nix flake new --template '.#new-host' # if this is a new hardware
$ sudo nixos-install --flake /mnt/etc/nixos#hostname

To speed-up the initial setup, you can comment parts of the configuration. A good start would be to import only hardware-configuration.nix, nixos/minimal.nix and home-manager/minimal.nix.

After installing it succesfully and rebooting, you can uncomment everything and trigger a rebuild.

nix-darwin

Start by installing Nix:

$ sh <(curl -L https://nixos.org/nix/install) --daemon

See more details here.

You first need to run nix-darwin installer:

$ nix-build https://github.com/LnL7/nix-darwin/archive/master.tar.gz -A installer
$ ./result/bin/darwin-installer

Afterwards run:

$ nix build '.#darwinConfigurations.<hostname>.system'
$ ./result/sw/bin/darwin-rebuild switch --flake .
# or
$ nix run '.#darwinActivations/<hostname>'

Home Manager (standalone)

Start by installing Nix:

$ sh <(curl -L https://nixos.org/nix/install) --daemon

To build the Home Manager standalone and activate its configuration, run:

$ nix run '.#homeActivations/<hostname>'

Testing

You can build a VM to test NixOS configurations with safety running the command below:

$ nix run '.#nixosVMs/<hostname>'

Explore

You can explore all outputs from this configuration by using:

$ nix flake show
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].