my system configurations ^-^
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

docs: format with prettier

willow 226e269b 8880c667

+23 -23
+1 -1
README.md
··· 6 6 These are my new dotfiles (migrating from arch over at https://github.com/42willow/dotfiles) 7 7 8 8 > [!WARNING] 9 - > You should *not* look at this for inspiration until it's complete. 9 + > You should _not_ look at this for inspiration until it's complete. 10 10 11 11 ## Resources 12 12
+22 -22
docs/cheetsheet.md
··· 2 2 3 3 ## `nix-env` package management 4 4 5 - | action | Ubuntu | Nix | notes | 6 - |:---|:---|:---|:---| 7 - | update package list | `sudo apt update` | `sudo nix-channel --update` | | 8 - | search | `apt search <query>` | `nix search <query>` | also try [search.nixos.org/packages](https://search.nixos.org/packages) | 9 - | install | `sudo apt install <package>` | `nix-env -i <package>` | no root, atomic, per user | 10 - | upgrade installed | `sudo apt upgrade` | `nix-env -u` | no root, atomic, per user | 11 - | remove | `sudo apt remove <package>` | `nix-env -e <package>` | no root, atomic, per user | 12 - | undo last operation | ... | `nix-env --rollback` | no root, atomic, per user | 13 - | list installed | `dpkg -l`| `nix-env -q` | per user | 14 - | show generations | ... | `nix-env --list-generations` || 5 + | action | Ubuntu | Nix | notes | 6 + | :------------------ | :--------------------------- | :--------------------------- | :---------------------------------------------------------------------- | 7 + | update package list | `sudo apt update` | `sudo nix-channel --update` | | 8 + | search | `apt search <query>` | `nix search <query>` | also try [search.nixos.org/packages](https://search.nixos.org/packages) | 9 + | install | `sudo apt install <package>` | `nix-env -i <package>` | no root, atomic, per user | 10 + | upgrade installed | `sudo apt upgrade` | `nix-env -u` | no root, atomic, per user | 11 + | remove | `sudo apt remove <package>` | `nix-env -e <package>` | no root, atomic, per user | 12 + | undo last operation | ... | `nix-env --rollback` | no root, atomic, per user | 13 + | list installed | `dpkg -l` | `nix-env -q` | per user | 14 + | show generations | ... | `nix-env --list-generations` | | 15 15 16 16 ## `nix-shell` isolated build/dev/run environments 17 17 18 - | command | result | 19 - |:---|:---| 20 - | `nix-shell -p <packages>` | start shell in env with `<packages>` | 21 - | `nix-shell` | start shell in the env defined by `shell.nix` or `default.nix` in current dir | 22 - | `nix-shell --pure` | same, but outside env is inaccessible | 18 + | command | result | 19 + | :------------------------ | :---------------------------------------------------------------------------- | 20 + | `nix-shell -p <packages>` | start shell in env with `<packages>` | 21 + | `nix-shell` | start shell in the env defined by `shell.nix` or `default.nix` in current dir | 22 + | `nix-shell --pure` | same, but outside env is inaccessible | 23 23 24 24 ## NixOS declarative operating system configuration management 25 25 26 - | command | result | notes | 27 - |:---|:---|:---| 28 - | edit `/etc/nixos/configuration.nix` | define new system configuration | running system is unaffected | 29 - | `nixos-rebuild switch` | switch to the configuration defined in `/etc/nixos/configuration.nix` | atomic* | 30 - | `nixos-rebuild switch --rollback` | switch to previous configuration | atomic* | 31 - | `nixos-option <option>` | show option value and documentation | also try [search.nixos.org/options](https://search.nixos.org/options) | 26 + | command | result | notes | 27 + | :---------------------------------- | :-------------------------------------------------------------------- | :-------------------------------------------------------------------- | 28 + | edit `/etc/nixos/configuration.nix` | define new system configuration | running system is unaffected | 29 + | `nixos-rebuild switch` | switch to the configuration defined in `/etc/nixos/configuration.nix` | atomic\* | 30 + | `nixos-rebuild switch --rollback` | switch to previous configuration | atomic\* | 31 + | `nixos-option <option>` | show option value and documentation | also try [search.nixos.org/options](https://search.nixos.org/options) | 32 32 33 - *services can fail to start 33 + \*services can fail to start