2021-11-21 19:07:12 +01:00
|
|
|
{ lib, pkgs, config, inputs, self-overlay, ha-now-playing-overlay, pamedia-overlay, ... }:
|
2021-11-12 17:10:17 +01:00
|
|
|
with lib;
|
2021-11-22 08:04:54 +01:00
|
|
|
let
|
|
|
|
cfg = config.eboskma.desktop;
|
|
|
|
bt = config.eboskma.bluetooth;
|
2021-11-12 17:10:17 +01:00
|
|
|
in
|
|
|
|
{
|
2021-11-26 22:21:16 +01:00
|
|
|
# imports = [ ../../users/erwin.nix ../../users/root.nix ];
|
2021-11-12 17:10:17 +01:00
|
|
|
|
|
|
|
options.eboskma.desktop = {
|
|
|
|
enable = mkEnableOption "Enable default desktop configuration";
|
|
|
|
home-manager = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = false;
|
|
|
|
description = ''
|
|
|
|
Enable home-manager for this desktop
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
home-manager.users.erwin = mkIf cfg.home-manager {
|
|
|
|
_module.args.flake-inputs = inputs;
|
|
|
|
|
|
|
|
programs.home-manager.enable = true;
|
|
|
|
programs.command-not-found.enable = true;
|
|
|
|
|
2021-11-22 08:04:54 +01:00
|
|
|
services.blueman-applet.enable = bt.enable;
|
|
|
|
|
2021-11-12 17:10:17 +01:00
|
|
|
home.username = "erwin";
|
|
|
|
home.homeDirectory = "/home/erwin";
|
2021-11-21 19:07:12 +01:00
|
|
|
home.sessionVariables = {
|
|
|
|
EDITOR = "${pkgs.neovim}/bin/nvim";
|
|
|
|
};
|
2021-11-12 17:10:17 +01:00
|
|
|
|
|
|
|
nixpkgs.config = { allowUnfree = true; };
|
|
|
|
|
|
|
|
home.stateVersion = "21.11";
|
|
|
|
|
|
|
|
eboskma = {
|
|
|
|
programs = {
|
2021-11-17 16:32:18 +01:00
|
|
|
alacritty.enable = true;
|
2021-11-21 19:07:12 +01:00
|
|
|
bat.enable = true;
|
2021-12-10 20:11:36 +01:00
|
|
|
dropbox.enable = true;
|
2021-11-25 17:18:13 +01:00
|
|
|
dunst.enable = true;
|
2021-11-23 12:09:24 +01:00
|
|
|
electron = {
|
|
|
|
enable = true;
|
|
|
|
wayland = true;
|
|
|
|
};
|
2021-11-17 16:32:18 +01:00
|
|
|
firefox = {
|
|
|
|
enable = true;
|
|
|
|
work = config.eboskma.base.work;
|
|
|
|
};
|
|
|
|
fish.enable = true;
|
2021-12-18 16:23:14 +01:00
|
|
|
foot.enable = true;
|
2021-11-21 19:07:12 +01:00
|
|
|
git = {
|
|
|
|
enable = true;
|
|
|
|
name = "Erwin Boskma";
|
|
|
|
email = "erwin@datarift.nl";
|
|
|
|
signingKey = "EE7ADEFE1D943C7B";
|
|
|
|
};
|
2021-11-17 16:32:18 +01:00
|
|
|
gpg.enable = true;
|
2021-12-18 16:23:14 +01:00
|
|
|
neovim.enable = true;
|
|
|
|
obs-studio.enable = true;
|
2021-11-12 17:10:17 +01:00
|
|
|
rofi.enable = true;
|
2021-11-17 16:32:18 +01:00
|
|
|
vscode.enable = true;
|
2021-12-24 17:57:22 +01:00
|
|
|
ssh.enable = true;
|
2021-11-17 16:32:18 +01:00
|
|
|
sway.enable = true;
|
2021-11-21 19:07:12 +01:00
|
|
|
tmux.enable = true;
|
2021-11-12 17:10:17 +01:00
|
|
|
waybar.enable = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
home.packages = with pkgs; [
|
2021-11-17 16:32:18 +01:00
|
|
|
bitwarden
|
2021-11-29 08:05:46 +01:00
|
|
|
bottom
|
2021-11-21 19:07:12 +01:00
|
|
|
fd
|
|
|
|
git
|
2021-11-17 16:32:18 +01:00
|
|
|
gnome.nautilus
|
2021-12-06 09:58:39 +01:00
|
|
|
imagemagick
|
2021-12-10 20:11:36 +01:00
|
|
|
imv
|
2021-12-06 09:58:39 +01:00
|
|
|
(jetbrains.clion.override { jdk = pkgs.jetbrains.jdk; })
|
2021-12-10 20:11:36 +01:00
|
|
|
mpv
|
2021-11-22 18:56:59 +01:00
|
|
|
nomachine-client
|
2021-11-25 17:18:13 +01:00
|
|
|
pamedia
|
2021-11-23 12:09:24 +01:00
|
|
|
pass
|
2021-12-18 16:23:14 +01:00
|
|
|
quintom-cursor-theme
|
2021-11-25 17:18:13 +01:00
|
|
|
procs
|
2021-11-21 19:07:12 +01:00
|
|
|
ripgrep
|
2021-11-17 16:32:18 +01:00
|
|
|
signal-desktop
|
|
|
|
steam
|
2021-11-29 08:05:46 +01:00
|
|
|
steamcmd
|
|
|
|
steam-tui
|
2021-11-17 16:32:18 +01:00
|
|
|
tdesktop
|
|
|
|
unzip
|
2021-12-18 16:23:14 +01:00
|
|
|
xdg-utils
|
2021-11-21 19:07:12 +01:00
|
|
|
wl-clipboard
|
2021-12-10 20:11:36 +01:00
|
|
|
] ++
|
2021-12-18 16:23:14 +01:00
|
|
|
(with gst_all_1; [ gstreamer gstreamer.dev gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly gst-libav gst-vaapi ]);
|
2021-11-12 17:10:17 +01:00
|
|
|
|
2021-11-17 16:32:18 +01:00
|
|
|
xdg = {
|
|
|
|
enable = true;
|
2021-12-24 17:57:22 +01:00
|
|
|
mime.enable = true;
|
2022-01-15 14:48:51 +01:00
|
|
|
mimeApps = {
|
|
|
|
enable = true;
|
|
|
|
defaultApplications = {
|
|
|
|
"x-scheme-handler/http" = "firefox.desktop";
|
|
|
|
"x-scheme-handler/https" = "firefox.desktop";
|
|
|
|
"x-scheme-handler/chrome" = "firefox.desktop";
|
|
|
|
"text/html" = "firefox.desktop";
|
|
|
|
"application/x-extension-htm" = "firefox.desktop";
|
|
|
|
"application/x-extension-html" = "firefox.desktop";
|
|
|
|
"application/x-extension-shtml" = "firefox.desktop";
|
|
|
|
"application/xhtml+xml" = "firefox.desktop";
|
|
|
|
"application/x-extension-xhtml" = "firefox.desktop";
|
|
|
|
"application/x-extension-xht" = "firefox.desktop";
|
|
|
|
};
|
|
|
|
associations = {
|
|
|
|
added = {
|
|
|
|
"image/jpeg" = "imv.desktop";
|
|
|
|
"image/png" = "imv.desktop";
|
|
|
|
"image/gif" = "imv.desktop";
|
|
|
|
"application/zip" = "org.gnome.FileRoller.desktop";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2021-12-24 17:57:22 +01:00
|
|
|
userDirs = {
|
|
|
|
enable = true;
|
|
|
|
createDirectories = true;
|
|
|
|
};
|
2021-11-17 16:32:18 +01:00
|
|
|
};
|
|
|
|
|
2021-11-21 19:07:12 +01:00
|
|
|
gtk = {
|
|
|
|
enable = true;
|
|
|
|
theme = {
|
|
|
|
name = "Arc-Dark";
|
|
|
|
package = pkgs.arc-theme;
|
|
|
|
};
|
|
|
|
|
|
|
|
iconTheme = {
|
2021-11-23 12:09:24 +01:00
|
|
|
name = "Papirus-Dark";
|
|
|
|
package = pkgs.papirus-icon-theme;
|
2021-11-21 19:07:12 +01:00
|
|
|
};
|
|
|
|
|
2021-12-24 17:57:22 +01:00
|
|
|
gtk3 = {
|
|
|
|
bookmarks = [
|
|
|
|
"file:///home/erwin/workspace"
|
|
|
|
];
|
|
|
|
extraConfig = {
|
|
|
|
gtk-application-prefer-dark-theme = true;
|
|
|
|
gtk-cursor-theme-name = "Quintom_Ink";
|
|
|
|
};
|
2021-11-21 19:07:12 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-11-12 17:10:17 +01:00
|
|
|
imports = [
|
2021-11-16 00:22:18 +01:00
|
|
|
{
|
2021-11-21 19:07:12 +01:00
|
|
|
nixpkgs.overlays = [
|
|
|
|
self-overlay
|
|
|
|
ha-now-playing-overlay
|
|
|
|
pamedia-overlay
|
|
|
|
];
|
2021-11-16 00:22:18 +01:00
|
|
|
}
|
2021-11-17 16:32:18 +01:00
|
|
|
../../home-manager/modules/alacritty
|
2021-11-21 19:07:12 +01:00
|
|
|
../../home-manager/modules/bat
|
2021-12-10 20:11:36 +01:00
|
|
|
../../home-manager/modules/dropbox
|
2021-11-25 17:18:13 +01:00
|
|
|
../../home-manager/modules/dunst
|
2021-11-23 12:09:24 +01:00
|
|
|
../../home-manager/modules/electron
|
2021-11-17 16:32:18 +01:00
|
|
|
../../home-manager/modules/firefox
|
|
|
|
../../home-manager/modules/fish
|
2021-12-18 16:23:14 +01:00
|
|
|
../../home-manager/modules/foot
|
2021-11-21 19:07:12 +01:00
|
|
|
../../home-manager/modules/git
|
2021-11-17 16:32:18 +01:00
|
|
|
../../home-manager/modules/gpg
|
2021-12-18 16:23:14 +01:00
|
|
|
../../home-manager/modules/neovim
|
|
|
|
../../home-manager/modules/obs-studio
|
2021-11-17 16:32:18 +01:00
|
|
|
../../home-manager/modules/rofi
|
|
|
|
../../home-manager/modules/vscode
|
2021-12-24 17:57:22 +01:00
|
|
|
../../home-manager/modules/ssh
|
2021-11-12 17:10:17 +01:00
|
|
|
../../home-manager/modules/sway
|
2021-11-21 19:07:12 +01:00
|
|
|
../../home-manager/modules/tmux
|
2021-11-12 17:10:17 +01:00
|
|
|
../../home-manager/modules/waybar
|
|
|
|
];
|
|
|
|
};
|
2021-11-16 00:22:18 +01:00
|
|
|
|
2021-11-21 19:07:12 +01:00
|
|
|
programs = {
|
|
|
|
dconf.enable = true;
|
|
|
|
|
|
|
|
sway = {
|
|
|
|
enable = true;
|
|
|
|
wrapperFeatures = {
|
|
|
|
gtk = true;
|
|
|
|
base = true;
|
|
|
|
};
|
|
|
|
extraPackages = with pkgs; [ swaylock-effects swayidle ];
|
|
|
|
};
|
2021-11-25 17:18:13 +01:00
|
|
|
|
|
|
|
steam.enable = true;
|
2021-11-21 19:07:12 +01:00
|
|
|
};
|
|
|
|
|
2021-11-17 16:32:18 +01:00
|
|
|
xdg = {
|
|
|
|
mime.enable = true;
|
|
|
|
menus.enable = true;
|
|
|
|
icons.enable = true;
|
|
|
|
sounds.enable = true;
|
|
|
|
autostart.enable = true;
|
|
|
|
portal = {
|
|
|
|
enable = true;
|
|
|
|
wlr.enable = true;
|
2021-11-22 18:56:59 +01:00
|
|
|
extraPortals = with pkgs; [ xdg-desktop-portal-gtk ];
|
2021-11-17 16:32:18 +01:00
|
|
|
gtkUsePortal = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
services = {
|
2021-11-21 19:07:12 +01:00
|
|
|
dbus.packages = [ pkgs.gcr ];
|
2021-12-06 09:58:39 +01:00
|
|
|
avahi.publish.workstation = true;
|
2021-11-21 19:07:12 +01:00
|
|
|
};
|
2021-11-17 16:32:18 +01:00
|
|
|
|
2021-11-25 17:18:13 +01:00
|
|
|
security = {
|
|
|
|
pam.services.swaylock = {
|
|
|
|
text = ''
|
|
|
|
auth include login
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
pki.certificates = [ (builtins.readFile ./horus-ca.pem) ];
|
2021-11-16 00:22:18 +01:00
|
|
|
};
|
2021-11-22 18:56:59 +01:00
|
|
|
|
|
|
|
environment.sessionVariables = {
|
|
|
|
_JAVA_AWT_WM_NONREPARENTING = "1";
|
|
|
|
MOZ_ENABLE_WAYLAND = "1";
|
|
|
|
MOZ_DBUS_REMOTE = "1";
|
|
|
|
QT_QPA_PLATFORM = "wayland";
|
|
|
|
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
|
|
|
|
QT_QPA_PLATFORMTHEME = "qt5ct";
|
|
|
|
SDL_VIDEODRIVER = "wayland";
|
|
|
|
SSH_AUTH_SOCK = ''''${XDG_RUNTIME_DIR}/gnupg/S.gpg-agent.ssh'';
|
2021-11-29 08:05:46 +01:00
|
|
|
AMD_VULKAN_ICD = "RADV";
|
2021-11-22 18:56:59 +01:00
|
|
|
};
|
|
|
|
|
2021-12-18 16:23:14 +01:00
|
|
|
environment.etc = {
|
|
|
|
"X11/xkb".source = "${pkgs.xkeyboard_config}/etc/X11/xkb";
|
|
|
|
};
|
|
|
|
|
2021-11-12 17:10:17 +01:00
|
|
|
};
|
|
|
|
}
|