mirror of
https://github.com/gburd/nix-config.git
synced 2024-10-05 04:56:57 +00:00
s/loki/floki/g
This commit is contained in:
parent
e3b7b91bf1
commit
7e686212d4
7 changed files with 12 additions and 10 deletions
8
NOTES
8
NOTES
|
@ -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,7 +72,7 @@ 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;
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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; };
|
||||||
};
|
};
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
hostName = "loki";
|
hostName = "floki";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Enable networking
|
# Enable networking
|
Loading…
Reference in a new issue