Skip to content

gonzaloetjo/nixos

Repository files navigation

Gonzalo NixOS configuration

Usage

Install NixOS, clone the repository inside /etc/nixos, create a configuration.nix file pointing to the target machine configuration.

MACHINE='gonzalo-dell'
cat <<NIX >/etc/nixos/configuration.nix

{ config, pkgs, options, ... }: {
  imports =
    [
    	"/etc/nixos/machines/${MACHINE}.nix"
    ];
}
NIX

Run nixos-rebuild to apply changes.

sudo nixos-rebuild switch --flake .#{hostname}

Tools to transition to flake:

Architecture

flake.nix
 ├─ ./configuration.nix
 │   └─ machines/gonzalo-dell.nix
 │      └─ machines/gonzalo-dell-hardware.nix  
 │      └─ modules/
 │      │    ├─ virtualization.nix
 │      │    └─ virtualbox.nix #not used
 │      └─ system/
 │      │    ├─ apps.nix # Stable Applications installed
 │      │    ├─ unstable-apps.nix # Unstable Applications installed
 │      │    └─ commons.nix 
 │      └─ declaratives/
 │      │    ├─ unstable.nix # to make unstable available
 │      │    └─ python.nix # not used
 │
 ├─ ./cachix.nix
 ├─ ./cachix/
 │   └─getseadaltas.nix
 │ 
 └─ ./home
     ├─ zsh.nix
     ├─ discord.nix
     ├─ vscode.nix
     └─ git.nix
setfacl -Rm u:[user]:rwx /etc/nixos/
code /etc/nixos

Tutorials

Examples

TODO

Releases

No releases published

Packages

No packages published