Update config and option names for modules
This commit is contained in:
parent
fe508bd127
commit
bb9b77e2f8
54 changed files with 122 additions and 120 deletions
modules/nixos/core
|
@ -3,10 +3,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.nixosModules.core.bluetooth;
|
||||
cfg = config.features.core.bluetooth;
|
||||
in
|
||||
{
|
||||
options.nixosModules.core.bluetooth.enable = mkEnableOption "Enable bluetooth";
|
||||
options.features.core.bluetooth.enable = mkEnableOption "Enable bluetooth";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
hardware.bluetooth.enable = true;
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.nixosModules.core.openssh;
|
||||
cfg = config.features.core.openssh;
|
||||
in
|
||||
{
|
||||
options.nixosModules.core.openssh.enable = mkEnableOption "Enable openssh";
|
||||
options.features.core.openssh.enable = mkEnableOption "Enable openssh";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.openssh = {
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.nixosModules.core.pipewire;
|
||||
cfg = config.features.core.pipewire;
|
||||
in
|
||||
{
|
||||
options.nixosModules.core.pipewire.enable = mkEnableOption "Enable pipewire";
|
||||
options.features.core.pipewire.enable = mkEnableOption "Enable pipewire";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.pipewire = {
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.nixosModules.core.xbanish;
|
||||
cfg = config.features.core.xbanish;
|
||||
in
|
||||
{
|
||||
options.nixosModules.core.xbanish.enable = mkEnableOption "Enable xbanish";
|
||||
options.features.core.xbanish.enable = mkEnableOption "Enable xbanish";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.xbanish.enable = true;
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.nixosModules.core.zram;
|
||||
cfg = config.features.core.zram;
|
||||
in
|
||||
{
|
||||
options.nixosModules.core.zram.enable = mkEnableOption "Enable zram";
|
||||
options.features.core.zram.enable = mkEnableOption "Enable zram";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
zramSwap = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue