mirror of
https://github.com/willemml/dotfiles.nix.git
synced 2025-04-12 03:07:17 +00:00
Updates glassbox boot disk
This commit is contained in:
parent
df0ac0a923
commit
0b1e231acc
3 changed files with 5 additions and 31 deletions
30
README.md
30
README.md
|
@ -1,20 +1,11 @@
|
||||||
My dotfiles using Nix. System configuration done using [nix-darwin](https://github.com/LnL7/nix-darwin) and
|
My dotfiles using Nix. System configuration done using [nix-darwin](https://github.com/LnL7/nix-darwin) and
|
||||||
[NixOS](https://nixos.org/). User configuration using [home-manager](https://github.com/nix-community/home-manager). This repo is put
|
[NixOS](https://nixos.org/). User configuration using [home-manager](https://github.com/nix-community/home-manager).
|
||||||
together as a flake using [flake-parts](https://github.com/hercules-ci/flake-parts). On NixOS home-manager is used
|
This repo is put together as a flake using [flake-parts](https://github.com/hercules-ci/flake-parts).
|
||||||
as a NixOS module, on Darwin it is used separately from nix-darwin.
|
|
||||||
|
|
||||||
dotfiles.nix is inspired by [terlar/nix-config](https://github.com/terlar/nix-config/tree/main), [~rycee/configurations](https://sr.ht/~rycee/configurations/)
|
|
||||||
and [hlissner/dotfiles](https://github.com/hlissner/dotfiles).
|
|
||||||
|
|
||||||
All Nix code in this repo is formatted using [alejandra](https://github.com/kamadorueda/alejandra).
|
All Nix code in this repo is formatted using [alejandra](https://github.com/kamadorueda/alejandra).
|
||||||
|
|
||||||
|
|
||||||
# Usage
|
# Usage
|
||||||
|
|
||||||
Show what this flake provides:
|
|
||||||
|
|
||||||
nix flake show
|
|
||||||
|
|
||||||
Switch both system (NixOS) and home:
|
Switch both system (NixOS) and home:
|
||||||
|
|
||||||
nixos-rebuild switch --flake .
|
nixos-rebuild switch --flake .
|
||||||
|
@ -23,14 +14,6 @@ Switch system (nix-darwin):
|
||||||
|
|
||||||
darwin-rebuild switch --flake .
|
darwin-rebuild switch --flake .
|
||||||
|
|
||||||
Switch home only (on Darwin):
|
|
||||||
|
|
||||||
nix run .#home
|
|
||||||
|
|
||||||
Build home without switching:
|
|
||||||
|
|
||||||
nix build .#home
|
|
||||||
|
|
||||||
Update all inputs:
|
Update all inputs:
|
||||||
|
|
||||||
nix flake update --commit-lock-file
|
nix flake update --commit-lock-file
|
||||||
|
@ -47,12 +30,3 @@ Enter the dev shell (if not using [nix-direnv](https://github.com/nix-community/
|
||||||
|
|
||||||
nix develop
|
nix develop
|
||||||
|
|
||||||
|
|
||||||
# Tasks
|
|
||||||
|
|
||||||
|
|
||||||
## TODO Services as modules
|
|
||||||
|
|
||||||
Services should be converted to modules.
|
|
||||||
These should ideally support both linux and darwin hosts (launchd and systemd).
|
|
||||||
|
|
||||||
|
|
|
@ -23,12 +23,12 @@
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
fileSystems."/" = {
|
fileSystems."/" = {
|
||||||
device = "/dev/disk/by-uuid/4e9a4d87-4b00-413b-84c0-62e737a012a9";
|
device = "/dev/disk/by-uuid/18ed28ca-03c5-4ed8-8a31-fac727b74722";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/boot" = {
|
fileSystems."/boot" = {
|
||||||
device = "/dev/disk/by-uuid/1641-A38E";
|
device = "/dev/disk/by-uuid/DFEC-14F2";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
console.keyMap = "colemak";
|
console.keyMap = "colemak";
|
||||||
console.packages = [pkgs.terminus_font];
|
console.packages = [pkgs.terminus_font];
|
||||||
|
|
||||||
environment.systemPackages = [pkgs.parted];
|
environment.systemPackages = with pkgs; [parted usbutils pciutils];
|
||||||
|
|
||||||
services.zerotierone = {
|
services.zerotierone = {
|
||||||
joinNetworks = globals.zerotier.networks;
|
joinNetworks = globals.zerotier.networks;
|
||||||
|
|
Loading…
Add table
Reference in a new issue