Do not install sway on neelix.
This commit is contained in:
@@ -267,7 +267,7 @@ in
|
||||
];
|
||||
|
||||
options.me = {
|
||||
sway.enabled = lib.mkOption {
|
||||
sway.enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
example = true;
|
||||
@@ -286,7 +286,7 @@ in
|
||||
description = "List of packages to import as sway configs.";
|
||||
};
|
||||
|
||||
config = {
|
||||
config = lib.mkIf (config.me.graphical && config.me.sway.enable) {
|
||||
environment.systemPackages = with pkgs; [
|
||||
alacritty
|
||||
pcmanfm
|
||||
|
||||
@@ -19,7 +19,7 @@ in
|
||||
{
|
||||
imports = [ ];
|
||||
|
||||
config = lib.mkIf config.me.graphical {
|
||||
config = lib.mkIf (config.me.graphical && config.me.sway.enable) {
|
||||
me.swayIncludes = [
|
||||
force_focus_sway_config
|
||||
];
|
||||
|
||||
@@ -16,7 +16,7 @@ in
|
||||
{
|
||||
imports = [ ];
|
||||
|
||||
config = lib.mkIf (config.me.buildingIso) {
|
||||
config = lib.mkIf (config.me.buildingIso && config.me.graphical && config.me.sway.enable) {
|
||||
# Launch a terminal at boot in the live ISO for when hotkeys don't work.
|
||||
me.swayIncludes = [
|
||||
launch_terminal
|
||||
|
||||
@@ -25,7 +25,7 @@ in
|
||||
{
|
||||
imports = [ ];
|
||||
|
||||
config = lib.mkIf config.me.graphical {
|
||||
config = lib.mkIf (config.me.graphical && config.me.sway.enable) {
|
||||
me.swayIncludes = [
|
||||
lockscreen_sway_config
|
||||
];
|
||||
|
||||
@@ -24,7 +24,7 @@ in
|
||||
{
|
||||
imports = [ ];
|
||||
|
||||
config = lib.mkIf config.me.graphical {
|
||||
config = lib.mkIf (config.me.graphical && config.me.sway.enable) {
|
||||
me.swayIncludes = [
|
||||
notification_sway_config
|
||||
];
|
||||
|
||||
@@ -17,7 +17,7 @@ in
|
||||
{
|
||||
imports = [ ];
|
||||
|
||||
config = lib.mkIf config.me.graphical {
|
||||
config = lib.mkIf (config.me.graphical && config.me.sway.enable) {
|
||||
me.swayIncludes = [
|
||||
rofimoji_sway_config
|
||||
];
|
||||
@@ -49,14 +49,14 @@ in
|
||||
})
|
||||
(final: prev: {
|
||||
tofi = pkgs.symlinkJoin {
|
||||
name = "tofi";
|
||||
paths = [ prev.tofi ];
|
||||
buildInputs = [ pkgs.makeWrapper ];
|
||||
postBuild = ''
|
||||
wrapProgram $out/bin/tofi-drun --add-flags --font=${pkgs.source-sans-pro}/share/fonts/opentype/SourceSansPro-Regular.otf --add-flags --config=${./files/tofi-config}
|
||||
wrapProgram $out/bin/tofi --add-flags --config=${./files/tofi-config}
|
||||
'';
|
||||
};
|
||||
name = "tofi";
|
||||
paths = [ prev.tofi ];
|
||||
buildInputs = [ pkgs.makeWrapper ];
|
||||
postBuild = ''
|
||||
wrapProgram $out/bin/tofi-drun --add-flags --font=${pkgs.source-sans-pro}/share/fonts/opentype/SourceSansPro-Regular.otf --add-flags --config=${./files/tofi-config}
|
||||
wrapProgram $out/bin/tofi --add-flags --config=${./files/tofi-config}
|
||||
'';
|
||||
};
|
||||
})
|
||||
];
|
||||
};
|
||||
|
||||
@@ -34,7 +34,7 @@ in
|
||||
{
|
||||
imports = [ ];
|
||||
|
||||
config = lib.mkIf config.me.graphical {
|
||||
config = lib.mkIf (config.me.graphical && config.me.sway.enable) {
|
||||
me.swayIncludes = [
|
||||
screenshot_sway_config
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user