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; [
dejavu_fonts
@ -13,7 +13,19 @@
noto-fonts-cjk-sans
slurp
wl-clipboard
(config.lib.nixGL.wrap ungoogled-chromium)
(config.lib.nixGL.wrap slack)
];
targets.genericLinux.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 = {
# 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";
};

View file

@ -10,7 +10,7 @@ with lib;
profile.name = "standalone";
profile.outputs = [
{
criteria = "eDP-1";
criteria = "eDP-1";
scale = 1.33;
status = "enable";
}
@ -20,13 +20,13 @@ with lib;
profile.name = "home";
profile.outputs = [
{
criteria = "Iiyama North America PL2792UH 1166310803122";
criteria = "Iiyama North America PL2792UH 1166310803122";
mode = "3840x2160";
position = "1235,0";
scale = 1.75;
}
{
criteria = "Iiyama North America PL2792UH 1176923201598";
{
criteria = "Iiyama North America PL2792UH 1176923201598";
mode = "3840x2160";
position = "0,0";
transform = "90";
@ -42,18 +42,16 @@ with lib;
profile.name = "work";
profile.outputs = [
{
criteria = "Iiyama North America PL2480H 11183M2807013";
mode = "1920x1080";
position = "0,0";
}
{
criteria = "Iiyama North America PL2480H 11183M2807016";
mode = "1920x1080";
position = "1920,0";
criteria = "Iiyama North America PL2792QN 1179214201663";
mode = "2560x1440";
position = "1450,0";
scale = 1.15;
}
{
criteria = "eDP-1";
status = "disable";
criteria = "BOE 0x0A95 Unknown";
mode = "1920x1080";
position = "0,0";
scale = 1.325;
}
];
}

View file

@ -10,7 +10,7 @@ in
timeouts = [
{
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;
@ -21,11 +21,11 @@ in
events = [
{
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";
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'';
}
];
};