This commit is contained in:
chloe caruso 2025-05-07 09:45:02 -07:00
parent 9872e50bf6
commit 7d4ca21866
3 changed files with 20 additions and 20 deletions

View file

@ -18,10 +18,10 @@
}; };
stylix = { stylix = {
enable = false; enable = user ? "theme";
base16Scheme = "${pkgs.base16-schemes}/share/themes/${user.theme}.yaml"; base16Scheme = "${pkgs.base16-schemes}/share/themes/${user.theme}.yaml";
fonts = { fonts = lib.optionalAttrs (user ? "font") {
serif = { serif = {
package = pkgs.nerd-fonts.${user.font}; package = pkgs.nerd-fonts.${user.font};
name = "${user.font} Nerd Font"; name = "${user.font} Nerd Font";

View file

@ -8,7 +8,7 @@ modules/ # reusable modules
+-- macos/ # nix-darwin configurations +-- macos/ # nix-darwin configurations
+-- nixos/ # linux configurations +-- nixos/ # linux configurations
+-- nixvim/ # neovim configurations +-- nixvim/ # neovim configurations
+-- shared/ # shared between nixos-rebuild & nixos-rebuild +-- shared/ # shared between nixos-rebuild & darwin-rebuild
+-- home-manager.nix # home program presets +-- home-manager.nix # home program presets
users/ users/
+-- chloe/ +-- chloe/
@ -36,30 +36,30 @@ curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix
sh -s -- install sh -s -- install
``` ```
Open a new shell and clone the repository: While this installs, now is a good time to perform manual setup steps:
- Setup your SSH keys in `~/.ssh`
- Configure the device hostname in System Settings in
- About -> Name
- General -> Sharing -> Local Hostname
- Make sure you're logged into iCloud / Mac App Store
- `xcode-select --install` to make sure Git and other utilities are available.
- Optional: Disable app verification with `sudo spctl --master-disable`, then, go to System Settings -> Privacy to allow unsigned apps.
Once Nix is installed, open a new shell and clone the repository:
``` ```
# Install git + other command tools. (Used by many programs)
xcode-select --install
# Clone via HTTPs # Clone via HTTPs
git clone https://git.paperclover.net/clo/config.git git clone https://git.paperclover.net/clo/config.git
# With SSH Authentication # With SSH Authentication
git clone git@git.paperclover.net:clo/config git clone git@git.paperclover.net:clo/config
``` ```
Setup `nix-darwin` The location of the cloned repository must match what is in your `user.nix` file.
```
# Tell nix-darwin where the flake is at.
sudo mkdir /etc/nix-darwin
sudo ln -s $(realpath flake.nix) /etc/nix-darwin/
# Enable configuration. Setup `nix-darwin` using the `switch` helper:
nix run .#darwin-rebuild switch
```
./switch
``` ```
Additionally, it may be helpful to disable the unsigned app popup.
```
sudo spctl --master-disable
# then, go to System Settings -> Privacy to allow unsigned apps.
```

2
switch
View file

@ -8,5 +8,5 @@ fi;
if command -v nh > /dev/null; then if command -v nh > /dev/null; then
nh $nh_subcommand switch . nh $nh_subcommand switch .
else else
$fallback_command switch $fallback_command -- switch --flake .
fi fi