changed cfg -> this
This commit is contained in:
		
							parent
							
								
									374135584c
								
							
						
					
					
						commit
						f4dfcb7358
					
				| 
						 | 
					@ -1,8 +1,8 @@
 | 
				
			||||||
{ config, lib, pkgs, ... }:
 | 
					{ config, lib, pkgs, ... }:
 | 
				
			||||||
let
 | 
					let
 | 
				
			||||||
  cfg = config.my.application.onepassword;
 | 
					  this = config.my.application.onepassword;
 | 
				
			||||||
  graphical = config.my.graphical;
 | 
					  graphical = config.my.graphical;
 | 
				
			||||||
  enable = (cfg.gui.enable || cfg.cli.enable);
 | 
					  enable = (this.gui.enable || this.cli.enable);
 | 
				
			||||||
in with lib; {
 | 
					in with lib; {
 | 
				
			||||||
  options = {
 | 
					  options = {
 | 
				
			||||||
    my.application.onepassword.gui.enable = mkOption {
 | 
					    my.application.onepassword.gui.enable = mkOption {
 | 
				
			||||||
| 
						 | 
					@ -10,16 +10,16 @@ in with lib; {
 | 
				
			||||||
      type = with types; bool;
 | 
					      type = with types; bool;
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
    my.application.onepassword.cli.enable = mkOption {
 | 
					    my.application.onepassword.cli.enable = mkOption {
 | 
				
			||||||
      default = (graphical.enable || cfg.gui.enable);
 | 
					      default = (graphical.enable || this.gui.enable);
 | 
				
			||||||
      type = with types; bool;
 | 
					      type = with types; bool;
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  config = mkIf enable (mkMerge [
 | 
					  config = mkIf enable (mkMerge [
 | 
				
			||||||
    (mkIf cfg.cli.enable {
 | 
					    (mkIf this.cli.enable {
 | 
				
			||||||
      home-manager.users.james.home.packages = with pkgs; [ _1password ];
 | 
					      home-manager.users.james.home.packages = with pkgs; [ _1password ];
 | 
				
			||||||
    })
 | 
					    })
 | 
				
			||||||
    (mkIf cfg.gui.enable {
 | 
					    (mkIf this.gui.enable {
 | 
				
			||||||
      home-manager.users.james = {
 | 
					      home-manager.users.james = {
 | 
				
			||||||
        home.packages = with pkgs; [ _1password-gui ];
 | 
					        home.packages = with pkgs; [ _1password-gui ];
 | 
				
			||||||
      };
 | 
					      };
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,6 @@
 | 
				
			||||||
{ config, lib, pkgs, ... }:
 | 
					{ config, lib, pkgs, ... }:
 | 
				
			||||||
let
 | 
					let
 | 
				
			||||||
  cfg = config.my.application.blueman;
 | 
					  this = config.my.application.blueman;
 | 
				
			||||||
  graphical = config.my.graphical;
 | 
					  graphical = config.my.graphical;
 | 
				
			||||||
in with lib; {
 | 
					in with lib; {
 | 
				
			||||||
  options = {
 | 
					  options = {
 | 
				
			||||||
| 
						 | 
					@ -10,7 +10,7 @@ in with lib; {
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  config = mkIf cfg.enable {
 | 
					  config = mkIf this.enable {
 | 
				
			||||||
    hardware.bluetooth.enable = true;
 | 
					    hardware.bluetooth.enable = true;
 | 
				
			||||||
    home-manager.users.james = { home.packages = with pkgs; [ blueman ]; };
 | 
					    home-manager.users.james = { home.packages = with pkgs; [ blueman ]; };
 | 
				
			||||||
    fileSystems."var/lib/bluetooth" = {
 | 
					    fileSystems."var/lib/bluetooth" = {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,6 @@
 | 
				
			||||||
{ options, config, lib, pkgs, ... }:
 | 
					{ options, config, lib, pkgs, ... }:
 | 
				
			||||||
let
 | 
					let
 | 
				
			||||||
  cfg = config.my.application.dunst;
 | 
					  this = config.my.application.dunst;
 | 
				
			||||||
  i3 = config.my.application.i3;
 | 
					  i3 = config.my.application.i3;
 | 
				
			||||||
  graphical = config.my.graphical;
 | 
					  graphical = config.my.graphical;
 | 
				
			||||||
in with lib; {
 | 
					in with lib; {
 | 
				
			||||||
| 
						 | 
					@ -11,7 +11,7 @@ in with lib; {
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  config = mkIf cfg.enable {
 | 
					  config = mkIf this.enable {
 | 
				
			||||||
    home-manager.users.james = {
 | 
					    home-manager.users.james = {
 | 
				
			||||||
      systemd.user.startServices = true;
 | 
					      systemd.user.startServices = true;
 | 
				
			||||||
      services.dunst.enable = true;
 | 
					      services.dunst.enable = true;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -2,7 +2,7 @@
 | 
				
			||||||
# TODO Still need the following dependecies
 | 
					# TODO Still need the following dependecies
 | 
				
			||||||
#  - Language tools (grammer)
 | 
					#  - Language tools (grammer)
 | 
				
			||||||
let
 | 
					let
 | 
				
			||||||
  cfg = config.my.application.emacs;
 | 
					  this = config.my.application.emacs;
 | 
				
			||||||
  graphical = config.my.graphical;
 | 
					  graphical = config.my.graphical;
 | 
				
			||||||
in with lib; {
 | 
					in with lib; {
 | 
				
			||||||
  options = {
 | 
					  options = {
 | 
				
			||||||
| 
						 | 
					@ -12,7 +12,7 @@ in with lib; {
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  config = mkIf cfg.enable {
 | 
					  config = mkIf this.enable {
 | 
				
			||||||
    nixpkgs.overlays = [ inputs.emacs-overlay.overlay ];
 | 
					    nixpkgs.overlays = [ inputs.emacs-overlay.overlay ];
 | 
				
			||||||
    home-manager.users.james = {
 | 
					    home-manager.users.james = {
 | 
				
			||||||
      programs.emacs = {
 | 
					      programs.emacs = {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,6 @@
 | 
				
			||||||
{ config, pkgs, lib, ... }:
 | 
					{ config, pkgs, lib, ... }:
 | 
				
			||||||
let
 | 
					let
 | 
				
			||||||
  cfg = config.my.application.firefox.tridactyl;
 | 
					  this = config.my.application.firefox.tridactyl;
 | 
				
			||||||
  firefox = config.my.application.firefox;
 | 
					  firefox = config.my.application.firefox;
 | 
				
			||||||
in with lib; {
 | 
					in with lib; {
 | 
				
			||||||
  options = {
 | 
					  options = {
 | 
				
			||||||
| 
						 | 
					@ -11,9 +11,9 @@ in with lib; {
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  config = mkIf cfg.enable {
 | 
					  config = mkIf this.enable {
 | 
				
			||||||
    # firefox.pkg =
 | 
					    # firefox.pkg =
 | 
				
			||||||
    #   pkgs.firefox.override { cfg = { enableTridactylNative = true; }; };
 | 
					    #   pkgs.firefox.override { this = { enableTridactylNative = true; }; };
 | 
				
			||||||
    home-manager.users.james = {
 | 
					    home-manager.users.james = {
 | 
				
			||||||
      programs.firefox = {
 | 
					      programs.firefox = {
 | 
				
			||||||
        extensions = with pkgs.nur.repos.rycee.firefox-addons; [ tridactyl ];
 | 
					        extensions = with pkgs.nur.repos.rycee.firefox-addons; [ tridactyl ];
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,6 @@
 | 
				
			||||||
{ options, config, lib, pkgs, ... }:
 | 
					{ options, config, lib, pkgs, ... }:
 | 
				
			||||||
let
 | 
					let
 | 
				
			||||||
  cfg = config.my.application.gammastep;
 | 
					  this = config.my.application.gammastep;
 | 
				
			||||||
  i3 = config.my.application.i3;
 | 
					  i3 = config.my.application.i3;
 | 
				
			||||||
in with lib; {
 | 
					in with lib; {
 | 
				
			||||||
  options = {
 | 
					  options = {
 | 
				
			||||||
| 
						 | 
					@ -10,7 +10,7 @@ in with lib; {
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  config = mkIf cfg.enable {
 | 
					  config = mkIf this.enable {
 | 
				
			||||||
    home-manager.users.james = {
 | 
					    home-manager.users.james = {
 | 
				
			||||||
      services.gammastep = {
 | 
					      services.gammastep = {
 | 
				
			||||||
        enable = true;
 | 
					        enable = true;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,6 @@
 | 
				
			||||||
{ config, lib, pkgs, ... }:
 | 
					{ config, lib, pkgs, ... }:
 | 
				
			||||||
let
 | 
					let
 | 
				
			||||||
  cfg = config.my.application.i3;
 | 
					  this = config.my.application.i3;
 | 
				
			||||||
  graphical = config.my.graphical;
 | 
					  graphical = config.my.graphical;
 | 
				
			||||||
  modifier = "Mod4";
 | 
					  modifier = "Mod4";
 | 
				
			||||||
  wallpaper = pkgs.fetchurl {
 | 
					  wallpaper = pkgs.fetchurl {
 | 
				
			||||||
| 
						 | 
					@ -16,7 +16,7 @@ in with lib; {
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  config = mkIf cfg.enable {
 | 
					  config = mkIf this.enable {
 | 
				
			||||||
    programs.dconf.enable = true;
 | 
					    programs.dconf.enable = true;
 | 
				
			||||||
    programs.light.enable = true;
 | 
					    programs.light.enable = true;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,6 @@
 | 
				
			||||||
{ config, lib, pkgs, ... }:
 | 
					{ config, lib, pkgs, ... }:
 | 
				
			||||||
let
 | 
					let
 | 
				
			||||||
  cfg = config.my.application.i3.picom;
 | 
					  this = config.my.application.i3.picom;
 | 
				
			||||||
  i3 = config.my.application.i3;
 | 
					  i3 = config.my.application.i3;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
in with lib; {
 | 
					in with lib; {
 | 
				
			||||||
| 
						 | 
					@ -11,7 +11,7 @@ in with lib; {
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  config = mkIf cfg.enable {
 | 
					  config = mkIf this.enable {
 | 
				
			||||||
    services.picom = {
 | 
					    services.picom = {
 | 
				
			||||||
      enable = true;
 | 
					      enable = true;
 | 
				
			||||||
      backend = "glx";
 | 
					      backend = "glx";
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,6 @@
 | 
				
			||||||
{ config, lib, pkgs, ... }:
 | 
					{ config, lib, pkgs, ... }:
 | 
				
			||||||
let
 | 
					let
 | 
				
			||||||
  cfg = config.my.application.i3.polybar;
 | 
					  this = config.my.application.i3.polybar;
 | 
				
			||||||
  i3 = config.my.application.i3;
 | 
					  i3 = config.my.application.i3;
 | 
				
			||||||
  colors = {
 | 
					  colors = {
 | 
				
			||||||
    alert = "#A54242";
 | 
					    alert = "#A54242";
 | 
				
			||||||
| 
						 | 
					@ -19,7 +19,7 @@ in with lib; {
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  config = mkIf cfg.enable {
 | 
					  config = mkIf this.enable {
 | 
				
			||||||
    home-manager.users.james = {
 | 
					    home-manager.users.james = {
 | 
				
			||||||
      services.polybar = {
 | 
					      services.polybar = {
 | 
				
			||||||
        enable = true;
 | 
					        enable = true;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,6 @@
 | 
				
			||||||
{ config, lib, pkgs, ... }:
 | 
					{ config, lib, pkgs, ... }:
 | 
				
			||||||
let
 | 
					let
 | 
				
			||||||
  cfg = config.my.application.i3.rofi;
 | 
					  this = config.my.application.i3.rofi;
 | 
				
			||||||
  i3 = config.my.application.i3;
 | 
					  i3 = config.my.application.i3;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
in with lib; {
 | 
					in with lib; {
 | 
				
			||||||
| 
						 | 
					@ -11,7 +11,7 @@ in with lib; {
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  config = mkIf cfg.enable {
 | 
					  config = mkIf this.enable {
 | 
				
			||||||
    home-manager.users.james = {
 | 
					    home-manager.users.james = {
 | 
				
			||||||
      home.packages = with pkgs; [ rofi-systemd rofi-power-menu ];
 | 
					      home.packages = with pkgs; [ rofi-systemd rofi-power-menu ];
 | 
				
			||||||
      programs.rofi = {
 | 
					      programs.rofi = {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,6 @@
 | 
				
			||||||
{ config, lib, pkgs, ... }:
 | 
					{ config, lib, pkgs, ... }:
 | 
				
			||||||
let
 | 
					let
 | 
				
			||||||
  cfg = config.my.application.kdeconnect;
 | 
					  this = config.my.application.kdeconnect;
 | 
				
			||||||
  graphical = config.my.graphical;
 | 
					  graphical = config.my.graphical;
 | 
				
			||||||
in with lib; {
 | 
					in with lib; {
 | 
				
			||||||
  options = {
 | 
					  options = {
 | 
				
			||||||
| 
						 | 
					@ -10,7 +10,7 @@ in with lib; {
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  config = mkIf cfg.enable {
 | 
					  config = mkIf this.enable {
 | 
				
			||||||
    # home-manager.users.james = {
 | 
					    # home-manager.users.james = {
 | 
				
			||||||
    #   services.kdeconnect = {
 | 
					    #   services.kdeconnect = {
 | 
				
			||||||
    #     indicator = true;
 | 
					    #     indicator = true;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,6 @@
 | 
				
			||||||
{ config, lib, pkgs, ... }:
 | 
					{ config, lib, pkgs, ... }:
 | 
				
			||||||
let
 | 
					let
 | 
				
			||||||
  cfg = config.my.application.kitty;
 | 
					  this = config.my.application.kitty;
 | 
				
			||||||
  graphical = config.my.graphical;
 | 
					  graphical = config.my.graphical;
 | 
				
			||||||
in with lib; {
 | 
					in with lib; {
 | 
				
			||||||
  options = {
 | 
					  options = {
 | 
				
			||||||
| 
						 | 
					@ -10,7 +10,7 @@ in with lib; {
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  config = mkIf cfg.enable {
 | 
					  config = mkIf this.enable {
 | 
				
			||||||
    home-manager.users.james = {
 | 
					    home-manager.users.james = {
 | 
				
			||||||
      home.packages = with pkgs; [ kitty ];
 | 
					      home.packages = with pkgs; [ kitty ];
 | 
				
			||||||
      programs.kitty = {
 | 
					      programs.kitty = {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,6 @@
 | 
				
			||||||
{ config, lib, pkgs, ... }:
 | 
					{ config, lib, pkgs, ... }:
 | 
				
			||||||
let
 | 
					let
 | 
				
			||||||
  cfg = config.my.application.media;
 | 
					  this = config.my.application.media;
 | 
				
			||||||
  graphical = config.my.graphical;
 | 
					  graphical = config.my.graphical;
 | 
				
			||||||
in with lib; {
 | 
					in with lib; {
 | 
				
			||||||
  options = {
 | 
					  options = {
 | 
				
			||||||
| 
						 | 
					@ -10,7 +10,7 @@ in with lib; {
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  config = mkIf cfg.enable {
 | 
					  config = mkIf this.enable {
 | 
				
			||||||
    home-manager.users.james = {
 | 
					    home-manager.users.james = {
 | 
				
			||||||
      programs.mpv = {
 | 
					      programs.mpv = {
 | 
				
			||||||
        enable = true;
 | 
					        enable = true;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,6 @@
 | 
				
			||||||
{ config, lib, pkgs, ... }:
 | 
					{ config, lib, pkgs, ... }:
 | 
				
			||||||
let
 | 
					let
 | 
				
			||||||
  cfg = config.my.application.nextcloud;
 | 
					  this = config.my.application.nextcloud;
 | 
				
			||||||
  graphical = config.my.graphical;
 | 
					  graphical = config.my.graphical;
 | 
				
			||||||
in with lib; {
 | 
					in with lib; {
 | 
				
			||||||
  options = {
 | 
					  options = {
 | 
				
			||||||
| 
						 | 
					@ -10,7 +10,7 @@ in with lib; {
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  config = mkIf cfg.enable {
 | 
					  config = mkIf this.enable {
 | 
				
			||||||
    home-manager.users.james = {
 | 
					    home-manager.users.james = {
 | 
				
			||||||
      home.packages = with pkgs; [ nextcloud-client ];
 | 
					      home.packages = with pkgs; [ nextcloud-client ];
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,6 @@
 | 
				
			||||||
{ config, lib, pkgs, ... }:
 | 
					{ config, lib, pkgs, ... }:
 | 
				
			||||||
let
 | 
					let
 | 
				
			||||||
  cfg = config.my.application.spotify;
 | 
					  this = config.my.application.spotify;
 | 
				
			||||||
  graphical = config.my.graphical;
 | 
					  graphical = config.my.graphical;
 | 
				
			||||||
in with lib; {
 | 
					in with lib; {
 | 
				
			||||||
  options = {
 | 
					  options = {
 | 
				
			||||||
| 
						 | 
					@ -10,7 +10,7 @@ in with lib; {
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  config = mkIf cfg.enable {
 | 
					  config = mkIf this.enable {
 | 
				
			||||||
    home-manager.users.james = { home.packages = with pkgs; [ spotify ]; };
 | 
					    home-manager.users.james = { home.packages = with pkgs; [ spotify ]; };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # Local discovery - https://nixos.wiki/wiki/Spotify
 | 
					    # Local discovery - https://nixos.wiki/wiki/Spotify
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,6 @@
 | 
				
			||||||
{ config, lib, pkgs, ... }:
 | 
					{ config, lib, pkgs, ... }:
 | 
				
			||||||
let
 | 
					let
 | 
				
			||||||
  cfg = config.my.application.zathura;
 | 
					  this = config.my.application.zathura;
 | 
				
			||||||
  graphical = config.my.graphical;
 | 
					  graphical = config.my.graphical;
 | 
				
			||||||
in with lib; {
 | 
					in with lib; {
 | 
				
			||||||
  options = {
 | 
					  options = {
 | 
				
			||||||
| 
						 | 
					@ -10,7 +10,7 @@ in with lib; {
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  config = mkIf cfg.enable {
 | 
					  config = mkIf this.enable {
 | 
				
			||||||
    home-manager.users.james = { programs.zathura = { enable = true; }; };
 | 
					    home-manager.users.james = { programs.zathura = { enable = true; }; };
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,6 @@
 | 
				
			||||||
{ config, lib, pkgs, ... }:
 | 
					{ config, lib, pkgs, ... }:
 | 
				
			||||||
let
 | 
					let
 | 
				
			||||||
  cfg = config.my.application.zeal;
 | 
					  this = config.my.application.zeal;
 | 
				
			||||||
  graphical = config.my.graphical;
 | 
					  graphical = config.my.graphical;
 | 
				
			||||||
in with lib; {
 | 
					in with lib; {
 | 
				
			||||||
  options = {
 | 
					  options = {
 | 
				
			||||||
| 
						 | 
					@ -10,7 +10,7 @@ in with lib; {
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  config = mkIf cfg.enable {
 | 
					  config = mkIf this.enable {
 | 
				
			||||||
    home-manager.users.james.home.packages = with pkgs; [ zeal ];
 | 
					    home-manager.users.james.home.packages = with pkgs; [ zeal ];
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,6 @@
 | 
				
			||||||
{ config, lib, pkgs, ... }:
 | 
					{ config, lib, pkgs, ... }:
 | 
				
			||||||
let
 | 
					let
 | 
				
			||||||
  cfg = config.my.lang.bash;
 | 
					  this = config.my.lang.bash;
 | 
				
			||||||
  graphical = config.my.graphical;
 | 
					  graphical = config.my.graphical;
 | 
				
			||||||
in with lib; {
 | 
					in with lib; {
 | 
				
			||||||
  options = {
 | 
					  options = {
 | 
				
			||||||
| 
						 | 
					@ -10,7 +10,7 @@ in with lib; {
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  config = mkIf cfg.enable {
 | 
					  config = mkIf this.enable {
 | 
				
			||||||
    home-manager.users.james = {
 | 
					    home-manager.users.james = {
 | 
				
			||||||
      home.packages = with pkgs; [
 | 
					      home.packages = with pkgs; [
 | 
				
			||||||
        nodePackages.bash-language-server
 | 
					        nodePackages.bash-language-server
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,6 @@
 | 
				
			||||||
{ config, lib, pkgs, ... }:
 | 
					{ config, lib, pkgs, ... }:
 | 
				
			||||||
let
 | 
					let
 | 
				
			||||||
  cfg = config.my.lang.golang;
 | 
					  this = config.my.lang.golang;
 | 
				
			||||||
  graphical = config.my.graphical;
 | 
					  graphical = config.my.graphical;
 | 
				
			||||||
in with lib; {
 | 
					in with lib; {
 | 
				
			||||||
  options = {
 | 
					  options = {
 | 
				
			||||||
| 
						 | 
					@ -10,7 +10,7 @@ in with lib; {
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  config = mkIf cfg.enable {
 | 
					  config = mkIf this.enable {
 | 
				
			||||||
    home-manager.users.james = {
 | 
					    home-manager.users.james = {
 | 
				
			||||||
      programs.go = {
 | 
					      programs.go = {
 | 
				
			||||||
        enable = true;
 | 
					        enable = true;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,6 @@
 | 
				
			||||||
{ config, lib, pkgs, ... }:
 | 
					{ config, lib, pkgs, ... }:
 | 
				
			||||||
let
 | 
					let
 | 
				
			||||||
  cfg = config.my.lang.bash;
 | 
					  this = config.my.lang.bash;
 | 
				
			||||||
  graphical = config.my.graphical;
 | 
					  graphical = config.my.graphical;
 | 
				
			||||||
in with lib; {
 | 
					in with lib; {
 | 
				
			||||||
  options = {
 | 
					  options = {
 | 
				
			||||||
| 
						 | 
					@ -10,7 +10,7 @@ in with lib; {
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  config = mkIf cfg.enable {
 | 
					  config = mkIf this.enable {
 | 
				
			||||||
    home-manager.users.james = {
 | 
					    home-manager.users.james = {
 | 
				
			||||||
      home.packages = with pkgs; [
 | 
					      home.packages = with pkgs; [
 | 
				
			||||||
        nodePackages.npm
 | 
					        nodePackages.npm
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
{ config, lib, pkgs, ... }:
 | 
					{ config, lib, pkgs, ... }:
 | 
				
			||||||
let cfg = config.my.system.boot;
 | 
					let this = config.my.system.boot;
 | 
				
			||||||
in with lib; {
 | 
					in with lib; {
 | 
				
			||||||
  options.my.system.boot.enable = mkOption {
 | 
					  options.my.system.boot.enable = mkOption {
 | 
				
			||||||
    default = true;
 | 
					    default = true;
 | 
				
			||||||
| 
						 | 
					@ -7,7 +7,7 @@ in with lib; {
 | 
				
			||||||
    description = "Is there a physical power button?";
 | 
					    description = "Is there a physical power button?";
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  config = mkIf cfg.enable {
 | 
					  config = mkIf this.enable {
 | 
				
			||||||
    boot = {
 | 
					    boot = {
 | 
				
			||||||
      # Enable bootloader & clear /tmp on boot.
 | 
					      # Enable bootloader & clear /tmp on boot.
 | 
				
			||||||
      cleanTmpDir = true;
 | 
					      cleanTmpDir = true;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,6 @@
 | 
				
			||||||
{ config, lib, pkgs, ... }:
 | 
					{ config, lib, pkgs, ... }:
 | 
				
			||||||
let
 | 
					let
 | 
				
			||||||
  cfg = config.my.system.displaymanager;
 | 
					  this = config.my.system.displaymanager;
 | 
				
			||||||
  graphical = config.my.graphical;
 | 
					  graphical = config.my.graphical;
 | 
				
			||||||
in with lib; {
 | 
					in with lib; {
 | 
				
			||||||
  options = {
 | 
					  options = {
 | 
				
			||||||
| 
						 | 
					@ -10,7 +10,7 @@ in with lib; {
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  config = mkIf cfg.enable {
 | 
					  config = mkIf this.enable {
 | 
				
			||||||
    services.xserver = {
 | 
					    services.xserver = {
 | 
				
			||||||
      enable = true;
 | 
					      enable = true;
 | 
				
			||||||
      displayManager = { gdm.enable = true; };
 | 
					      displayManager = { gdm.enable = true; };
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,6 @@
 | 
				
			||||||
{ config, lib, pkgs, ... }:
 | 
					{ config, lib, pkgs, ... }:
 | 
				
			||||||
let
 | 
					let
 | 
				
			||||||
  cfg = config.system.flatpak;
 | 
					  this = config.system.flatpak;
 | 
				
			||||||
  graphical = config.my.graphical;
 | 
					  graphical = config.my.graphical;
 | 
				
			||||||
in with lib; {
 | 
					in with lib; {
 | 
				
			||||||
  options = {
 | 
					  options = {
 | 
				
			||||||
| 
						 | 
					@ -10,7 +10,7 @@ in with lib; {
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  config = mkIf cfg.enable {
 | 
					  config = mkIf this.enable {
 | 
				
			||||||
    services.flatpak.enable = true;
 | 
					    services.flatpak.enable = true;
 | 
				
			||||||
    xdg.portal = {
 | 
					    xdg.portal = {
 | 
				
			||||||
      enable = true;
 | 
					      enable = true;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
{ config, lib, pkgs, ... }:
 | 
					{ config, lib, pkgs, ... }:
 | 
				
			||||||
let cfg = config.my.system.keyring;
 | 
					let this = config.my.system.keyring;
 | 
				
			||||||
in with lib; {
 | 
					in with lib; {
 | 
				
			||||||
  options.my = {
 | 
					  options.my = {
 | 
				
			||||||
    system.keyring.enable = mkOption {
 | 
					    system.keyring.enable = mkOption {
 | 
				
			||||||
| 
						 | 
					@ -9,5 +9,5 @@ in with lib; {
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
  # options.my.system.keyring.enable = mkEnableOption "keyring";
 | 
					  # options.my.system.keyring.enable = mkEnableOption "keyring";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  config = mkIf cfg.enable { services.gnome.gnome-keyring.enable = true; };
 | 
					  config = mkIf this.enable { services.gnome.gnome-keyring.enable = true; };
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,9 +1,9 @@
 | 
				
			||||||
{ config, lib, pkgs, ... }:
 | 
					{ config, lib, pkgs, ... }:
 | 
				
			||||||
let cfg = config.my.system.power;
 | 
					let this = config.my.system.power;
 | 
				
			||||||
in with lib; {
 | 
					in with lib; {
 | 
				
			||||||
  options.my.system.power.enable = mkEnableOption "Power Management";
 | 
					  options.my.system.power.enable = mkEnableOption "Power Management";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  config = mkIf cfg.enable {
 | 
					  config = mkIf this.enable {
 | 
				
			||||||
    # fan control modules
 | 
					    # fan control modules
 | 
				
			||||||
    boot.extraModprobeConfig = ''
 | 
					    boot.extraModprobeConfig = ''
 | 
				
			||||||
      options thinkpad_acpi fan_control=1 experimental=1
 | 
					      options thinkpad_acpi fan_control=1 experimental=1
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,11 +1,11 @@
 | 
				
			||||||
{ config, lib, pkgs, ... }:
 | 
					{ config, lib, pkgs, ... }:
 | 
				
			||||||
let
 | 
					let
 | 
				
			||||||
  cfg = config.my.system.yubikey;
 | 
					  this = config.my.system.yubikey;
 | 
				
			||||||
  graphical = config.my.graphical;
 | 
					  graphical = config.my.graphical;
 | 
				
			||||||
in with lib; {
 | 
					in with lib; {
 | 
				
			||||||
  options.my.system.yubikey.enable = mkEnableOption "Yubikey";
 | 
					  options.my.system.yubikey.enable = mkEnableOption "Yubikey";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  config = mkIf cfg.enable {
 | 
					  config = mkIf this.enable {
 | 
				
			||||||
    services.udev.packages = with pkgs; [ yubikey-personalization ];
 | 
					    services.udev.packages = with pkgs; [ yubikey-personalization ];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    environment.shellInit = ''
 | 
					    environment.shellInit = ''
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,9 +1,9 @@
 | 
				
			||||||
{ config, lib, pkgs, ... }:
 | 
					{ config, lib, pkgs, ... }:
 | 
				
			||||||
let cfg = config.my.system.zfs;
 | 
					let this = config.my.system.zfs;
 | 
				
			||||||
in with lib; {
 | 
					in with lib; {
 | 
				
			||||||
  options.my.system.zfs.enable = mkEnableOption "zfs";
 | 
					  options.my.system.zfs.enable = mkEnableOption "zfs";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  config = mkIf cfg.enable {
 | 
					  config = mkIf this.enable {
 | 
				
			||||||
    boot = {
 | 
					    boot = {
 | 
				
			||||||
      supportedFilesystems = [ "zfs" ];
 | 
					      supportedFilesystems = [ "zfs" ];
 | 
				
			||||||
      zfs = {
 | 
					      zfs = {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in New Issue
	
	Block a user