mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
101 lines
2.5 KiB
Nix
101 lines
2.5 KiB
Nix
{ config, pkgs, lib, ... }:
|
|
with lib;
|
|
{
|
|
options.sconfig.desktop = {
|
|
enable = lib.mkEnableOption "Enable Desktop Environment";
|
|
};
|
|
|
|
imports = [
|
|
./chromium.nix
|
|
./firefox.nix
|
|
./kitty.nix
|
|
];
|
|
|
|
config = mkIf (config.sconfig.desktop.enable) {
|
|
programs.steam.enable = true;
|
|
services.pcscd.enable = true;
|
|
virtualisation.podman.enable = true;
|
|
networking.networkmanager.wifi.powersave = false;
|
|
|
|
# Pipewire
|
|
sound.enable = true;
|
|
hardware.pulseaudio.enable = false;
|
|
security.rtkit.enable = true;
|
|
services.pipewire = {
|
|
enable = true;
|
|
pulse.enable = true;
|
|
alsa.enable = true;
|
|
alsa.support32Bit = true;
|
|
};
|
|
|
|
sconfig = {
|
|
security-tools = true;
|
|
};
|
|
|
|
services.udev.extraHwdb = ''
|
|
mouse:usb:*
|
|
MOUSE_DPI=600@1000
|
|
'';
|
|
|
|
fonts.packages = [
|
|
(pkgs.nerdfonts.override { fonts = [ "DejaVuSansMono" ]; })
|
|
];
|
|
|
|
environment.variables.MOZ_ENABLE_WAYLAND = "1";
|
|
environment.variables.MOZ_USE_XINPUT2 = "1";
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
chromium
|
|
discord
|
|
easyeffects
|
|
element-desktop
|
|
ffmpeg
|
|
gimp
|
|
glxinfo
|
|
gnome3.dconf-editor
|
|
helvum
|
|
obs-studio
|
|
opensc
|
|
pavucontrol
|
|
qemu_kvm
|
|
quickemu
|
|
tdesktop
|
|
yt-dlp-light
|
|
|
|
(mpv.override { scripts = [ mpvScripts.mpris ]; })
|
|
|
|
(vscode-with-extensions.override {
|
|
vscodeExtensions = with pkgs.vscode-extensions; [
|
|
esbenp.prettier-vscode
|
|
jnoortheen.nix-ide
|
|
ms-azuretools.vscode-docker
|
|
# ms-python.python # currently broken (2023-10-26)
|
|
redhat.vscode-yaml
|
|
shardulm94.trailing-spaces
|
|
];
|
|
})
|
|
];
|
|
|
|
environment.etc."my-settings.sh".text = ''
|
|
mkdir -p ~/.config/Code/User
|
|
ln -sf /etc/vscode-settings.json ~/.config/Code/User/settings.json
|
|
ln -sf /etc/vscode-keybindings.json ~/.config/Code/User/keybindings.json
|
|
'';
|
|
|
|
environment.etc."vscode-keybindings.json".source = ./vscode-keybindings.json;
|
|
environment.etc."vscode-settings.json".text = builtins.toJSON (
|
|
(
|
|
builtins.fromJSON (builtins.readFile ./vscode-settings.json)
|
|
) // {
|
|
# NixOS-specific vscode settings:
|
|
"extensions.autoCheckUpdates" = false;
|
|
"extensions.autoUpdate" = false;
|
|
"terminal.external.linuxExec" = "x-terminal-emulator";
|
|
"terminal.integrated.fontFamily" = "DejaVuSansM Nerd Font";
|
|
"update.mode" = "none";
|
|
}
|
|
);
|
|
|
|
boot.loader.timeout = 1;
|
|
};
|
|
}
|