diff --git a/modules/shared/user-system-settings.nix b/modules/shared/user-system-settings.nix index 7c25b12..99ef4f7 100644 --- a/modules/shared/user-system-settings.nix +++ b/modules/shared/user-system-settings.nix @@ -18,10 +18,10 @@ }; stylix = { - enable = false; + enable = user ? "theme"; base16Scheme = "${pkgs.base16-schemes}/share/themes/${user.theme}.yaml"; - fonts = { + fonts = lib.optionalAttrs (user ? "font") { serif = { package = pkgs.nerd-fonts.${user.font}; name = "${user.font} Nerd Font"; diff --git a/readme.md b/readme.md index aa9b1ae..e48f331 100644 --- a/readme.md +++ b/readme.md @@ -8,7 +8,7 @@ modules/ # reusable modules +-- macos/ # nix-darwin configurations +-- nixos/ # linux configurations +-- nixvim/ # neovim configurations - +-- shared/ # shared between nixos-rebuild & nixos-rebuild + +-- shared/ # shared between nixos-rebuild & darwin-rebuild +-- home-manager.nix # home program presets users/ +-- chloe/ @@ -36,30 +36,30 @@ curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix 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 git clone https://git.paperclover.net/clo/config.git # With SSH Authentication git clone git@git.paperclover.net:clo/config ``` -Setup `nix-darwin` -``` -# Tell nix-darwin where the flake is at. -sudo mkdir /etc/nix-darwin -sudo ln -s $(realpath flake.nix) /etc/nix-darwin/ +The location of the cloned repository must match what is in your `user.nix` file. -# Enable configuration. -nix run .#darwin-rebuild switch +Setup `nix-darwin` using the `switch` helper: + +``` +./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. -``` diff --git a/switch b/switch index 28db103..bd3388f 100755 --- a/switch +++ b/switch @@ -8,5 +8,5 @@ fi; if command -v nh > /dev/null; then nh $nh_subcommand switch . else - $fallback_command switch + $fallback_command -- switch --flake . fi