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 /nix/systems | |
parent | 39412ea8c6431a3c06b7e5945c5cd7b01a53de45 (diff) |
add kubo ipfs
Diffstat (limited to 'nix/systems')
-rw-r--r-- | nix/systems/installer/default.nix | 14 |
1 files changed, 13 insertions, 1 deletions
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 '') ]; |