Nix fmt rfc style (more or less)

This commit is contained in:
Filippo Berto 2024-08-13 12:22:23 +02:00
parent e7496c447a
commit 515f098644
No known key found for this signature in database
GPG key ID: FE98AE5EC52B1056
146 changed files with 2607 additions and 906 deletions

View file

@ -1,4 +1,5 @@
{ nixosConfig, pkgs, ... }: {
{ nixosConfig, pkgs, ... }:
{
imports = [
./kitty.nix
@ -12,7 +13,29 @@
./hyprland-bluetooth-keyboard.nix
];
home.packages = builtins.attrValues { inherit (pkgs) blueman brillo gamescope grimblast networkmanagerapplet wireplumber playerctl swaylock swww walker way-lockscreen waybar wl-clipboard wl-clipedit wlogout wofi wofi-emoji wtype xdg-desktop-portal-gtk; };
home.packages = builtins.attrValues {
inherit (pkgs)
blueman
brillo
gamescope
grimblast
networkmanagerapplet
wireplumber
playerctl
swaylock
swww
walker
way-lockscreen
waybar
wl-clipboard
wl-clipedit
wlogout
wofi
wofi-emoji
wtype
xdg-desktop-portal-gtk
;
};
# wayland.windowManager.hyprland = { };
@ -43,23 +66,26 @@
monitor=Unknown-1,disable
${
if nixosConfig.networking.hostName == "thor" then
''
monitor=DP-2,preferred,1080x420,auto
monitor=HDMI-A-1,preferred,0x0,auto,transform,3
''
''
monitor=DP-2,preferred,1080x420,auto
monitor=HDMI-A-1,preferred,0x0,auto,transform,3
''
else if nixosConfig.networking.hostName == "odin" then
''
monitor=eDP-1,preferred,320x1440,1
monitor=DP-1,preferred,0x0,1
''
else ""
''
monitor=eDP-1,preferred,320x1440,1
monitor=DP-1,preferred,0x0,1
''
else
""
}
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
# Execute your favorite apps at launch
exec-once = ${if nixosConfig.networking.hostName == "thor" then "xrandr --output DP-2 --primary" else "true"} & swww init & nm-applet & blueman-applet & systemctl --user start hyprland-login.target
exec-once = ${
if nixosConfig.networking.hostName == "thor" then "xrandr --output DP-2 --primary" else "true"
} & swww init & nm-applet & blueman-applet & systemctl --user start hyprland-login.target
# Source a file (multi-file configs)
# source = ~/.config/hypr/myColors.conf
@ -69,7 +95,7 @@
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
input {
kb_layout = ${if nixosConfig.networking.hostName == "thor" then "us,it,us" else "it,us,us" }
kb_layout = ${if nixosConfig.networking.hostName == "thor" then "us,it,us" else "it,us,us"}
kb_variant = ,,colemak
kb_model =
kb_options = grp:menu_toggle,compose:rctrl