Commit 40c4176cc401

Vincent Demeester <vincent@sbr.pm>
2022-07-27 14:54:31
flake.nix: import core only
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent e4f4cb7
Changed files (4)
systems/modules/core/default.nix
@@ -1,9 +1,7 @@
 {
   imports = [
     ./config.nix
-    ./home-manager.nix
     ./nix.nix
-    ./nur.nix
     ./users.nix
   ];
 
systems/modules/core/home-manager.nix
@@ -1,17 +0,0 @@
-{ config, lib, ... }:
-
-with lib;
-let
-  cfg = config.core.home-manager;
-in
-{
-  options = {
-    core.home-manager = {
-      enable = mkOption { type = types.bool; default = true; description = "Enable core.home-manager"; };
-    };
-  };
-  config = mkIf cfg.enable {
-    home-manager.useUserPackages = true;
-    home-manager.useGlobalPkgs = true;
-  };
-}
systems/modules/core/nur.nix
@@ -1,20 +0,0 @@
-{ config, lib, pkgs, ... }:
-
-with lib;
-let
-  cfg = config.core.nur;
-in
-{
-  options = {
-    core.nur = {
-      enable = mkOption { type = types.bool; default = true; description = "Enable core.nur"; };
-    };
-  };
-  config = mkIf cfg.enable {
-    nixpkgs.config = {
-      packageOverrides = pkgs: {
-        nur = (import ../../../nix).nur { inherit pkgs; };
-      };
-    };
-  };
-}
flake.nix
@@ -110,10 +110,9 @@
           buildkit
           # Common modules
           # FIXME: migrate this to elsewhere, or at least split it
-          ./systems/modules/core/config.nix
-          ./systems/modules/core/nix.nix
-          ./systems/modules/core/users.nix
-          ./systems/modules/hardware/sane-extra-config.nixos.nix
+          ./systems/modules/core/default.nix
+          ./systems/modules/hardware/default.nix
+          # ./systems/modules/hardware/sane-extra-config.nixos.nix
           ./systems/modules/profiles/avahi.nix
           ./systems/modules/profiles/base.nix
           ./systems/modules/profiles/builder.nix