Compare commits
5 commits
65fd07bbec
...
58b256850c
Author | SHA1 | Date | |
---|---|---|---|
58b256850c | |||
7590541576 | |||
fbd0aa4f76 | |||
ea62c7207e | |||
7d4f0b3eb6 |
4 changed files with 31 additions and 19 deletions
|
@ -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";
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -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";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ with lib;
|
||||||
profile.name = "standalone";
|
profile.name = "standalone";
|
||||||
profile.outputs = [
|
profile.outputs = [
|
||||||
{
|
{
|
||||||
criteria = "eDP-1";
|
criteria = "eDP-1";
|
||||||
scale = 1.33;
|
scale = 1.33;
|
||||||
status = "enable";
|
status = "enable";
|
||||||
}
|
}
|
||||||
|
@ -20,13 +20,13 @@ with lib;
|
||||||
profile.name = "home";
|
profile.name = "home";
|
||||||
profile.outputs = [
|
profile.outputs = [
|
||||||
{
|
{
|
||||||
criteria = "Iiyama North America PL2792UH 1166310803122";
|
criteria = "Iiyama North America PL2792UH 1166310803122";
|
||||||
mode = "3840x2160";
|
mode = "3840x2160";
|
||||||
position = "1235,0";
|
position = "1235,0";
|
||||||
scale = 1.75;
|
scale = 1.75;
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
criteria = "Iiyama North America PL2792UH 1176923201598";
|
criteria = "Iiyama North America PL2792UH 1176923201598";
|
||||||
mode = "3840x2160";
|
mode = "3840x2160";
|
||||||
position = "0,0";
|
position = "0,0";
|
||||||
transform = "90";
|
transform = "90";
|
||||||
|
@ -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 = "1920x1080";
|
mode = "2560x1440";
|
||||||
position = "0,0";
|
position = "1450,0";
|
||||||
}
|
scale = 1.15;
|
||||||
{
|
|
||||||
criteria = "Iiyama North America PL2480H 11183M2807016";
|
|
||||||
mode = "1920x1080";
|
|
||||||
position = "1920,0";
|
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
criteria = "eDP-1";
|
criteria = "BOE 0x0A95 Unknown";
|
||||||
status = "disable";
|
mode = "1920x1080";
|
||||||
|
position = "0,0";
|
||||||
|
scale = 1.325;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -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'';
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue