]> Untitled Git - monorepo.git/commitdiff
add kubo ipfs
authorPreston Pan <ret2pop@gmail.com>
Thu, 16 Jan 2025 13:35:13 +0000 (05:35 -0800)
committerPreston Pan <ret2pop@gmail.com>
Thu, 16 Jan 2025 13:35:13 +0000 (05:35 -0800)
mindmap/lrc_circuit.png
nix/modules/configuration.nix
nix/modules/home/user.nix
nix/modules/kubo.nix [new file with mode: 0644]
nix/modules/sda-simple.nix
nix/systems/installer/default.nix

index c9c4d30b7dbfbba2f75fc5de259aa8ac33133a83..c383ed018ce88f9d67435d0b34acee41dd557e3e 100644 (file)
Binary files a/mindmap/lrc_circuit.png and b/mindmap/lrc_circuit.png differ
index 286d48504a4a937115ce6ca364c7cd77c6df7909..43877675fafac2d0f2bc06af03b273cf918d5052 100644 (file)
@@ -5,6 +5,7 @@
     ./ssh.nix
     ./pipewire.nix
     ./tor.nix
+    ./kubo.nix
   ];
 
   documentation = {
index 1e4c13e1d15adb637809b511d0a0315c22e2f903..24c358f64a6b69e8605b28a6a0b2a63dec063a3d 100644 (file)
@@ -8,9 +8,6 @@
     if [ ! -d "/home/${config.monorepo.vars.userName}/music" ]; then
       mkdir -p /home/${config.monorepo.vars.userName}/music
     fi
-    if [ ! -d "/home/${config.monorepo.vars.userName}/sounds" ]; then
-      mkdir -p /home/${config.monorepo.vars.userName}/sounds
-    fi
     touch /home/${config.monorepo.vars.userName}/org/agenda.org
     touch /home/${config.monorepo.vars.userName}/org/notes.org
     '';
diff --git a/nix/modules/kubo.nix b/nix/modules/kubo.nix
new file mode 100644 (file)
index 0000000..5d2c89a
--- /dev/null
@@ -0,0 +1,6 @@
+{}:
+{
+  services.kubo = {
+    enable = true;
+  };
+}
index 1513d822c3a7ae189fb2232744e5fd8285d06340..fdf65565ad31c465e8f934694d491e7107f8bd4b 100644 (file)
@@ -1,16 +1,8 @@
-{ config, lib, ... }:
 {
-  options.monorepo.vars.disk = lib.mkOption {
-    type = lib.types.str;
-    default = "/dev/sda";
-    example = "/dev/nvme0n1";
-    description = "Disk to install NixOS to";
-  };
-
-  config.disko.devices = {
+  disko.devices = {
     disk = {
       my-disk = {
-        device = config.monorepo.vars.disk;
+        device = "/dev/sda";
         type = "disk";
         content = {
           type = "gpt";
index 85102ebf25b5fbeb2acb833447e582311efac678..cbfed0dda62e950fb4c52d4a2772e417284edce9 100644 (file)
@@ -3,6 +3,18 @@ let
   commits = import ./commits.nix;
 in
 {
+  networking = {
+    hostName = "nixos";
+    networkmanager = {
+      enable = true;
+    };
+    firewall = {
+      allowedTCPPorts = [ ];
+      allowedUDPPorts = [ ];
+    };
+    wireless.enable = false;
+  };
+
   users.extraUsers.root.password = "nixos";
   users.extraUsers.nixos.password = "nixos";
   users.users = {
@@ -31,7 +43,7 @@ vim "$HOME/monorepo/nix/systems/continuity/default.nix"
 sudo nix --experimental-features "nix-command flakes" run "github:nix-community/disko/${commits.diskoCommitHash}" -- --mode destroy,format,mount "$HOME/monorepo/nix/modules/sda-simple.nix"
 cd /mnt
 sudo nixos-install --flake $HOME/monorepo/nix#continuity
-sudo cp $HOME/monorepo "/mnt/home/$(ls /mnt/home/)/"
+sudo cp -r $HOME/monorepo "/mnt/home/$(ls /mnt/home/)/"
 echo "rebooting..."; sleep 3; reboot
 '')
       ];