sway, fix screensharing (again)
This commit is contained in:
parent
6aa649eb01
commit
ec8358fe55
5 changed files with 98 additions and 29 deletions
|
|
@ -1,8 +1,5 @@
|
|||
{ config, pkgs, user, name, lib, ... }:
|
||||
# https://nix-community.github.io/home-manager/options.html
|
||||
let
|
||||
brave-nightly = pkgs.callPackage ../../custom/brave-nightly/. { };
|
||||
in
|
||||
{
|
||||
# don't change
|
||||
home.stateVersion = "22.05";
|
||||
|
|
@ -20,12 +17,12 @@ in
|
|||
ansible
|
||||
thunderbird
|
||||
(pkgs.writeShellScriptBin "my-editor" ''
|
||||
code $@
|
||||
${pkgs.vscode}/bin/code --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations $@
|
||||
'')
|
||||
(pkgs.makeDesktopItem {
|
||||
name = "teams";
|
||||
desktopName = "Microsoft Teams";
|
||||
exec = "${brave-nightly}/opt/brave.com/brave-nightly/brave-browser-nightly --app-id=cifhbcnohmdccbgoicgdjpfamggdegmo --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations,WebRTCPipeWireCapturer";
|
||||
exec = "${brave}/opt/brave.com/brave/brave-browser --app-id=cifhbcnohmdccbgoicgdjpfamggdegmo --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations,WebRTCPipeWireCapturer";
|
||||
icon = "brave-cifhbcnohmdccbgoicgdjpfamggdegmo-Default";
|
||||
})
|
||||
(pkgs.makeDesktopItem {
|
||||
|
|
@ -51,7 +48,7 @@ in
|
|||
## work laptop configuration
|
||||
exec-once = ${pkgs.swaybg}/bin/swaybg -o eDP-1 -i ~/Pictures/backgrounds/nix-wallpaper-simple-red.png &
|
||||
|
||||
monitor = ,preferred,auto, 1.2
|
||||
monitor = eDP-1, preferred, 0x0, 1.2
|
||||
workspace = eDP-1, 5
|
||||
|
||||
input {
|
||||
|
|
@ -83,4 +80,21 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
# xdph + chromium = ):
|
||||
wayland.windowManager.hyprland.enable = lib.mkForce false;
|
||||
wayland.windowManager.sway.enable = true;
|
||||
wayland.windowManager.sway.config = {
|
||||
input = {
|
||||
"type:keyboard" = {
|
||||
xkb_variant = "dvorak";
|
||||
};
|
||||
};
|
||||
output = {
|
||||
eDP-1 = {
|
||||
scale = "1.2";
|
||||
bg = "~/Pictures/backgrounds/nix-wallpaper-watersplash.png fill";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@
|
|||
"vscode"
|
||||
];
|
||||
|
||||
services.tailscale.enable = true;
|
||||
|
||||
networking = {
|
||||
networkmanager = {
|
||||
|
|
@ -69,15 +70,25 @@
|
|||
];
|
||||
|
||||
# dangerous
|
||||
users.users.tristan.extraGroups = [ "docker" ];
|
||||
# users.users.tristan.extraGroups = [ "docker" ];
|
||||
|
||||
virtualisation.docker = {
|
||||
enable = true;
|
||||
storageDriver = "btrfs";
|
||||
# rootless = {
|
||||
# enable = true;
|
||||
# setSocketVariable = true;
|
||||
# };
|
||||
rootless = {
|
||||
enable = true;
|
||||
setSocketVariable = true;
|
||||
};
|
||||
};
|
||||
|
||||
services.greetd = {
|
||||
settings = rec {
|
||||
sway_session = {
|
||||
command = "sway";
|
||||
user = "tristan";
|
||||
};
|
||||
default_session = lib.mkForce sway_session;
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue