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
|
@ -3,10 +3,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.nixosModules.cli.docker;
|
||||
cfg = config.features.cli.docker;
|
||||
in
|
||||
{
|
||||
options.nixosModules.cli.docker.enable = mkEnableOption "Enable docker";
|
||||
options.features.cli.docker.enable = mkEnableOption "Enable docker";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
virtualisation = {
|
||||
|
|
|
@ -8,10 +8,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.nixosModules.cli.password-store;
|
||||
cfg = config.features.cli.password-store;
|
||||
in
|
||||
{
|
||||
options.nixosModules.cli.password-store = {
|
||||
options.features.cli.password-store = {
|
||||
enable = mkEnableOption "Enable pass";
|
||||
|
||||
extensions = mkOption {
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.nixosModules.cli.podman;
|
||||
cfg = config.features.cli.podman;
|
||||
in
|
||||
{
|
||||
options.nixosModules.cli.podman.enable = mkEnableOption "Enable podman";
|
||||
options.features.cli.podman.enable = mkEnableOption "Enable podman";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
virtualisation = {
|
||||
|
|
|
@ -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 = {
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.nixosModules.desktop.dconf;
|
||||
cfg = config.features.desktop.dconf;
|
||||
in
|
||||
{
|
||||
options.nixosModules.desktop.dconf.enable = mkEnableOption "Enable dconf";
|
||||
options.features.desktop.dconf.enable = mkEnableOption "Enable dconf";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs.dconf.enable = true;
|
||||
|
|
|
@ -8,10 +8,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.nixosModules.desktop.dwm;
|
||||
cfg = config.features.desktop.dwm;
|
||||
in
|
||||
{
|
||||
options.nixosModules.desktop.dwm.enable = mkEnableOption "Enable dwm";
|
||||
options.features.desktop.dwm.enable = mkEnableOption "Enable dwm";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services = {
|
||||
|
|
|
@ -8,10 +8,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.nixosModules.desktop.fonts;
|
||||
cfg = config.features.desktop.fonts;
|
||||
in
|
||||
{
|
||||
options.nixosModules.desktop.fonts.enable = mkEnableOption "Enable fonts";
|
||||
options.features.desktop.fonts.enable = mkEnableOption "Enable fonts";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
fonts = {
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.nixosModules.desktop.media.makemkv;
|
||||
cfg = config.features.desktop.media.makemkv;
|
||||
in
|
||||
{
|
||||
options.nixosModules.desktop.media.makemkv.enable = mkEnableOption "Enable makemkv";
|
||||
options.features.desktop.media.makemkv.enable = mkEnableOption "Enable makemkv";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
boot.kernelModules = [ "sg" ];
|
||||
|
|
|
@ -8,10 +8,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.nixosModules.desktop.st;
|
||||
cfg = config.features.desktop.st;
|
||||
in
|
||||
{
|
||||
options.nixosModules.desktop.st.enable = mkEnableOption "Enable st";
|
||||
options.features.desktop.st.enable = mkEnableOption "Enable st";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
|
|
|
@ -8,10 +8,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.nixosModules.desktop.thunar;
|
||||
cfg = config.features.desktop.thunar;
|
||||
in
|
||||
{
|
||||
options.nixosModules.desktop.thunar.enable = mkEnableOption "Enable thunar";
|
||||
options.features.desktop.thunar.enable = mkEnableOption "Enable thunar";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs.thunar = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue