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 in
{ {
nixosModules = { nixosModules =
inherit (impermanence.nixosModules) impermanence; { inherit (impermanence.nixosModules) impermanence; } //
nixpkgs.lib.mapAttrs'
alacritty = import ./modules/alacritty.nix; (name: type: {
baseline = import ./modules/baseline.nix; name = if (type == "regular") then (nixpkgs.lib.removeSuffix ".nix" name) else name;
cli = import ./modules/cli.nix; value = import (./modules + "/${name}");
desktop = import ./modules/desktop.nix; })
gnome = import ./modules/gnome.nix; (builtins.readDir ./modules);
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;
};
nixosModule = { pkgs, ... }: { nixosModule = { pkgs, ... }: {
imports = builtins.attrValues self.nixosModules; 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 ];
};
}