Do not install sway on neelix.
This commit is contained in:
parent
9d49eb9d6a
commit
d0c1bb1b65
@ -27,4 +27,6 @@
|
|||||||
|
|
||||||
me.graphical = true;
|
me.graphical = true;
|
||||||
me.graphicsCardType = "intel";
|
me.graphicsCardType = "intel";
|
||||||
|
|
||||||
|
me.kodi.enable = true;
|
||||||
}
|
}
|
||||||
|
@ -31,4 +31,6 @@
|
|||||||
|
|
||||||
me.graphical = true;
|
me.graphical = true;
|
||||||
me.graphicsCardType = "amd";
|
me.graphicsCardType = "amd";
|
||||||
|
|
||||||
|
me.sway.enable = true;
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
imports = [ ];
|
imports = [ ];
|
||||||
|
|
||||||
options.me = {
|
options.me = {
|
||||||
blank.enabled = lib.mkOption {
|
blank.enable = lib.mkOption {
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
example = true;
|
example = true;
|
||||||
@ -17,7 +17,7 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf config.me.blank.enabled (
|
config = lib.mkIf config.me.blank.enable (
|
||||||
lib.mkMerge [
|
lib.mkMerge [
|
||||||
{
|
{
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
imports = [ ];
|
imports = [ ];
|
||||||
|
|
||||||
options.me = {
|
options.me = {
|
||||||
kodi.enabled = lib.mkOption {
|
kodi.enable = lib.mkOption {
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
example = true;
|
example = true;
|
||||||
@ -17,13 +17,17 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf config.me.kodi.enabled (
|
config = lib.mkIf config.me.kodi.enable (
|
||||||
lib.mkMerge [
|
lib.mkMerge [
|
||||||
{
|
{
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
(lib.mkIf config.me.graphical {
|
(lib.mkIf config.me.graphical {
|
||||||
|
users.extraUsers.kodi.isNormalUser = true;
|
||||||
|
services.cage.user = "kodi";
|
||||||
|
services.cage.program = "${pkgs.kodi-wayland}/bin/kodi-standalone";
|
||||||
|
services.cage.enable = true;
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
@ -267,7 +267,7 @@ in
|
|||||||
];
|
];
|
||||||
|
|
||||||
options.me = {
|
options.me = {
|
||||||
sway.enabled = lib.mkOption {
|
sway.enable = lib.mkOption {
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
example = true;
|
example = true;
|
||||||
@ -286,7 +286,7 @@ in
|
|||||||
description = "List of packages to import as sway configs.";
|
description = "List of packages to import as sway configs.";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = lib.mkIf (config.me.graphical && config.me.sway.enable) {
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
alacritty
|
alacritty
|
||||||
pcmanfm
|
pcmanfm
|
||||||
|
@ -19,7 +19,7 @@ in
|
|||||||
{
|
{
|
||||||
imports = [ ];
|
imports = [ ];
|
||||||
|
|
||||||
config = lib.mkIf config.me.graphical {
|
config = lib.mkIf (config.me.graphical && config.me.sway.enable) {
|
||||||
me.swayIncludes = [
|
me.swayIncludes = [
|
||||||
force_focus_sway_config
|
force_focus_sway_config
|
||||||
];
|
];
|
||||||
|
@ -16,7 +16,7 @@ in
|
|||||||
{
|
{
|
||||||
imports = [ ];
|
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.
|
# Launch a terminal at boot in the live ISO for when hotkeys don't work.
|
||||||
me.swayIncludes = [
|
me.swayIncludes = [
|
||||||
launch_terminal
|
launch_terminal
|
||||||
|
@ -25,7 +25,7 @@ in
|
|||||||
{
|
{
|
||||||
imports = [ ];
|
imports = [ ];
|
||||||
|
|
||||||
config = lib.mkIf config.me.graphical {
|
config = lib.mkIf (config.me.graphical && config.me.sway.enable) {
|
||||||
me.swayIncludes = [
|
me.swayIncludes = [
|
||||||
lockscreen_sway_config
|
lockscreen_sway_config
|
||||||
];
|
];
|
||||||
|
@ -24,7 +24,7 @@ in
|
|||||||
{
|
{
|
||||||
imports = [ ];
|
imports = [ ];
|
||||||
|
|
||||||
config = lib.mkIf config.me.graphical {
|
config = lib.mkIf (config.me.graphical && config.me.sway.enable) {
|
||||||
me.swayIncludes = [
|
me.swayIncludes = [
|
||||||
notification_sway_config
|
notification_sway_config
|
||||||
];
|
];
|
||||||
|
@ -17,7 +17,7 @@ in
|
|||||||
{
|
{
|
||||||
imports = [ ];
|
imports = [ ];
|
||||||
|
|
||||||
config = lib.mkIf config.me.graphical {
|
config = lib.mkIf (config.me.graphical && config.me.sway.enable) {
|
||||||
me.swayIncludes = [
|
me.swayIncludes = [
|
||||||
rofimoji_sway_config
|
rofimoji_sway_config
|
||||||
];
|
];
|
||||||
|
@ -34,7 +34,7 @@ in
|
|||||||
{
|
{
|
||||||
imports = [ ];
|
imports = [ ];
|
||||||
|
|
||||||
config = lib.mkIf config.me.graphical {
|
config = lib.mkIf (config.me.graphical && config.me.sway.enable) {
|
||||||
me.swayIncludes = [
|
me.swayIncludes = [
|
||||||
screenshot_sway_config
|
screenshot_sway_config
|
||||||
];
|
];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user