miku: Do a lot of things

This commit is contained in:
2022-02-14 18:34:04 +01:00
parent 1fa05e9822
commit fb4815a7dd
9 changed files with 45 additions and 46 deletions

View File

@@ -66,7 +66,7 @@ in {
desktopManager.gnome.enable = true;
displayManager.gdm = {
enable = true;
enable = false;
wayland = true;
};
};

View File

@@ -35,6 +35,10 @@ let
in {
options.ptw.programs.sway = {
enable = lib.mkEnableOption "Configure sway using HomeManager";
extraSessionCommands = lib.mkOption {
description = "Commands to be run before sway is started. See programs.sway.extraSessionCommands";
default = "";
};
};
config = lib.mkIf cfg.enable {
@@ -61,10 +65,14 @@ in {
};
};
programs.sway.enable = true;
programs.sway = {
enable = true;
extraSessionCommands = cfg.extraSessionCommands;
};
home-manager.users."${config.ptw.system.singleUser}" = {
wayland.windowManager.sway = {
enable = true;
extraSessionCommands = cfg.extraSessionCommands;
config = {
bars = [ ];
startup = [