Compare commits

...

2 commits

8 changed files with 49 additions and 4 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 146 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

View file

@ -25,6 +25,8 @@
desktop.sway = {
enable = true;
kanshi = true;
wallpapers.lockscreen = "${./files/lockscreen.png}";
wallpapers.desktop = "${./files/wallpaper.png} center #000000";
waybar = {
laptop = true;
gpuThermal = {

View file

@ -0,0 +1,19 @@
_:
{
## Specific host home manager configuration
wayland.windowManager.sway.config = {
input = {
"1:1:AT_Translated_Set_2_keyboard" = {
xkb_layout = "us";
xkb_variant = "altgr-intl";
};
"2:7:SynPS/2_Synaptics_TouchPad" = {
"tap" = "enable";
"accel_profile" = "adaptive";
"dwt" = "enable";
"pointer_accel" = "0.3";
};
};
};
}

View file

@ -13,6 +13,19 @@ in
description = "configure laptop mode";
};
wallpapers = {
lockscreen = mkOption {
type = types.path;
default = "";
description = "path for lockscreen wallpaper";
};
desktop = mkOption {
type = types.path;
default = "";
description = "path for desktop wallpaper";
};
};
waybar = {
laptop = mkOption {
type = types.bool;
@ -130,7 +143,7 @@ in
qt = {
enable = true;
platformTheme = "gnome";
platformTheme.name = "adwaita";
style.name = "adwaita-dark";
};
xdg = {

View file

@ -1,5 +1,8 @@
{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.modules.desktop.sway;
in
{
config = mkIf config.modules.desktop.sway.enable {
wayland.windowManager.sway = {
@ -20,6 +23,11 @@ with lib;
xkb_variant = "altgr-intl";
};
};
output = {
"*" = {
bg = "${cfg.wallpapers.desktop}";
};
};
seat = {
"*".hide_cursor = "when-typing enable";
};

View file

@ -1,11 +1,14 @@
{ config, lib, ... }:
with lib;
let
cfg = config.modules.desktop.sway;
in
{
config = mkIf config.modules.desktop.sway.enable {
programs.swaylock = {
enable = true;
settings = {
image = "~/medias/images/wallpapers/lockscreen.png";
image = "${cfg.wallpapers.lockscreen}";
scaling = "center";
color = "000000";
indicator-radius = 70;

View file

@ -55,8 +55,8 @@
../hosts/${hostname}/home-config.nix
../modules/home-manager/default.nix
] ++ lib.optional (
builtins.pathExists ../home-manager/hosts/${hostname}.nix
) ../home-manager/hosts/${hostname}.nix;
builtins.pathExists ../hosts/${hostname}/includes/home-manager.nix
) ../hosts/${hostname}/includes/home-manager.nix;
};
};