Nixfiles! :3
0

Configure Feed

Select the types of activity you want to include in your feed.

Making the rebuild command smarter!


Signed-off-by: MLC Bloeiman <mar@strawmelonjuice.com>

MLC Bloeiman (May 18, 2026, 6:34 PM +0200) d1f0e7e7 b2e0f731

+31 -1
+14
configs/zshrc-append
··· 90 90 91 91 direnv allow 92 92 } 93 + 94 + 95 + rb() { 96 + jj --repository "$HOME/.dotfiles" file track "$HOME/.dotfiles/." 97 + 98 + if [ -f /etc/NIXOS ]; then 99 + echo "nixos rebuild switch --flake \"$HOME/.dotfiles#$(hostname)\"" 100 + doas nixos-rebuild switch --flake "$HOME/.dotfiles#$(hostname)" 101 + else 102 + echo "home-manager switch --flake \"$HOME/.dotfiles#$(hostname)\"" 103 + nix run home-manager -- switch --flake "$HOME/.dotfiles#$(hostname)" 104 + fi 105 + } 106 +
+1
flake.nix
··· 91 91 hostname: architecture: is_workstation: 92 92 home-manager.lib.homeManagerConfiguration { 93 93 pkgs = import nixpkgs { 94 + 94 95 system = architecture; 95 96 config = { 96 97 allowUnfreePackages = [
+15
home/cli.nix
··· 18 18 home.homeDirectory = "/home/mar"; 19 19 home.stateVersion = "25.11"; # Ensure this matches your NixOS version 20 20 21 + nixpkgs.overlays = [ 22 + (final: prev: { 23 + inherit (prev.lixPackageSets.stable) 24 + nixpkgs-review 25 + nix-eval-jobs 26 + nix-fast-build 27 + colmena 28 + ; 29 + }) 30 + ]; 31 + nix.package = pkgs.lixPackageSets.stable.lix; 32 + nix.settings = { 33 + experimental-features = "flakes nix-command"; 34 + }; 35 + 21 36 programs.direnv = { 22 37 silent = true; 23 38 enable = true;
+1 -1
home/modules/shell/zsh.nix
··· 33 33 shellAliases = { 34 34 # Stealing these back actually! 35 35 to-dotfiles = "cd ~/.dotfiles || cd ~/dotfiles"; 36 - rb = "jj --repository $HOME/.dotfiles file track $HOME/.dotfiles/. && doas nixos-rebuild switch --flake $HOME/.dotfiles#$(hostname)"; 36 + urb = "jj --repository $HOME/.dotfiles git fetch && jj --repository $HOME/.dotfiles rebase --onto main@origin && rb"; 37 37 38 38 ls = "eza --icons"; 39 39 la = "eza --icons -a";