changed myOptions to modules
This commit is contained in:
parent
62d0e0591b
commit
5378e5c84a
4 changed files with 10 additions and 10 deletions
|
@ -1,10 +1,10 @@
|
||||||
{pkgs, lib, config, ... }:
|
{pkgs, lib, config, ... }:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.myOptions.programs.i3;
|
cfg = config.modules.programs.i3;
|
||||||
username = config.myOptions.other.system.username;
|
username = config.modules.other.system.username;
|
||||||
mod = "Mod4";
|
mod = "Mod4";
|
||||||
in {
|
in {
|
||||||
options.myOptions.programs.i3.enable = mkEnableOption "i3";
|
options.modules.programs.i3.enable = mkEnableOption "i3";
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{ pkgs, lib, config, callPackage, ... }:
|
{ pkgs, lib, config, callPackage, ... }:
|
||||||
with lib; let
|
with lib; let
|
||||||
username = config.myOptions.other.system.username;
|
username = config.modules.other.system.username;
|
||||||
cfg = config.modules.programs.i3;
|
cfg = config.modules.programs.i3;
|
||||||
in {
|
in {
|
||||||
options.modules.programs.i3.enable = mkEnableOption "i3";
|
options.modules.programs.i3.enable = mkEnableOption "i3";
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.myOptions.programs.ssh;
|
cfg = config.modules.programs.ssh;
|
||||||
username = config.myOptions.other.system.username;
|
username = config.modules.other.system.username;
|
||||||
in {
|
in {
|
||||||
options.myOptions.programs.ssh.enable = mkEnableOption "ssh";
|
options.modules.programs.ssh.enable = mkEnableOption "ssh";
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
programs.ssh = {
|
programs.ssh = {
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.myOptions.programs.ncmpcpp;
|
cfg = config.modules.programs.ncmpcpp;
|
||||||
username = config.myOptions.other.system.username;
|
username = config.modules.other.system.username;
|
||||||
in {
|
in {
|
||||||
options.myOptions.programs.ncmpcpp.enable = mkEnableOption "ncmpcpp";
|
options.modules.programs.ncmpcpp.enable = mkEnableOption "ncmpcpp";
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home-manager.users.${username} = {
|
home-manager.users.${username} = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue