Compare commits

...

5 commits

4 changed files with 31 additions and 19 deletions

View file

@ -1,4 +1,4 @@
{ pkgs, ... }: { pkgs, config, ... }:
{ {
home.packages = with pkgs; [ home.packages = with pkgs; [
dejavu_fonts dejavu_fonts
@ -13,7 +13,19 @@
noto-fonts-cjk-sans noto-fonts-cjk-sans
slurp slurp
wl-clipboard wl-clipboard
(config.lib.nixGL.wrap ungoogled-chromium)
(config.lib.nixGL.wrap slack)
]; ];
targets.genericLinux.enable = true; targets.genericLinux.enable = true;
xdg.mime.enable = true; xdg.mime.enable = true;
wayland.windowManager.sway.config.input = {
"1:1:AT_Translated_Set_2_keyboard" = {
xkb_layout = "us";
xkb_variant = "altgr-intl";
};
"65261:8800:KBDFans_DZ60" = {
xkb_layout = "us";
xkb_variant = "altgr-intl";
};
};
} }

View file

@ -143,8 +143,10 @@ in
}; };
}; };
# Avoid pixelated effect for QT application with fractionnal scaling
home.sessionVariables = { home.sessionVariables = {
# Use wayland for chrom{e|ium} based crap
NIXOS_OZONE_WL = "1";
# Avoid pixelated effect for QT application with fractionnal scaling
QT_SCALE_FACTOR_ROUNDING_POLICY = "RoundPreferFloor"; QT_SCALE_FACTOR_ROUNDING_POLICY = "RoundPreferFloor";
}; };

View file

@ -42,18 +42,16 @@ with lib;
profile.name = "work"; profile.name = "work";
profile.outputs = [ profile.outputs = [
{ {
criteria = "Iiyama North America PL2480H 11183M2807013"; criteria = "Iiyama North America PL2792QN 1179214201663";
mode = "2560x1440";
position = "1450,0";
scale = 1.15;
}
{
criteria = "BOE 0x0A95 Unknown";
mode = "1920x1080"; mode = "1920x1080";
position = "0,0"; position = "0,0";
} scale = 1.325;
{
criteria = "Iiyama North America PL2480H 11183M2807016";
mode = "1920x1080";
position = "1920,0";
}
{
criteria = "eDP-1";
status = "disable";
} }
]; ];
} }

View file

@ -10,7 +10,7 @@ in
timeouts = [ timeouts = [
{ {
timeout = 300; timeout = 300;
command = "${pkgs.swaylock}/bin/swaylock -f"; command = if cfg.swaylock.useNullPackage then ''/usr/bin/swaylock -f'' else ''${pkgs.swaylock}/bin/swaylock -f'';
} }
{ {
timeout = 600; timeout = 600;
@ -21,11 +21,11 @@ in
events = [ events = [
{ {
event = "before-sleep"; event = "before-sleep";
command = if cfg.swaylock.useNullPackage then "swaylock" else "${pkgs.swaylock}/bin/swaylock"; command = if cfg.swaylock.useNullPackage then ''/usr/bin/swaylock -f'' else ''${pkgs.swaylock}/bin/swaylock -f'';
} }
{ {
event = "lock"; event = "lock";
command = if cfg.swaylock.useNullPackage then "swaylock" else "${pkgs.swaylock}/bin/swaylock"; command = if cfg.swaylock.useNullPackage then ''usr/bin/swaylock -f'' else ''${pkgs.swaylock}/bin/swaylock -f'';
} }
]; ];
}; };