aboutsummaryrefslogtreecommitdiff
path: root/nix/modules
diff options
context:
space:
mode:
Diffstat (limited to 'nix/modules')
-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
4 files changed, 9 insertions, 13 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";