mirror of
https://github.com/ellmau/nixos.git
synced 2025-12-19 09:29:36 +01:00
• Updated input 'emacs-overlay':
→ 'github:nix-community/emacs-overlay/24a75cb77b9f7204a265528ff2d154d2299d907a' (2022-04-19)
• Updated input 'home-manager':
→ 'github:nix-community/home-manager/7244c6715cb8f741f3b3e1220a9279e97b2ed8f5' (2022-04-13)
• Updated input 'nixos-hardware':
→ 'github:NixOS/nixos-hardware/1a0ccdbf4583ed0fce37eea7955e8ef90f840a9f' (2022-04-13)
• Updated input 'nixpkgs':
→ 'github:NixOS/nixpkgs/7b38b03d76ab71bdc8dc325e3f6338d984cc35ca' (2022-04-18)
• Updated input 'nixpkgs-unstable':
→ 'github:NixOS/nixpkgs/1ffba9f2f683063c2b14c9f4d12c55ad5f4ed887' (2022-04-17)
• Updated input 'sops-nix':
→ 'github:Mic92/sops-nix/c2614c4fe61943b3d280ac1892fcebe6e8eaf8c8' (2022-04-12)
Nix-configuration
Deploy on a new machine
- setup the filesystem as you see fit
- check out repository to
/mnt/etc/nixos - run
nixos-generate-config --root /mntin/mnt/etc/nixos - create
machine/<machine-name>/default.nixand add machine specific configuration to it - move
hardware-configuration.nixtomachine/<machine-name>/hardware-configuration.nix - add your machine to
/mnt/etc/nixos/default.nix - stage the machine-folder to the git-repository
- run
nix-shell -p nixFlakessudo _NIXOS_REBUILD_REEXEC=1 nixos-install --no-root-passwd --flake .#hostnamenixos-install --no-root-passwd --flake .#hostname
Description
Languages
Nix
79.6%
Emacs Lisp
12.4%
Haskell
4.6%
CSS
3%
Shell
0.4%