summary refs log tree commit diff stats
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--flake.nix28
1 files changed, 17 insertions, 11 deletions
diff --git a/flake.nix b/flake.nix
index 23076c6..98b17de 100644
--- a/flake.nix
+++ b/flake.nix
@@ -3,6 +3,7 @@
   # inputs {{{
   inputs = {
     nixpkgs.url = "github:NixOs/nixpkgs/nixos-23.05";
+    unstable.url = "github:NixOs/nixpkgs/nixos-unstable";
     home-manager = {
       url = "github:nix-community/home-manager/release-23.05";
       inputs.nixpkgs.follows = "nixpkgs";
@@ -72,14 +73,17 @@
         flake-utils.follows = "flake-utils";
       };
     };
-    grades = {
-      url = "git+https://codeberg.org/soispha/grades.git";
-      inputs = {
-        nixpkgs.follows = "nixpkgs";
-        crane.follows = "crane";
-        flake-utils.follows = "flake-utils";
-        rust-overlay.follows = "rust-overlay";
-      };
+    #grades = {
+    #     url = "git+https://codeberg.org/soispha/grades.git";
+    #     inputs = {
+    #       nixpkgs.follows = "unstable";
+    #       crane.follows = "crane";
+    #       flake-utils.follows = "flake-utils";
+    #       rust-overlay.follows = "rust-overlay";
+    #     };
+    #   };
+    polymc = {
+      url = "github:PolyMC/PolyMC";
     };
   };
   #}}}
@@ -91,17 +95,19 @@
     river_init_lesser,
     yambar_cpu,
     yambar_memory,
-    grades,
+    #grades,
+    polymc,
     ...
   } @ attrs: let
     system = "x86_64-linux";
     pkgs = nixpkgs.legacyPackages."${system}";
-
+    
     sysLib = shell_library.lib.${system};
   in {
     nixosConfigurations.thinklappi = nixpkgs.lib.nixosSystem {
       inherit system;
       specialArgs = attrs;
+#nixpkgs.overlays = [ polymc.overlay ];
       modules = [
         ./hosts/thinklappi
         home-manager.nixosModules.home-manager
@@ -110,7 +116,7 @@
             useGlobalPkgs = true;
             useUserPackages = true;
             users.sils = import ./users/sils;
-            extraSpecialArgs = {inherit nixpkgs system sysLib river_init_lesser yambar_cpu yambar_memory grades;};
+            extraSpecialArgs = {inherit pkgs system sysLib river_init_lesser yambar_cpu yambar_memory polymc;};
         };
         }
       ];