Use nixosModules and homeManagerModules for config
This commit is contained in:
parent
88a054f3b4
commit
2de0e1a2d6
46 changed files with 151 additions and 190 deletions
|
@ -3,9 +3,9 @@
|
|||
with lib;
|
||||
|
||||
{
|
||||
options.features.desktop.autorandr.enable = mkEnableOption "Enable autorandr";
|
||||
options.nixosModules.autorandr.enable = mkEnableOption "Enable autorandr";
|
||||
|
||||
config = mkIf config.features.desktop.autorandr.enable {
|
||||
config = mkIf config.nixosModules.autorandr.enable {
|
||||
services.autorandr = {
|
||||
enable = true;
|
||||
|
||||
|
|
|
@ -8,9 +8,9 @@
|
|||
with lib;
|
||||
|
||||
{
|
||||
options.features.desktop.dwm.enable = mkEnableOption "Enable dwm";
|
||||
options.nixosModules.dwm.enable = mkEnableOption "Enable dwm";
|
||||
|
||||
config = mkIf config.features.desktop.dwm.enable {
|
||||
config = mkIf config.nixosModules.dwm.enable {
|
||||
services = {
|
||||
dwm-status = {
|
||||
enable = true;
|
||||
|
|
|
@ -8,9 +8,9 @@
|
|||
with lib;
|
||||
|
||||
{
|
||||
options.features.desktop.peek.enable = mkEnableOption "Enable peek";
|
||||
options.nixosModules.peek.enable = mkEnableOption "Enable peek";
|
||||
|
||||
config = mkIf config.features.desktop.peek.enable {
|
||||
config = mkIf config.nixosModules.peek.enable {
|
||||
environment.systemPackages = with pkgs; [ peek ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -9,9 +9,9 @@
|
|||
with lib;
|
||||
|
||||
{
|
||||
options.features.desktop.screenkey.enable = mkEnableOption "Enable screenkey";
|
||||
options.nixosModules.screenkey.enable = mkEnableOption "Enable screenkey";
|
||||
|
||||
config = mkIf config.features.desktop.screenkey.enable {
|
||||
config = mkIf config.nixosModules.screenkey.enable {
|
||||
environment.systemPackages = with pkgs; [ screenkey ];
|
||||
|
||||
home-manager.users.${username}.xdg.configFile."screenkey.json".text = builtins.toJSON {
|
||||
|
|
|
@ -8,9 +8,9 @@
|
|||
with lib;
|
||||
|
||||
{
|
||||
options.features.desktop.thunar.enable = mkEnableOption "Enable thunar";
|
||||
options.nixosModules.thunar.enable = mkEnableOption "Enable thunar";
|
||||
|
||||
config = mkIf config.features.desktop.thunar.enable {
|
||||
config = mkIf config.nixosModules.thunar.enable {
|
||||
programs.thunar = {
|
||||
enable = true;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue