mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
shrink modules list
This commit is contained in:
parent
2acec2c1eb
commit
252a9d0e0f
2 changed files with 8 additions and 38 deletions
30
flake.nix
30
flake.nix
|
@ -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;
|
||||
|
|
|
@ -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 ];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue