This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# journalctl -kf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
readlink $(which pactl) | |
nix-build '<nixpkgs>' --no-build-output -A pulseaudio |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo docker run -ti nixery.appspot.com/shell/curl bash | |
$ sudo docker run -ti nixery.appspot.com/shell/cloc bash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env nix-shell | |
#!nix-shell -i python -p pythonFull pythonPackages.requests pythonPackages.pyquery pythonPackages.click |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Change OS to unstable channel | |
$ sudo nix-channel --add https://nixos.org/channels/nixos-unstable nixos | |
Update channel definitions | |
$ sudo nix-channel --update nixos | |
Update and test the system | |
$ sudo nixos-rebuild test | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# nix-channel --add https://github.com/rycee/home-manager/archive/master.tar.gz home-manager | |
# nix-channel --update | |
Add to configuration.nix: | |
imports = [ | |
... | |
<home-manager/nixos> | |
... | |
]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ nix-channel --add https://github.com/rycee/home-manager/archive/master.tar.gz home-manager | |
$ nix-channel --update | |
$ bash | |
$ nix-shell '<home-manager>' -A install | |
$ emacs .config/nixpkgs/home.nix | |
$ home-manager build | |
$ home-manager switch |
NewerOlder