Skip to content

hajlaoui-nader/nixfiles

Repository files navigation

The what ?

this is a basic flake definitions containing my basic configuration for my:

  • home-manager
  • linuxwork: linux machine
  • homepi: raspberry pi
  • darwin: macos

Before

  • Install Nix and then install home-manager. You should be able to run the home-manager program in a shell.

The how ?

  • linux or rapsberry pi: nix build .#homeConfigurations.<hostname>.activationPackage
  • macos: ``` $ nix build .#darwinConfigurations.mbp2023.system $ ./result/sw/bin/darwin-rebuild switch --flake .

# Dotfiles

## Usage
### hm

```shell
$ home-manager switch
$ home-manager switch --flake .#linuxwork

flake activation on linux

nix build .#homeConfigurations.linux.activationPackage
result/activate

update the flake

$ nix flake update

update a single input, exemple nixpkgs-unstable

$ nix flake lock --update-input nixpkgs-unstable

after

  • copy nixpkgs/modules/iterm/com.googlecode.iterm2.plist to ~/Library/Preferences/com.googlecode.iterm2

helpers

install package

nix-env -iA nixpkgs.<package>

search package

nix search nixpkgs <package>

Update system

nix flake update

# Apply the updates
sudo nixos-rebuild switch --flake .#??? <== put output

repl

nix repl
    > :lf . # load flake

TODO

  • upgrade and add ghostty

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published