home

My NixOS systems configurations.
Log | Files | Refs | LICENSE

commit 40c4176cc4011dd383be7b13d6f3682b303a4f2d
parent e4f4cb7896fc5f1835d8599b61f03ac8c5d7ef97
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Wed, 27 Jul 2022 14:54:31 +0200

flake.nix: import core only

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Mflake.nix | 7+++----
Msystems/modules/core/default.nix | 2--
Dsystems/modules/core/home-manager.nix | 17-----------------
Dsystems/modules/core/nur.nix | 20--------------------
4 files changed, 3 insertions(+), 43 deletions(-)

diff --git a/flake.nix b/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 diff --git a/systems/modules/core/default.nix b/systems/modules/core/default.nix @@ -1,9 +1,7 @@ { imports = [ ./config.nix - ./home-manager.nix ./nix.nix - ./nur.nix ./users.nix ]; diff --git a/systems/modules/core/home-manager.nix b/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; - }; -} diff --git a/systems/modules/core/nur.nix b/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; }; - }; - }; - }; -}