]> Untitled Git - monorepo.git/commitdiff
add sounds
authorPreston Pan <ret2pop@gmail.com>
Thu, 16 Jan 2025 10:52:03 +0000 (02:52 -0800)
committerPreston Pan <ret2pop@gmail.com>
Thu, 16 Jan 2025 10:52:03 +0000 (02:52 -0800)
nix/flake.lock
nix/flake.nix
nix/modules/home/mako.nix
nix/systems/installer/default.nix

index 1bfaf2745c05fbcb0addc3ea4bf70331877af7c9..7f4353b64f1c5b6c15923546464b960d0252eb17 100644 (file)
         "nur": "nur",
         "scripts": "scripts",
         "sops-nix": "sops-nix",
+        "sounds": "sounds",
         "wallpapers": "wallpapers"
       }
     },
         "type": "github"
       }
     },
+    "sounds": {
+      "locked": {
+        "lastModified": 1737024247,
+        "narHash": "sha256-OTtqUYIe713ti4vaa8hS1Z0UvD/X4J9XkLzKgl2+RBE=",
+        "owner": "ret2pop",
+        "repo": "sounds",
+        "rev": "9714690a6d216f9c55bfe56969d6e7d98768559f",
+        "type": "github"
+      },
+      "original": {
+        "owner": "ret2pop",
+        "repo": "sounds",
+        "type": "github"
+      }
+    },
     "systems": {
       "locked": {
         "lastModified": 1681028828,
index 787b3a71583a6831d1fdcca2f9547fde0e7b2ccc..6399947e928090a200b08d44e395af4449276308 100644 (file)
@@ -25,6 +25,7 @@
     sops-nix.url = "github:Mic92/sops-nix";
     scripts.url = "github:ret2pop/scripts";
     wallpapers.url = "github:ret2pop/wallpapers";
+    sounds.url = "github:ret2pop/sounds";
   };
 
   outputs = { nixpkgs, home-manager, nur, disko, lanzaboote, sops-nix, ... }@attrs: {
index 2a93508502a89bb6f48fc2451d840f8c7bf76e30..eb70eee7c81fb02bb6105e7da2191d102fa713eb 100644 (file)
@@ -1,4 +1,4 @@
-{ lib, config, ... }:
+{ lib, config, sounds, ... }:
 {
   services.mako = {
     enable = true;
@@ -9,7 +9,7 @@
     font = "Fira Code 10";
     defaultTimeout = 3000;
     extraConfig = ''
-on-notify=exec mpv /home/${config.monorepo.vars.userName}/sounds/notification.wav --no-config --no-video
+on-notify=exec mpv ${sounds}/polite.ogg --no-config --no-video
 '';
   };
 }
index 02f3b7e470c620c25d889cf51a2c2457f54736d5..8b9500985b86cdbb00aa07965a4cd8226ee8e21f 100644 (file)
@@ -26,14 +26,13 @@ if [ "$(id -u)" -eq 0 ]; then
 fi
 ping -q -c1 google.com &>/dev/null && echo "online! Proceeding with the installation..." || nmtui
 cd
-if [ ! -d "$HOME/toughnix/" ]; then
-  git clone https://git.nullring.xyz/monorepo.git
+if [ ! -d "$HOME/monorepo/" ]; then
+  git clone --recurse-submodules https://git.nullring.xyz/monorepo.git
   cd monorepo
   git checkout "${commits.monorepoCommitHash}"
 fi
-vim "$HOME/monorepo/nix/modules/default.nix"
-vim "$HOME/monorepo/nix/modules/vars.nix"
-sudo nix --experimental-features "nix-command flakes" run "github:nix-community/disko/${commits.diskoCommitHash}" -- --mode destroy,format,mount "$HOME/monorepo/nix/systems/desktop/sda-simple.nix"
+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/)/"