aboutsummaryrefslogtreecommitdiff
path: root/nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix')
-rw-r--r--nix/modules/configuration.nix1
-rw-r--r--nix/modules/home/user.nix3
-rw-r--r--nix/modules/kubo.nix6
-rw-r--r--nix/modules/sda-simple.nix12
-rw-r--r--nix/systems/installer/default.nix14
5 files changed, 22 insertions, 14 deletions
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
'')
];