shrink modules list

This commit is contained in:
Sean Buckley 2021-09-10 00:42:41 -04:00
parent 2acec2c1eb
commit 252a9d0e0f
2 changed files with 8 additions and 38 deletions

View file

@ -19,28 +19,14 @@
});
in
{
nixosModules = {
inherit (impermanence.nixosModules) impermanence;
alacritty = import ./modules/alacritty.nix;
baseline = import ./modules/baseline.nix;
cli = import ./modules/cli.nix;
desktop = import ./modules/desktop.nix;
gnome = import ./modules/gnome.nix;
gnome-monitor-settings-tweak = import ./modules/gnome-monitor-settings-tweak;
i3 = import ./modules/i3;
mouse-dpi = import ./modules/mouse-dpi.nix;
phpipam = import ./modules/phpipam.nix;
pipewire = import ./modules/pipewire.nix;
plasma = import ./modules/plasma.nix;
profiles = import ./modules/profiles.nix;
scansnap_s1300 = import ./modules/scansnap_s1300.nix;
scroll-boost = import ./modules/scroll-boost;
security-tools = import ./modules/security-tools.nix;
server = import ./modules/server.nix;
status-on-console = import ./modules/status-on-console.nix;
sway = import ./modules/sway.nix;
};
nixosModules =
{ inherit (impermanence.nixosModules) impermanence; } //
nixpkgs.lib.mapAttrs'
(name: type: {
name = if (type == "regular") then (nixpkgs.lib.removeSuffix ".nix" name) else name;
value = import (./modules + "/${name}");
})
(builtins.readDir ./modules);
nixosModule = { pkgs, ... }: {
imports = builtins.attrValues self.nixosModules;

View file

@ -1,16 +0,0 @@
{ config, pkgs, lib, ... }:
let
cfg = config.sconfig._options_name_;
in
{
options.sconfig._options_name_ = lib.mkEnableOption "Do a Barrel Roll";
options.sconfig._options_name_ = lib.mkOption {
default = true;
type = lib.types.bool;
description = "Do a Barrel Roll";
};
config = lib.mkIf cfg {
environment.systemPackages = with pkgs; [ hello ];
};
}