diff options
author | Preston Pan <ret2pop@gmail.com> | 2025-01-16 05:35:13 -0800 |
---|---|---|
committer | Preston Pan <ret2pop@gmail.com> | 2025-01-16 05:35:13 -0800 |
commit | 2b10a467c18f85b0e00b978b943e0efdbcee74bd (patch) | |
tree | 3efd5e4aa28d81276c68f1753f05d5e62c62d8c6 | |
parent | 39412ea8c6431a3c06b7e5945c5cd7b01a53de45 (diff) |
add kubo ipfs
-rw-r--r-- | mindmap/lrc_circuit.png | bin | 3229 -> 3229 bytes | |||
-rw-r--r-- | nix/modules/configuration.nix | 1 | ||||
-rw-r--r-- | nix/modules/home/user.nix | 3 | ||||
-rw-r--r-- | nix/modules/kubo.nix | 6 | ||||
-rw-r--r-- | nix/modules/sda-simple.nix | 12 | ||||
-rw-r--r-- | nix/systems/installer/default.nix | 14 |
6 files changed, 22 insertions, 14 deletions
diff --git a/mindmap/lrc_circuit.png b/mindmap/lrc_circuit.png Binary files differindex c9c4d30..c383ed0 100644 --- a/mindmap/lrc_circuit.png +++ b/mindmap/lrc_circuit.png diff --git a/nix/modules/configuration.nix b/nix/modules/configuration.nix index 286d485..4387767 100644 --- a/nix/modules/configuration.nix +++ b/nix/modules/configuration.nix @@ -5,6 +5,7 @@ ./ssh.nix ./pipewire.nix ./tor.nix + ./kubo.nix ]; documentation = { diff --git a/nix/modules/home/user.nix b/nix/modules/home/user.nix index 1e4c13e..24c358f 100644 --- a/nix/modules/home/user.nix +++ b/nix/modules/home/user.nix @@ -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 index 0000000..5d2c89a --- /dev/null +++ b/nix/modules/kubo.nix @@ -0,0 +1,6 @@ +{}: +{ + services.kubo = { + enable = true; + }; +} diff --git a/nix/modules/sda-simple.nix b/nix/modules/sda-simple.nix index 1513d82..fdf6556 100644 --- a/nix/modules/sda-simple.nix +++ b/nix/modules/sda-simple.nix @@ -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"; diff --git a/nix/systems/installer/default.nix b/nix/systems/installer/default.nix index 85102eb..cbfed0d 100644 --- a/nix/systems/installer/default.nix +++ b/nix/systems/installer/default.nix @@ -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 '') ]; |