sudo nixos-install --flake .#config
nix-collect-garbage -d && sudo nix-collect-garbage -d
nixos-generate-config --root .
alejandra .
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