a1525be05a
renommé : hosts/dell-5590/nixpkgs/VPN.conf -> hosts/dell-5590/home-manager/VPN.conf renommé : hosts/dell-5590/nixpkgs/bat.nix -> hosts/dell-5590/home-manager/bat.nix renommé : hosts/dell-5590/nixpkgs/bat/default.nix -> hosts/dell-5590/home-manager/bat/default.nix renommé : hosts/dell-5590/nixpkgs/colorschemes/nord.theme -> hosts/dell-5590/home-manager/colorschemes/nord.theme renommé : hosts/dell-5590/nixpkgs/configs/.mbsyncrc -> hosts/dell-5590/home-manager/configs/.mbsyncrc renommé : hosts/dell-5590/nixpkgs/configs/i3config -> hosts/dell-5590/home-manager/configs/i3config nouveau fichier : hosts/dell-5590/home-manager/configs/i3status-rust.toml renommé : hosts/dell-5590/nixpkgs/configs/init.el -> hosts/dell-5590/home-manager/configs/init.el nouveau fichier : hosts/dell-5590/home-manager/configs/init.el-bak renommé : hosts/dell-5590/nixpkgs/configs/msmtp_config -> hosts/dell-5590/home-manager/configs/msmtp_config renommé : hosts/dell-5590/nixpkgs/configs/nextcloud.cfg -> hosts/dell-5590/home-manager/configs/nextcloud.cfg renommé : hosts/dell-5590/nixpkgs/configs/xfce4/terminal/accels.scm -> hosts/dell-5590/home-manager/configs/xfce4/terminal/accels.scm renommé : hosts/dell-5590/nixpkgs/configs/xfce4/terminal/colorschemes/nord.theme -> hosts/dell-5590/home-manager/configs/xfce4/terminal/colorschemes/nord.theme renommé : hosts/dell-5590/nixpkgs/configs/xfce4/terminal/terminalrc -> hosts/dell-5590/home-manager/configs/xfce4/terminal/terminalrc renommé : hosts/dell-5590/nixpkgs/configs/zellij -> hosts/dell-5590/home-manager/configs/zellij renommé : hosts/dell-5590/nixpkgs/dunst.nix -> hosts/dell-5590/home-manager/dunst.nix renommé : hosts/dell-5590/nixpkgs/emacs.nix -> hosts/dell-5590/home-manager/emacs.nix renommé : hosts/dell-5590/nixpkgs/git.nix -> hosts/dell-5590/home-manager/git.nix renommé : hosts/dell-5590/nixpkgs/gnupg.nix -> hosts/dell-5590/home-manager/gnupg.nix nouveau fichier : hosts/dell-5590/home-manager/home-manager renommé : hosts/dell-5590/nixpkgs/home.nix -> hosts/dell-5590/home-manager/home.nix nouveau fichier : hosts/dell-5590/home-manager/i3status.nix renommé : hosts/dell-5590/nixpkgs/kdeconnect.nix -> hosts/dell-5590/home-manager/kdeconnect.nix renommé : hosts/dell-5590/nixpkgs/mails.nix -> hosts/dell-5590/home-manager/mails.nix renommé : hosts/dell-5590/nixpkgs/packages.nix -> hosts/dell-5590/home-manager/packages.nix renommé : hosts/dell-5590/nixpkgs/redshift.nix -> hosts/dell-5590/home-manager/redshift.nix renommé : hosts/dell-5590/nixpkgs/starship.nix -> hosts/dell-5590/home-manager/starship.nix renommé : hosts/dell-5590/nixpkgs/terminalrc -> hosts/dell-5590/home-manager/terminalrc renommé : hosts/dell-5590/nixpkgs/variables.nix -> hosts/dell-5590/home-manager/variables.nix renommé : hosts/dell-5590/nixpkgs/xidlehook.nix -> hosts/dell-5590/home-manager/xidlehook.nix modifié : hosts/dell-5590/nixos/configuration.nix modifié : hosts/dell-5590/nixos/packages.nix modifié : hosts/dell-5590/nixos/services.nix supprimé : hosts/dell-5590/nixpkgs/i3status.nix modifié : modules/neovim.nix |
||
---|---|---|
docker | ||
hosts | ||
modules | ||
README.md |
README.md
nixos-config
This repository contain all my nixos config
hosts :
- backup backup server : online
- web server web : OVH
- dell-5590 pro laptop
- services VM on personal PX server. Hosting grafana - prometheus - loki
- x201 personnal laptop
- next VM on personnal PX server. Nosting personnal nextcloud
modules :
- common.nix : common config like environnement variable and common system packages base
- gitea.nix : use on web server
- prometheus-node.nix : prometheus node-exporter. use by all machine
- rest-server.nix : use by backup server. Restic server
- users.nix : user configuration. use by all machine
How to use
First boot
After first boot :
nix-shell -p git
git clone gitea@git.atlanticaweb.fr:alexandre/nixos-config.git
cd nix-os-config
cp modules/users.nix /etc/nixos/
cp modules/common.nix /etc/nixos/
nano /etc/nixos/configuration.nix
add ./users.nix and ./common.nix after ./hardware-configuration.nix and exit
nixos-rebuild switch
rm -rf ~/nixos-config
exit
Copy your personnal private key to account
scp -i .ssh/privatekey .ssh/privatekey machine:/home/alexandre/.ssh/
Logging with user
mkdir git;cd git
git clone gitea@git.atlanticaweb.fr:alexandre/nixos-config.git
cd nixos-config/hosts
mkdir newhosts
cd newhosts
cp /etc/nixos/* .
edit configuration.nix and change ./users.nix to ../modules/users.nix and change ./common.nix to ../modules/common.nix
rm /etc/nixos
ln -s /home/alexandre/git/nixos-config/hosts/machine /etc/nixos
ln -s ~/git/nixos-config/modules /etc/modules
Exploit
to rebuild system, just :
sudo nixos-rebuild switch
Users have not a password.