summaryrefslogtreecommitdiff
path: root/machines
diff options
context:
space:
mode:
Diffstat (limited to 'machines')
-rw-r--r--machines/picast/default.nix5
-rw-r--r--machines/picast/disko.nix64
2 files changed, 68 insertions, 1 deletions
diff --git a/machines/picast/default.nix b/machines/picast/default.nix
index bf0beac..ff10ad5 100644
--- a/machines/picast/default.nix
+++ b/machines/picast/default.nix
@@ -12,7 +12,6 @@
../../modules/nixos/nix-common.nix
../../modules/nixos/environment.nix
../../modules/nixos/tailscale.nix
- # ../../modules/nixos/cgit.nix
../../modules/nixos/system-packages.nix
../../modules/users/defin.nix
../../modules/users/root.nix
@@ -29,7 +28,11 @@
# networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
# Set your time zone.
+<<<<<<< HEAD
+ time.timeZone = "US/Mountain";
+=======
time.timeZone = "America/Denver";
+>>>>>>> 7d7f5905769c488d2129b2ec0ade6451f0765d84
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
diff --git a/machines/picast/disko.nix b/machines/picast/disko.nix
new file mode 100644
index 0000000..082d054
--- /dev/null
+++ b/machines/picast/disko.nix
@@ -0,0 +1,64 @@
+{
+ # required by impermanence
+ fileSystems."/persist".neededForBoot = true;
+
+ disko.devices = {
+ disk.sda = {
+ type = "disk";
+ device = "/dev/sda";
+ content = {
+ type = "gpt";
+ partitions = {
+ ESP = {
+ label = "boot";
+ name = "ESP";
+ size = "512M";
+ type = "EF00";
+ content = {
+ type = "filesystem";
+ format = "vfat";
+ mountpoint = "/boot";
+ mountOptions = [
+ "defaults"
+ ];
+ };
+ };
+ root = {
+ size = "100%";
+ label = "root";
+ content = {
+ type = "btrfs";
+ extraArgs = [ "-L" "nixos" "-f"];
+ subvolumes = {
+ "@root" = {
+ mountpoint = "/";
+ mountOptions = [ "subvol=root" "compress-force=zstd:2"];
+ };
+ "@home" = {
+ mountpoint = "/home";
+ mountOptions = [ "subvol=home" "compress-force=zstd:2"];
+ };
+ "@nix" = {
+ mountpoint = "/nix";
+ mountOptions = [ "subvol=nix" "compress-force=zstd:2"];
+ };
+ "@persist" = {
+ mountpoint = "/persist";
+ mountOptions = [ "subvol=persist" "compress-force=zstd:2"];
+ };
+ "@log" = {
+ mountpoint = "/var/log";
+ mountOptions = [ "subvol=log" "compress-force=zstd:2"];
+ };
+ "@swap" = {
+ mountpoint = "/swap";
+ swap.swapfile.size = "4G";
+ };
+ };
+ };
+ };
+ };
+ };
+ };
+ };
+}