winter: rename to blossom
This commit is contained in:
parent
72c6763508
commit
f91c64d71e
10 changed files with 26 additions and 20 deletions
|
|
@ -26,6 +26,7 @@
|
|||
192.168.100.11 peach
|
||||
192.168.100.12 butterfly
|
||||
192.168.100.13 winter
|
||||
192.168.100.13 blossom
|
||||
192.168.100.14 apricot
|
||||
|
||||
10.100.0.1 fondue
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
{ config, modules, overlays, pkgs, ... }: {
|
||||
networking.hostName = "winter";
|
||||
system.stateVersion = "20.09";
|
||||
networking.hostName = "blossom";
|
||||
system.stateVersion = "21.05";
|
||||
time.timeZone = "Asia/Phnom_Penh";
|
||||
|
||||
age.secrets = {
|
||||
passwd.file = ../../secrets/passwd.age;
|
||||
wg_winter.file = ../../secrets/wg_winter.age;
|
||||
wg_blossom.file = ../../secrets/wg_blossom.age;
|
||||
wpa_conf.file = ../../secrets/wpa_conf.age;
|
||||
};
|
||||
imports = with modules.system; [
|
||||
|
|
@ -5,8 +5,8 @@ let
|
|||
fsType = type;
|
||||
options = [ "defaults" "relatime" ];
|
||||
};
|
||||
mkBtrfsMount = subvolid: atime: mkMount "8f0ba28e-5dff-4a4e-8db0-aa72cc90cb5d" "btrfs" // {
|
||||
options = [ "autodefrag" "compress=zstd:3" "defaults" "nossd" "nossd_spread" "subvolid=${builtins.toString subvolid}" (if atime then "relatime" else "noatime")];
|
||||
mkBtrfsMount = subvolid: atime: mkMount "cf0f4302-f006-46a5-afc7-ada04d17f6f2" "btrfs" // {
|
||||
options = [ "autodefrag" "compress=zstd:3" "defaults" "discard=async" "space_cache=v2" "ssd" "subvolid=${builtins.toString subvolid}" (if atime then "relatime" else "noatime") ];
|
||||
};
|
||||
in
|
||||
{
|
||||
|
|
@ -16,15 +16,18 @@ in
|
|||
fsType = "tmpfs";
|
||||
options = [ "defaults" "size=4G" "mode=755" ];
|
||||
};
|
||||
"/boot" = mkMount "E8E8-E570" "vfat";
|
||||
"/boot" = mkMount "186A-A42E" "vfat";
|
||||
"/mnt/hdd" = mkMount "d5e3cfe5-c73a-4695-b81b-fc0215d4cefe" "ext4";
|
||||
"/mnt/prev" = mkMount "8f0ba28e-5dff-4a4e-8db0-aa72cc90cb5d" "btrfs" // {
|
||||
options = [ "autodefrag" "compress=zstd:3" "defaults" "nossd" "noatime" "ro" ];
|
||||
};
|
||||
|
||||
"/mnt/butter" = mkBtrfsMount 5 true;
|
||||
"/nix" = mkBtrfsMount 258 false;
|
||||
"/home" = mkBtrfsMount 260 true;
|
||||
"/home/.snapshots" = mkBtrfsMount 319 false;
|
||||
"/root" = mkBtrfsMount 261 false;
|
||||
"/var" = mkBtrfsMount 259 false;
|
||||
"/nix" = mkBtrfsMount 257 false;
|
||||
"/home" = mkBtrfsMount 259 true;
|
||||
"/home/.snapshots" = mkBtrfsMount 262 false;
|
||||
"/root" = mkBtrfsMount 260 false;
|
||||
"/var" = mkBtrfsMount 258 false;
|
||||
|
||||
# "/mnt/nfs" = {
|
||||
# device = "192.168.100.11:/srv/nfs";
|
||||
|
|
@ -26,6 +26,7 @@
|
|||
192.168.100.11 peach
|
||||
192.168.100.12 butterfly
|
||||
192.168.100.13 winter
|
||||
192.168.100.13 blossom
|
||||
192.168.100.14 apricot
|
||||
|
||||
10.100.0.1 fondue
|
||||
|
|
@ -13,6 +13,7 @@
|
|||
extraHosts = ''
|
||||
10.100.0.2 apricot
|
||||
10.100.0.3 winter
|
||||
10.100.0.3 blossom
|
||||
10.100.0.4 strawberry
|
||||
'';
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue