mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-01 07:03:08 +02:00
feat: update for macOS
This commit is contained in:
19
README.md
19
README.md
@@ -15,7 +15,7 @@ This repository is home to the nix code that builds my systems.
|
||||
|
||||
Nix allows for easy-to-manage, collaborative, reproducible deployments. This means that once something is setup and configured once, it works forever. If someone else shares their configuration, anyone can make use of it.
|
||||
|
||||
**Want to know Nix in details? Looking for a beginner-friendly tutorial? Check out [NixOS & Nix Flakes - 🛠️ ❤️ An unofficial & opinionated Book for Beginners](https://github.com/ryan4yin/nixos-and-flakes-book)!**
|
||||
**Want to know Nix in details? Looking for a beginner-friendly tutorial or best practices? Check out [NixOS & Nix Flakes - 🛠️ ❤️ An unofficial & opinionated Book for Beginners](https://github.com/ryan4yin/nixos-and-flakes-book)!**
|
||||
|
||||
## Hosts
|
||||
|
||||
@@ -75,19 +75,6 @@ flatpak search <keyword>
|
||||
# search on website is also supported: https://flathub.org/
|
||||
```
|
||||
|
||||
## Run unmodified binaries on NixOS
|
||||
|
||||
> the `fhs` command is defined at [./modules/nixos/core-desktop.nix#L145](https://github.com/ryan4yin/nix-config/blob/v0.0.5/modules/nixos/core-desktop.nix#L145)
|
||||
|
||||
```shell
|
||||
# Activating FHS drops me in a shell which looks like a "normal" Linux
|
||||
$ fhs
|
||||
(fhs) $ ls /usr/bin
|
||||
(fhs) $ ./bin/code
|
||||
```
|
||||
|
||||
for other methods, check out [Different methods to run a non-nixos executable on Nixos](https://unix.stackexchange.com/questions/522822/different-methods-to-run-a-non-nixos-executable-on-nixos).
|
||||
|
||||
## How to create & managage VM from this flake?
|
||||
|
||||
use `aquamarine` as an example, we can create a virtual machine with the following command:
|
||||
@@ -119,6 +106,10 @@ make aqua
|
||||
|
||||
The commands above will build & deploy the configuration to `aquamarine`, the build process will be executed on `aquamarine` too, and the `--use-remote-sudo` option indicates that we will use `sudo` on the remote host.
|
||||
|
||||
## Other Tips
|
||||
|
||||
1. alacritty - Multi-Window on macOS: `command + N`
|
||||
|
||||
## Other Interesting Dotfiles
|
||||
|
||||
Other dotfiles && docs that inspired me:
|
||||
|
||||
@@ -76,6 +76,7 @@
|
||||
"raycast"
|
||||
"iglance"
|
||||
"eudic"
|
||||
"baiduinput" # baidu input method
|
||||
# "reaper"
|
||||
|
||||
"insomnia"
|
||||
|
||||
Reference in New Issue
Block a user