Set up new server

This commit is contained in:
2024-06-17 16:52:48 -05:00
parent 610e3f8009
commit 3c28cb1d45
5 changed files with 42 additions and 18 deletions

View File

@@ -14,25 +14,25 @@
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/0dfd896f-a313-4a43-a171-3d1157a01c02";
{ device = "/dev/disk/by-uuid/a60ac6e2-b56e-49f8-bfcc-64b099dc6569";
fsType = "btrfs";
options = [ "subvol=root" ];
};
fileSystems."/home" =
{ device = "/dev/disk/by-uuid/0dfd896f-a313-4a43-a171-3d1157a01c02";
{ device = "/dev/disk/by-uuid/a60ac6e2-b56e-49f8-bfcc-64b099dc6569";
fsType = "btrfs";
options = [ "subvol=home" ];
};
fileSystems."/nix" =
{ device = "/dev/disk/by-uuid/0dfd896f-a313-4a43-a171-3d1157a01c02";
{ device = "/dev/disk/by-uuid/a60ac6e2-b56e-49f8-bfcc-64b099dc6569";
fsType = "btrfs";
options = [ "subvol=nix" ];
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/1925-D969";
{ device = "/dev/disk/by-uuid/2E79-9765";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
};

View File

@@ -26,6 +26,15 @@
"/nix".options = [ "compress=zstd" "noatime" ];
};
virtualisation.docker = {
enable = true;
storageDriver = "btrfs";
};
environment.systemPackages = with pkgs; [
docker-compose
];
# Set your time zone.
time.timeZone = "America/Chicago";
@@ -35,8 +44,11 @@
# Define a user account.
users.users.eesim = {
isNormalUser = true;
extraGroups = [ "wheel" ];
extraGroups = [ "wheel" "networkmanager" ];
shell = pkgs.fish;
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEO9a9lCSa84Acv0SqOI608IJGa61dT5Frbw2Y/ABCB9 eesim@ankaa"
];
};
system.stateVersion = "23.11";