Skip to content

sirn/dotfiles

Repository files navigation

Dotfiles

Instructions

Clone the repository:

$ git clone [email protected]:~sirn/dotfiles ~/.dotfiles

Install Nix:

$ sh <(curl -L https://nixos.org/nix/install) --daemon

Configure nix, edit ~/.config/nix/nix.conf:

experimental-features = nix-command flakes

Setup home directory with Home Manager:

$ HM_PROFILE=$(hostname -s)
$ nix build --no-link .#homeConfigurations.$HM_PROFILE.activationPackage
$ $(nix path-info .#homeConfigurations.$HM_PROFILE.activationPackage)/activate

On subsequent updates, use:

$ home-manager switch --flake .#$HM_PROFILE

Configuration

Local Configuration

Create a file named local.nix to have a machine-specific configuration that is not committed a machine profile.

{
  import = [
    ./modules/programs/bitwarden.nix
    ./modules/services/languagetool.nix
  ];

  # When running on a non-NixOS
  targets.genericLinux.enable = true;
}

Application-specific Notes

Firefox

Application launchers are automatically generated for each Firefox profile defined in programs.firefox.profiles.

For macOS, see Raycast section.

For Linux, an XDG application named "Firefox (profile)" is automatically generated.

Raycast

Generated scripts are stored at ~/.local/libexec/raycast.

To use Raycast script commands:

  1. Apply configuration: home-manager switch --flake .#$HM_PROFILE
  2. Open Raycast Preferences (⌘ + ,)
  3. Go to Extensions → Script Commands
  4. Click "Add Directories" and add ~/.local/libexec/raycast
  5. Search "Firefox" in Raycast to launch profiles

About

Mirror of https://git.sr.ht/~sirn/dotfiles

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •