This commit is contained in:
Ivan Kirilov Dimitrov 2024-08-02 22:43:08 +02:00
parent cc7382ac20
commit c09e7674f4
No known key found for this signature in database
GPG Key ID: 0BDAD4B211C49294
3 changed files with 13 additions and 4 deletions

View File

@ -227,9 +227,9 @@ toplevel@{ moduleWithSystem, ... }: {
layer = "top";
position = "top";
height = 30;
output = [ "eDP-1" "HDMI-A-1" ];
output = [ "eDP-1" "HDMI-A-1" "*" ];
modules-left = [ "sway/workspaces" ];
modules-left = [ "sway/workspaces" "sway/mode" ];
modules-center = [ "clock#week" "clock#year" "clock#time" ];
modules-right = [ "network" "pulseaudio" "memory" "cpu" "battery" ];

View File

@ -47,7 +47,16 @@ top@{ moduleWithSystem, ... }: {
kernel = { realtime = true; packages = pkgs.linuxPackages-rt; };
};
});
wayland = moduleWithSystem (toplevel@{ ... }: perSystem@{ ... }: { hardware.graphics.enable = true; security.pam.services.swaylock = { }; });
wayland = moduleWithSystem (toplevel@{ ... }: perSystem@{ ... }: {
hardware.graphics.enable = true;
security.pam.services.swaylock = { };
xdg.portal = {
enable = true;
xdgOpenUsePortal = true;
wlr = { enable = true; settings = { screencast = { output_name = "HDMI-A-1"; max_fps = 60; }; }; };
config.common.default = "*";
};
});
security = moduleWithSystem (toplevel@{ ... }: perSystem@{ ... }: {
security = {
sudo = { enable = false; execWheelOnly = true; extraRules = [{ groups = [ "wheel" ]; }]; };

View File

@ -1,6 +1,6 @@
top@{ inputs, withSystem, ... }: {
flake.overlays.default = final: prev:
let system = prev.stdenv.hostPlatform.system; in
let system = "x86_64-linux"; in
withSystem system (
{ config, ... }: {
nvim = config.packages.nvim;