This commit is contained in:
foosinn 2022-02-13 00:31:58 +01:00
parent 4146b5aece
commit 2e10a00830
32 changed files with 2944 additions and 2163 deletions

View file

@ -26,21 +26,15 @@ in {
wf-recorder
xwayland
];
extraSessionCommands = ''
'';
extraSessionCommands = "";
};
xdg.portal = {
enable = true;
gtkUsePortal = true;
extraPortals = with pkgs; [
xdg-desktop-portal-gtk
xdg-desktop-portal-wlr
];
extraPortals = with pkgs; [ xdg-desktop-portal-gtk xdg-desktop-portal-wlr ];
};
boot.extraModulePackages = with config.boot.kernelPackages; [
v4l2loopback
];
boot.extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ];
colors = {
background = "#282a36";
@ -50,7 +44,7 @@ in {
green = "#50fa7b";
yellow = "#f1fa8c";
cyan = "#8be9fd";
magenta ="#bd93f9";
magenta = "#bd93f9";
blue = "#61bfff";
white = "#ffffff";
};
@ -60,37 +54,37 @@ in {
"sway/config".source = ../dotfiles/sway/config;
"sway/status.toml".source = ../dotfiles/sway/status.toml;
"xdg/alacritty/alacritty.yml".text = ''
font:
normal:
family: CaskaydiaCove Nerd Font
size: 12
font:
normal:
family: CaskaydiaCove Nerd Font
size: 12
background_opacity: 0.98
draw_bold_text_with_bright_colors: true
background_opacity: 0.98
draw_bold_text_with_bright_colors: true
colors:
primary:
background: "${colors.background}"
foreground: "${colors.foreground}"
colors:
primary:
background: "${colors.background}"
foreground: "${colors.foreground}"
normal:
black: "${colors.black}"
red: "${colors.red}"
green: "${colors.green}"
yellow: "${colors.yellow}"
cyan: "${colors.cyan}"
magenta: "${colors.magenta}"
blue: "${colors.blue}"
white: "${colors.white}"
normal:
black: "${colors.black}"
red: "${colors.red}"
green: "${colors.green}"
yellow: "${colors.yellow}"
cyan: "${colors.cyan}"
magenta: "${colors.magenta}"
blue: "${colors.blue}"
white: "${colors.white}"
window:
dynamic_title: true
window:
dynamic_title: true
env:
TERM: xterm-256color
env:
TERM: xterm-256color
key_bindings:
- { key: Escape, mods: Control, action: ToggleViMode }
key_bindings:
- { key: Escape, mods: Control, action: ToggleViMode }
'';
};
};
@ -105,9 +99,7 @@ key_bindings:
jack.enable = true;
config.pipewire = {
"context.properties" = {
"default.clock.rate" = 48000;
};
"context.properties" = { "default.clock.rate" = 48000; };
};
};
services.udev.packages = [
@ -128,13 +120,11 @@ key_bindings:
fira-code
noto-fonts
noto-fonts-emoji
(nerdfonts.override {
fonts = [ "CascadiaCode" "Meslo" ];
})
(nerdfonts.override { fonts = [ "CascadiaCode" "Meslo" ]; })
];
nixpkgs.config.allowUnfree = true;
environment.pathsToLink = ["/libexec"];
environment.pathsToLink = [ "/libexec" ];
environment.systemPackages = with pkgs; [
polkit_gnome
@ -194,31 +184,29 @@ key_bindings:
xfce.thunar
xfce.thunar-volman
ydotool
(
pkgs.writeTextFile {
name = "startsway";
destination = "/bin/startsway";
executable = true;
text = ''
#! ${pkgs.bash}/bin/bash
(pkgs.writeTextFile {
name = "startsway";
destination = "/bin/startsway";
executable = true;
text = ''
#! ${pkgs.bash}/bin/bash
export GTK_ICON_THEME=Dracula
export GTK_THEME=Dracula
export _JAVA_AWT_WM_NOREPARENTING=1
export MOZ_ENABLE_WAYLAND=1
export MOZ_USE_XINPUT2=1
export QT_AUTO_SCREEN_SCALE_FACTOR=0
export QT_QPA_PLATFORM=wayland-egl
export QT_WAYLAND_FORCE_DPI=96
export SDL_VIDEODRIVER=wayland
export XDG_CURRENT_DESKTOP=sway
export XDG_DATA_DIRS=${datadir}:$XDG_DATA_DIRS
export XDG_SESSION_TYPE=wayland
export GTK_ICON_THEME=Dracula
export GTK_THEME=Dracula
export _JAVA_AWT_WM_NOREPARENTING=1
export MOZ_ENABLE_WAYLAND=1
export MOZ_USE_XINPUT2=1
export QT_AUTO_SCREEN_SCALE_FACTOR=0
export QT_QPA_PLATFORM=wayland-egl
export QT_WAYLAND_FORCE_DPI=96
export SDL_VIDEODRIVER=wayland
export XDG_CURRENT_DESKTOP=sway
export XDG_DATA_DIRS=${datadir}:$XDG_DATA_DIRS
export XDG_SESSION_TYPE=wayland
${pkgs.dbus}/bin/dbus-run-session ${pkgs.sway}/bin/sway
'';
}
)
${pkgs.dbus}/bin/dbus-run-session ${pkgs.sway}/bin/sway
'';
})
];
hardware.bluetooth.enable = true;
@ -233,14 +221,9 @@ key_bindings:
};
services.printing.enable = true;
services.printing.drivers = [
pkgs.gutenprint
];
services.printing.drivers = [ pkgs.gutenprint ];
services.avahi.enable = true;
services.avahi.nssmdns = true;
hardware.opengl = {
enable = true;
};
hardware.opengl = { enable = true; };
}