]> Untitled Git - monorepo.git/commitdiff
Modularize configuration more
authorPreston Pan <ret2pop@gmail.com>
Tue, 4 Feb 2025 00:26:41 +0000 (16:26 -0800)
committerPreston Pan <ret2pop@gmail.com>
Tue, 4 Feb 2025 00:26:41 +0000 (16:26 -0800)
agenda.org
config/nix.org
nix/flake.nix
nix/modules/default.nix
nix/systems/affinity/default.nix
nix/systems/continuity/default.nix
nix/systems/spontaneity/default.nix
style.css

index 5ffabf9b16e679b988b3dcf266a8804b840cd451..4a60f8dfa1e7a74a2748975988c375ce000ead5f 100644 (file)
@@ -53,7 +53,10 @@ I want to write another song.
 I want to start making YouTube videos.
 ** TODO [#C] Analogue Computer
 I want to make an analogue computer.
-
+* Academic
+** TODO Statistics
+** TODO QFT
+** TODO GM
 * Chores
 ** DONE [#A] Dishes
 There will be a TODO when I need to do the dishes.
index a3150f4d88a0676d7e1ad676ae692c09ecbbc84c..3139a310f93d813f5bfa1dd30a1bc0291214b475 100644 (file)
@@ -72,7 +72,6 @@ so that adding new configurations that add modifications is made simple.
                { nixpkgs.overlays = [ nur.overlays.default ]; }
                { home-manager.extraSpecialArgs = attrs; }
 
-               ./modules/sda-simple.nix
                ./systems/continuity/default.nix
              ];
            };
@@ -87,7 +86,7 @@ so that adding new configurations that add modifications is made simple.
                sops-nix.nixosModules.sops
                { nixpkgs.overlays = [ nur.overlays.default ]; }
                { home-manager.extraSpecialArgs = attrs; }
-               ./modules/nvme-simple.nix
+
                ./systems/affinity/default.nix
              ];
            };
@@ -102,7 +101,6 @@ so that adding new configurations that add modifications is made simple.
                sops-nix.nixosModules.sops
                { nixpkgs.overlays = [ nur.overlays.default ]; }
                { home-manager.extraSpecialArgs = attrs; }
-            ./modules/vda-simple.nix
             ./systems/spontaneity/default.nix
           ];
            };
@@ -199,7 +197,6 @@ under ~default.nix~ in the ~systems~ folder.
   {
     imports = [
       ./configuration.nix
-      ./home/home.nix
       ./vars.nix
     ];
 
@@ -2613,12 +2610,14 @@ for these configurations.
 ** Continuity
 This is pretty understandable, if you understand all the above.
 #+begin_src nix :tangle ../nix/systems/continuity/default.nix
-{ ... }:
-{
-  imports = [
-    ../../modules/default.nix
-  ];
-}
+  { ... }:
+  {
+    imports = [
+      ../../modules/default.nix
+      ../../modules/home/home.nix
+      ../../modules/sda-simple.nix
+    ];
+  }
 #+end_src
 ** Affinity
 This is my configuration for my workstation. It runs ollama, as well
@@ -2628,6 +2627,8 @@ as several other useful services.
   {
     imports = [
       ../../modules/default.nix
+      ../../modules/home/home.nix
+      ../../modules/nvme-simple.nix
     ];
     config.monorepo = {
       profiles = {
@@ -2646,11 +2647,12 @@ Spontaneity is my VPS instance.
   {
     imports = [
       ../../modules/default.nix
+      ../../modules/vda-simple.nix
     ];
     config.monorepo = {
       profiles = {
-        home.enable = false;
         server.enable = true;
+        home.enable = false;
       };
       vars.hostName = "spontaneity";
     };
index 50febed28d55c350fb9c033ff6f714e8b18b0b6e..950e86a4f8aa6d0a84d49d40d4bd31a48b14469c 100644 (file)
@@ -52,7 +52,6 @@
                { nixpkgs.overlays = [ nur.overlays.default ]; }
                { home-manager.extraSpecialArgs = attrs; }
 
-               ./modules/sda-simple.nix
                ./systems/continuity/default.nix
              ];
            };
@@ -67,7 +66,7 @@
                sops-nix.nixosModules.sops
                { nixpkgs.overlays = [ nur.overlays.default ]; }
                { home-manager.extraSpecialArgs = attrs; }
-               ./modules/nvme-simple.nix
+
                ./systems/affinity/default.nix
              ];
            };
@@ -82,7 +81,6 @@
                sops-nix.nixosModules.sops
                { nixpkgs.overlays = [ nur.overlays.default ]; }
                { home-manager.extraSpecialArgs = attrs; }
-          ./modules/vda-simple.nix
           ./systems/spontaneity/default.nix
         ];
            };
index 42843485ae7241e7f32ba9bfd9556b6bdb03da8c..ad4ccd392dfbb8d68350094976ac5a13b6807651 100644 (file)
@@ -2,7 +2,6 @@
 {
   imports = [
     ./configuration.nix
-    ./home/home.nix
     ./vars.nix
   ];
 
index 205fb11c77963118a90dfba9bcff5dc14b075193..44234409a9b46b7e2c6ebd304d51fd07102e89b7 100644 (file)
@@ -2,6 +2,8 @@
 {
   imports = [
     ../../modules/default.nix
+    ../../modules/home/home.nix
+    ../../modules/nvme-simple.nix
   ];
   config.monorepo = {
     profiles = {
index 3a4043c3b89465126173a554c34f8ef23dbf170a..1bff83ca9652618147cde5bbbc1694feaa88de19 100644 (file)
@@ -2,5 +2,7 @@
 {
   imports = [
     ../../modules/default.nix
+    ../../modules/home/home.nix
+    ../../modules/sda-simple.nix
   ];
 }
index 89b3ce6ac4e84af4070f8ec1e49831234b4cfe5a..bc7ba819b7c1125de236905a2a8c896289148f89 100644 (file)
@@ -2,11 +2,12 @@
 {
   imports = [
     ../../modules/default.nix
+    ../../modules/vda-simple.nix
   ];
   config.monorepo = {
     profiles = {
-      home.enable = false;
       server.enable = true;
+      home.enable = false;
     };
     vars.hostName = "spontaneity";
   };
index 21639b4fd3fba620b581b572c7bd8d7836d316ac..9078304817e0cbb819206066648d12e5bb27ae4c 100644 (file)
--- a/style.css
+++ b/style.css
@@ -219,29 +219,34 @@ pre.src-stem:before {
     -webkit-columns: 2;
     -moz-columns: 2;
 }
+
 .theorem {
     display:block;
     margin-left:10px;
     margin-bottom:20px;
     font-style:normal;
 }
-.theorem:before{
+
+.theorem:before {
     content:"Theorem.\00a0\00a0";
     float:left;
     font-weight:bold;
 }
-.proof{
+
+.proof {
     display:block;
     margin-left:10px;
     margin-bottom:30px;
     font-style:normal;
 }
-.proof:before{
+
+.proof:before {
     content:'Proof.\00a0\00a0';
     float:left;
     font-weight:bold;
 }
-.proof:after{
+
+.proof:after {
     content:"\25FC";
     float:right;
 }
@@ -256,18 +261,18 @@ blockquote {
     position: relative;
     background:#EDEDED;
 }
-blockquote::before{
-  font-family:Arial;
-  content: "\201C";
-  color:#78C0A8;
-  font-size:4em;
-  position: absolute;
-  left: 10px;
-  top:-10px;
+blockquote::before {
+    font-family:Arial;
+    content: "\201C";
+    color:#78C0A8;
+    font-size:4em;
+    position: absolute;
+    left: 10px;
+    top:-10px;
 }
 
 blockquote::after{
-  content: '';
+    content: '';
 }
 /* On smaller screens, where height is less than 450px, change the style of the sidebar (less padding and a smaller font size) */
 @media screen and (max-height: 450px) {