s/loki/floki/g

This commit is contained in:
Greg Burd 2023-09-22 10:10:04 -04:00
parent e3b7b91bf1
commit 7e686212d4
No known key found for this signature in database
GPG key ID: 1FC1E7793410DE46
7 changed files with 12 additions and 10 deletions

10
NOTES
View file

@ -26,10 +26,10 @@ btrfs subvolume create /mnt/swap
btrfs subvolume create /mnt/logs btrfs subvolume create /mnt/logs
mount -o compress=zstd,subvol=root /dev/mapper/enc /mnt mount -o compress=zstd,subvol=root /dev/mapper/enc /mnt
mkdir /mnt/{nix,persist,swap,logs} mkdir /mnt/{nix,persist,swap,var/logs}
mount -o compress=zstd,noatime,subvol=nix /dev/mapper/enc /mnt/nix mount -o compress=zstd,noatime,subvol=nix /dev/mapper/enc /mnt/nix
mount -o compress=zstd,subvol=persist /dev/mapper/enc /mnt/persist mount -o compress=zstd,subvol=persist /dev/mapper/enc /mnt/persist
mount -o compress=zstd,noatime,subvol=logs /dev/mapper/enc /mnt/logs mount -o compress=zstd,noatime,subvol=logs /dev/mapper/enc /mnt/var/logs
mount -o noatime,subvol=swap /dev/mapper/enc /mnt/swap mount -o noatime,subvol=swap /dev/mapper/enc /mnt/swap
mkdir /mnt/boot mkdir /mnt/boot
@ -49,6 +49,8 @@ fileSystems = {
"/swap".options = [ "noatime" ]; "/swap".options = [ "noatime" ];
}; };
user hashedPassword: mkpasswd -m sha-512
btrfs filesystem mkswapfile --size 8g --uuid clear /swap/swapfile btrfs filesystem mkswapfile --size 8g --uuid clear /swap/swapfile
swapDevices = [ { device = "/swap/swapfile"; } ]; swapDevices = [ { device = "/swap/swapfile"; } ];
nixos-rebulid switch nixos-rebulid switch
@ -70,9 +72,9 @@ home-manager switch --flake .#username@hostname
sudo nixos-rebuild switch --flake .#my-hostname sudo nixos-rebuild switch --flake .#my-hostname
clear; sudo nixos-rebuild dry-activate --flake .#loki clear; sudo nixos-rebuild dry-activate --flake .#floki
------- -------
services.pcscd.enable = true; services.pcscd.enable = true;
https://mt-caret.github.io/blog/posts/2020-06-29-optin-state.html https://mt-caret.github.io/blog/posts/2020-06-29-optin-state.html

View file

@ -13,7 +13,7 @@ Here's my NixOS/home-manager config files. Requires [Nix flakes](https://nixos.w
- `common`: Shared configurations consumed by the machine-specific ones. - `common`: Shared configurations consumed by the machine-specific ones.
- `global`: Configurations that are globally applied to all my machines. - `global`: Configurations that are globally applied to all my machines.
- `optional`: Opt-in configurations my machines can use. - `optional`: Opt-in configurations my machines can use.
- `loki`: Lenovo ThinkPad X1 Carbon Extreme Gen 5 - `floki`: Lenovo ThinkPad X1 Carbon Extreme Gen 5
- `home`: My Home-manager configuration, acessible via `home-manager --flake` - `home`: My Home-manager configuration, acessible via `home-manager --flake`
- Each directory here is a "feature" each hm configuration can toggle, thus - Each directory here is a "feature" each hm configuration can toggle, thus
customizing my setup for each machine (be it a server, desktop, laptop, customizing my setup for each machine (be it a server, desktop, laptop,

View file

@ -62,8 +62,8 @@
nixosConfigurations = { nixosConfigurations = {
# Personal laptop - Lenovo Carbon X1 Extreme Gen 5 - x86_64 # Personal laptop - Lenovo Carbon X1 Extreme Gen 5 - x86_64
loki = lib.nixosSystem { floki = lib.nixosSystem {
modules = [ ./hosts/loki ]; modules = [ ./hosts/floki ];
specialArgs = { inherit inputs outputs; }; specialArgs = { inherit inputs outputs; };
}; };
@ -94,8 +94,8 @@
homeConfigurations = { homeConfigurations = {
# Desktops # Desktops
"gburd@loki" = lib.homeManagerConfiguration { "gburd@floki" = lib.homeManagerConfiguration {
modules = [ ./home/gburd/loki.nix ]; modules = [ ./home/gburd/floki.nix ];
pkgs = pkgsFor.x86_64-linux; pkgs = pkgsFor.x86_64-linux;
extraSpecialArgs = { inherit inputs outputs; }; extraSpecialArgs = { inherit inputs outputs; };
}; };

View file

@ -17,7 +17,7 @@
]; ];
networking = { networking = {
hostName = "loki"; hostName = "floki";
}; };
# Enable networking # Enable networking