Click me
nix build .#asahiConfiguration.asahi.activationPackage
./result/activate
Click me
nix build .#darwinConfigurations.mc-2A3MD6R-MBP.system
./result/sw/bin/darwin-rebuild switch --flake . # Use this for the initial build
darwin-rebuild switch --flake . #this will work after initial build
Click me
nix --experimental-features 'flakes nix-command' build .#darwinConfigurations.Bebop.system
nix build .#darwinConfigurations.Bebop.system # the longer version above might be neede for initial install
sudo ./result/activate
./result/sw/bin/darwin-rebuild switch --flake . # Use this for the initial build
darwin-rebuild switch --flake . #this will work after initial build
Click me
Build command will match nix config with machine hostname
sudo nixos-rebuild switch --flake .
Building iso image
nix build .#nixosConfigurations.isoInstaller.config.system.build.isoImage
qemu-img create -f qcow2 example.img 80G
qemu-system-x86_64 -cdrom ./result/iso/nixos-****-linux.iso -drive file=example.img -net nic -net user,hostfwd=tcp::10022-:22 -daemonize -m 8G
Once all systems have been built once the nrs
alias can be used to "nix rebuilt switch"
which works on NixOS, Asahi Linux and OSX. No need to memorize separate commands for each environment. The alias defined in the fish config will pick the correct command depending on if running NixOS, Darwin or Asahi.
- https://github.com/MatthiasBenaets/nixos-config
- https://github.com/thexyno/nixos-config
- https://github.com/Robertof/nixos-docker-sd-image-builder.
├── hosts (Computers)
│ ├── asahi (M1 Linux)
│ ├── darwin (MacOS)
│ │ └── hosts
│ │ ├── Bebop
│ │ └── mc-2A3MD6R-MBP
│ └── nixos (NixOS)
│ ├── gaming
│ ├── mini
│ ├── pi4
│ └── vm
├── modules (Programs)
│ ├── DE (Linux Desktop Environments)
│ │ ├── hypr
│ │ ├── rofi
│ │ └── waybar
│ ├── editors
│ │ └── nvim
│ ├── firefox
│ └── shell (CLI tools and dotfiles)
│ ├── bottom
│ ├── broot
│ ├── cava
│ ├── kitty
│ ├── lazygit
│ ├── scripts
│ ├── wezterm
│ └── xplr
└── overlay (Customizations and Overlays)
├── nnn
└── worm
Click me
Finding older versions by using commit hash and then convert url into- https://github.com/NixOS/nixpkgs/commit/708dcbce926fdfb40a08ff625148fe11b6fe601d
- https://codeload.github.com/NixOS/nixpkgs/tar.gz/708dcbce926fdfb40a08ff625148fe11b6fe601d
- This site can also be used to find version info for past releases
about:config
mousewheel.default.delta_multiplier_(X,Y,Z) = 15
Use Colemak DH on login screen
localectl --no-convert set-x11-keymap us apple_laptop colemak_dh
- Troubleshooting
cat /etc/X11/xorg.conf.d/00-keyboard.conf
cat /etc/vconsole.conf
localectl list-x11-keymap-variants
localectl list-x11-keymap-layouts
https://evanrelf.com/nixos-fix-command-not-found-database-file-error/
DBI connect('dbname=/nix/var/nix/profiles/per-user/root/channels/nixos/programs.sqlite','',...) failed: unable to open database file at /run/current-system/sw/bin/command-not-found line 13.
cannot open database `/nix/var/nix/profiles/per-user/root/channels/nixos/programs.sqlite' at /run/current-system/sw/bin/command-not-found line 13.
$ sudo nix-channel --add https://nixos.org/channels/nixos-unstable nixos
$ sudo nix-channel --update nixos