toraritte
  • Member for 7 years, 4 months
  • Last seen this week
Passing named arguments to shell scripts
11 votes

This answer was initially an edit of @cdmo's answer (thanks to @Milkncookiez's comment also!), that got rejected as expected. When using the variables, one can make sure that they have a default value ...

View answer
How to resize the `/run` directory?
6 votes

1. Resize /run mountpoints According to the tmpfs documentation , "tmpfs has three mount options for sizing" where size is The limit of allocated bytes for this tmpfs instance. The ...

View answer
How to install npm packages in NixOS?
6 votes

As an alternative, I also found CMCDragonkai's comment on the Nixpkgs issue #3393: I just found out that you can change NPM's prefix directory. Something like: npm config set prefix '~/...

View answer
How to force Nix to “install packages” by building them locally instead of downloading a pre-built binary?
4 votes

Either set the substitute option to false in nix.conf (the default is true) or use --option substitute false when invoking a Nix command. nix-env --options substitute false -i hello nix-shell --...

View answer
Howto Install google chrome in nixos?
4 votes

This NixOS FAQ question helped me: How can I install a proprietary or unfree package? You won't be able to install or search for an unfree package as a user, unless you explicitly enable ...

View answer
`sudo cp -a` changes ownership to root (instead of preserving the original user)
Accepted answer
2 votes

I realized that I forgot to mention that I aborted cp -a after checking the destination in another terminal as I was copying 300+ gb of data. Thanks to Gilles' comment I started testing to see ...

View answer
how to scp in mc (and remember)?
1 votes

As of version 4.8.23: Open either Left or Right on the top menu (press F9 if using mouse is not an option) Select Shell link... Type in the connection in the format username@hostname (e.g., lofa@1....

View answer
How to rebuild the configuration of a NixOS installation from Live CD?
1 votes

Adding this answer for completeness sake: in theory, @Mioriin's suggestion above of chrooting would be the correct answer, that could be achieved by the command nixos-enter. From Ubuntu, with the ...

View answer
XMonad crops dialog windows and their buttons - how to fix this?
0 votes

The xmonad tour had the answer all along; highlighting the relevant parts: Floating clients xmonad supports floating windows. Certain windows (such as transients) will be placed in a floating layer ...

View answer