2021-08-25 04:27:20 +00:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
2023-03-27 15:21:48 +00:00
|
|
|
options.sconfig.desktop = {
|
|
|
|
enable = lib.mkEnableOption "Enable Desktop Environment";
|
|
|
|
};
|
|
|
|
|
2023-06-11 18:47:02 +00:00
|
|
|
imports = [
|
2024-06-24 04:10:59 +00:00
|
|
|
./alacritty.nix
|
2023-06-11 18:47:02 +00:00
|
|
|
./chromium.nix
|
2023-07-27 17:35:44 +00:00
|
|
|
./firefox.nix
|
2024-06-25 01:26:23 +00:00
|
|
|
./vscode.nix
|
2023-06-11 18:47:02 +00:00
|
|
|
];
|
|
|
|
|
2023-03-27 15:21:48 +00:00
|
|
|
config = mkIf (config.sconfig.desktop.enable) {
|
2023-02-16 20:09:55 +00:00
|
|
|
programs.steam.enable = true;
|
2023-10-08 19:51:57 +00:00
|
|
|
networking.networkmanager.wifi.powersave = false;
|
2021-08-25 04:27:20 +00:00
|
|
|
|
2024-06-09 05:23:34 +00:00
|
|
|
systemd.services.docker.path = [
|
|
|
|
pkgs.openssh
|
|
|
|
];
|
|
|
|
virtualisation.docker = {
|
|
|
|
enable = true;
|
|
|
|
enableOnBoot = false;
|
2024-07-19 23:20:16 +00:00
|
|
|
daemon.settings = {
|
|
|
|
data-root = "/nix/persist/docker";
|
|
|
|
runtimes.runsc.path = "${pkgs.gvisor}/bin/runsc";
|
|
|
|
};
|
2024-06-09 05:23:34 +00:00
|
|
|
};
|
|
|
|
|
2022-10-31 18:27:58 +00:00
|
|
|
# Pipewire
|
|
|
|
hardware.pulseaudio.enable = false;
|
|
|
|
security.rtkit.enable = true;
|
|
|
|
services.pipewire = {
|
|
|
|
enable = true;
|
|
|
|
pulse.enable = true;
|
|
|
|
alsa.enable = true;
|
|
|
|
alsa.support32Bit = true;
|
|
|
|
};
|
|
|
|
|
2021-11-02 18:47:46 +00:00
|
|
|
sconfig = {
|
|
|
|
security-tools = true;
|
|
|
|
};
|
2021-09-08 00:32:11 +00:00
|
|
|
|
2022-08-08 17:40:03 +00:00
|
|
|
services.udev.extraHwdb = ''
|
|
|
|
mouse:usb:*
|
|
|
|
MOUSE_DPI=600@1000
|
|
|
|
'';
|
|
|
|
|
2023-11-27 20:21:55 +00:00
|
|
|
fonts.packages = [
|
2022-11-10 19:52:58 +00:00
|
|
|
(pkgs.nerdfonts.override { fonts = [ "DejaVuSansMono" ]; })
|
|
|
|
];
|
2021-10-11 05:05:54 +00:00
|
|
|
|
2021-08-25 04:27:20 +00:00
|
|
|
environment.systemPackages = with pkgs; [
|
2021-11-02 18:46:18 +00:00
|
|
|
chromium
|
2021-08-25 04:27:20 +00:00
|
|
|
discord
|
2024-02-16 06:02:43 +00:00
|
|
|
easyeffects
|
2021-08-25 04:27:20 +00:00
|
|
|
element-desktop
|
|
|
|
ffmpeg
|
|
|
|
gimp
|
|
|
|
glxinfo
|
|
|
|
gnome3.dconf-editor
|
2023-02-22 22:42:18 +00:00
|
|
|
helvum
|
2024-04-30 04:16:54 +00:00
|
|
|
kdenlive
|
2023-02-16 20:09:55 +00:00
|
|
|
obs-studio
|
2021-08-25 04:27:20 +00:00
|
|
|
opensc
|
|
|
|
pavucontrol
|
2023-10-26 15:15:34 +00:00
|
|
|
qemu_kvm
|
2023-01-25 21:37:32 +00:00
|
|
|
quickemu
|
2021-08-25 04:27:20 +00:00
|
|
|
tdesktop
|
2023-05-04 02:43:32 +00:00
|
|
|
yt-dlp-light
|
2021-08-25 04:27:20 +00:00
|
|
|
|
2022-11-02 13:33:17 +00:00
|
|
|
(mpv.override { scripts = [ mpvScripts.mpris ]; })
|
2021-08-25 04:27:20 +00:00
|
|
|
];
|
|
|
|
|
2022-06-10 14:26:24 +00:00
|
|
|
boot.loader.timeout = 1;
|
2021-08-25 04:27:20 +00:00
|
|
|
};
|
|
|
|
}
|