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
|
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;
|
||||||
|
|
|
@ -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