All checks were successful
Check Flake / check-flake (push) Successful in 17m43s
93 lines
1.9 KiB
Nix
93 lines
1.9 KiB
Nix
{ config, pkgs, lib, ... }:
|
|
|
|
let
|
|
cfg = config.de;
|
|
in
|
|
{
|
|
imports = [
|
|
./kde.nix
|
|
# ./xfce.nix
|
|
./yubikey.nix
|
|
./chromium.nix
|
|
./firefox.nix
|
|
./audio.nix
|
|
# ./torbrowser.nix
|
|
./pithos.nix
|
|
./vscodium.nix
|
|
./discord.nix
|
|
./steam.nix
|
|
./touchpad.nix
|
|
./mount-samba.nix
|
|
./udev.nix
|
|
./virtualisation.nix
|
|
];
|
|
|
|
options.de = {
|
|
enable = lib.mkEnableOption "enable desktop environment";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
# Applications
|
|
users.users.googlebot.packages = with pkgs; [
|
|
chromium
|
|
keepassxc
|
|
mumble
|
|
tigervnc
|
|
bluez-tools
|
|
element-desktop
|
|
mpv
|
|
nextcloud-client
|
|
signal-desktop
|
|
gparted
|
|
libreoffice-fresh
|
|
thunderbird
|
|
spotify
|
|
arduino
|
|
yt-dlp
|
|
jellyfin-media-player
|
|
joplin-desktop
|
|
config.inputs.deploy-rs.packages.${config.currentSystem}.deploy-rs
|
|
lxqt.pavucontrol-qt
|
|
barrier
|
|
|
|
# For Nix IDE
|
|
nixpkgs-fmt
|
|
];
|
|
|
|
# Networking
|
|
networking.networkmanager.enable = true;
|
|
users.users.googlebot.extraGroups = [ "networkmanager" ];
|
|
|
|
# Printing
|
|
services.printing.enable = true;
|
|
services.printing.drivers = with pkgs; [
|
|
gutenprint
|
|
];
|
|
# Printer discovery
|
|
services.avahi.enable = true;
|
|
services.avahi.nssmdns4 = true;
|
|
|
|
programs.file-roller.enable = true;
|
|
|
|
# Security
|
|
services.gnome.gnome-keyring.enable = true;
|
|
security.pam.services.googlebot.enableGnomeKeyring = true;
|
|
|
|
# Android dev
|
|
programs.adb.enable = true;
|
|
|
|
# Mount personal SMB stores
|
|
services.mount-samba.enable = true;
|
|
|
|
# allow building ARM derivations
|
|
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
|
|
|
# for luks onlock over tor
|
|
services.tor.enable = true;
|
|
services.tor.client.enable = true;
|
|
|
|
# Enable wayland support in various chromium based applications
|
|
environment.sessionVariables.NIXOS_OZONE_WL = "1";
|
|
};
|
|
}
|