Update sway config
This commit is contained in:
@@ -16,16 +16,6 @@ in
|
||||
type = types.bool;
|
||||
default = false;
|
||||
};
|
||||
pulseSupport = mkOption {
|
||||
description = "Enable pulse support for pipewire";
|
||||
type = types.bool;
|
||||
default = true;
|
||||
};
|
||||
alsaSupport = mkOption {
|
||||
description = "Enable alsa support for pipewire";
|
||||
type = types.bool;
|
||||
default = true;
|
||||
};
|
||||
};
|
||||
|
||||
music = {
|
||||
@@ -56,23 +46,22 @@ in
|
||||
};
|
||||
|
||||
config = {
|
||||
environment.systemPackages =
|
||||
with pkgs; []
|
||||
environment.systemPackages = with pkgs; []
|
||||
++ optional cfg.pipewire.enable pulseaudio
|
||||
++ optional cfg.music.enable feishin
|
||||
++ optional cfg.tools.helvum helvum
|
||||
++ optional cfg.tools.easyeffects easyeffects
|
||||
++ optional cfg.tools.pavucontrol pavucontrol
|
||||
++ optional cfg.pipewire.pulseSupport pulseaudio
|
||||
++ optional cfg.music.enable feishin;
|
||||
++ optional cfg.tools.pavucontrol pavucontrol;
|
||||
|
||||
|
||||
security.rtkit.enable = mkIf cfg.pipewire.enable true;
|
||||
services.pipewire = mkIf cfg.pipewire.enable {
|
||||
enable = true;
|
||||
alsa = mkIf cfg.pipewire.alsaSupport {
|
||||
alsa = {
|
||||
enable = true;
|
||||
support32Bit = true;
|
||||
};
|
||||
pulse.enable = mkIf cfg.pipewire.pulseSupport true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@ in
|
||||
};
|
||||
|
||||
passphrase = mkOption {
|
||||
description = "path to file containing passphrase";
|
||||
description = "Path to file containing passphrase";
|
||||
type = types.path;
|
||||
};
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ in
|
||||
nil.enable = mkOption {
|
||||
description = "Whether to install nil";
|
||||
type = types.bool;
|
||||
default = false;
|
||||
default = true;
|
||||
};
|
||||
|
||||
shell = mkOption {
|
||||
|
||||
@@ -47,12 +47,11 @@ in
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; with localPackages.x86_64-linux;
|
||||
[]
|
||||
++ optional cfg.protonup.enable protonup-qt
|
||||
++ optional cfg.gamescope.enable gamescope-old
|
||||
++ optional cfg.discord.enable vesktop
|
||||
++ optionals cfg.lutris.enable [ lutris wine ];
|
||||
environment.systemPackages = with pkgs; with localPackages.x86_64-linux; []
|
||||
++ optional cfg.protonup.enable protonup-qt
|
||||
++ optional cfg.gamescope.enable gamescope-old
|
||||
++ optional cfg.discord.enable vesktop
|
||||
++ optionals cfg.lutris.enable [ lutris wine ];
|
||||
|
||||
programs.steam = mkIf cfg.steam.enable {
|
||||
enable = true;
|
||||
|
||||
@@ -103,8 +103,8 @@ in
|
||||
packages = with pkgs; [
|
||||
liberation_ttf
|
||||
ubuntu_font_family
|
||||
font-awesome
|
||||
vazir-fonts
|
||||
font-awesome
|
||||
];
|
||||
fontconfig = {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user