talos: restart sway setup

This commit is contained in:
Antoine Martin 2024-11-18 12:12:06 +01:00
parent a7204f7cf4
commit 259c930098
2 changed files with 98 additions and 8 deletions

View file

@ -152,22 +152,20 @@
LC_TELEPHONE = "fr_FR.UTF-8"; LC_TELEPHONE = "fr_FR.UTF-8";
}; };
# Enable the X11 windowing system.
services.xserver.enable = true;
# Enable the KDE Plasma Desktop Environment. # Enable the KDE Plasma Desktop Environment.
services.desktopManager.plasma6.enable = true; services.desktopManager.plasma6.enable = true;
services.power-profiles-daemon.enable = true; services.power-profiles-daemon.enable = true;
environment.systemPackages = [ environment.systemPackages = [
pkgs.unstable.zed-editor pkgs.unstable.zed-editor
pkgs.foot
]; ];
#programs.hyprland.enable = true; #programs.hyprland.enable = true;
#programs.sway = { programs.sway = {
# enable = true; enable = true;
# wrapperFeatures.gtk = true; wrapperFeatures.gtk = true;
#}; };
# Copy the NixOS configuration file and link it from the resulting system # Copy the NixOS configuration file and link it from the resulting system
# (/run/current-system/configuration.nix). This is useful in case you # (/run/current-system/configuration.nix). This is useful in case you

View file

@ -1,8 +1,14 @@
{ {
config, config,
lib,
pkgs, pkgs,
... ...
}: { }: let
inherit
(lib)
mkOptionDefault
;
in {
home-manager.users.alarsyo = { home-manager.users.alarsyo = {
home.stateVersion = "23.11"; home.stateVersion = "23.11";
@ -33,5 +39,91 @@
spot spot
; ;
}; };
wayland.windowManager.sway = {
enable = true;
swaynag.enable = true;
wrapperFeatures.gtk = true;
config = {
modifier = "Mod4";
input = {
"type:keyboard" = {
xkb_layout = "fr";
xkb_variant = "us";
};
"type:touchpad" = {
dwt = "enabled";
tap = "enabled";
middle_emulation = "enabled";
natural_scroll = "enabled";
};
};
output = {
"eDP-1" = {
scale = "1.5";
};
};
fonts = {
names = ["Iosevka Fixed" "FontAwesome6Free"];
size = 9.0;
};
bars = [
{
mode = "dock";
hiddenState = "hide";
position = "top";
workspaceButtons = true;
workspaceNumbers = true;
statusCommand = "${pkgs.i3status}/bin/i3status";
fonts = {
names = ["Iosevka Fixed" "FontAwesome6Free"];
size = 9.0;
};
trayOutput = "primary";
colors = {
background = "#000000";
statusline = "#ffffff";
separator = "#666666";
focusedWorkspace = {
border = "#4c7899";
background = "#285577";
text = "#ffffff";
};
activeWorkspace = {
border = "#333333";
background = "#5f676a";
text = "#ffffff";
};
inactiveWorkspace = {
border = "#333333";
background = "#222222";
text = "#888888";
};
urgentWorkspace = {
border = "#2f343a";
background = "#900000";
text = "#ffffff";
};
bindingMode = {
border = "#2f343a";
background = "#900000";
text = "#ffffff";
};
};
}
];
keybindings = mkOptionDefault {
"Mod4+i" = "exec emacsclient --create-frame";
};
};
};
programs = {
fuzzel.enable = true;
swaylock.enable = true;
waybar = {
enable = true;
};
};
}; };
} }