Skip to content

🧑‍💻 Personal nixos and home-manager configurations.

Notifications You must be signed in to change notification settings

furqanramzan/nixos-config

Repository files navigation

Install NixOS

sudo nixos-install --flake .#config

Delete all previous generations

nix-collect-garbage -d && sudo nix-collect-garbage -d

Generate default configuration

nixos-generate-config --root .

Format whole project

alejandra .

Tips and Tricks

To see octal file permissions on a Linux. Click here for more detail.

stat -c '%A %a %n' destination

Monitor list using sway.

swaymsg -t get_outputs

To fix Got permission denied while trying to connect to the Docker daemon socket.

sudo chmod 666 /var/run/docker.sock

To connect to wifi using command line.

nmcli dev wifi connect <SSID> password <password>

To fix Connection activation failed: Secrets were required, but not provided., while connecting to wifi using nmcli.

nmcli con delete <SSID>

To fix Unable to negotiate with 192.168.1.1 port 21098: no matching host key type found. Their offer: ssh-rsa,ssh-dss, while connecting to server using ssh.

ssh -oHostKeyAlgorithms=+ssh-dss [email protected] -p21098