/
files.nix
67 lines (62 loc) · 3.41 KB
/
files.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{ config, pkgs, ... }:
{
systemd.user.tmpfiles.rules = [
"d ${config.xdg.userDirs.pictures}/Archive"
"d ${config.xdg.userDirs.pictures}/DCIM"
"d ${config.home.homeDirectory}/Applications"
"d ${config.home.homeDirectory}/Games"
"d ${config.xdg.configHome}/heroic"
"L ${config.xdg.configHome}/kwinrulesrc - - - - ${config.xdg.configHome}/home-manager/laptop/config/kwinrulesrc"
"C ${config.xdg.configHome}/spectaclerc - - - - ${config.xdg.configHome}/home-manager/laptop/config/spectaclerc"
"L ${config.xdg.configHome}/plasma-org.kde.plasma.desktop-appletsrc - - - - ${config.xdg.configHome}/home-manager/laptop/config/plasma-org.kde.plasma.desktop-appletsrc"
"L ${config.xdg.configHome}/spectaclerc - - - - ${config.xdg.configHome}/home-manager/pc/config/spectaclerc"
"L ${config.xdg.configHome}/input-remapper-2 - - - - ${config.xdg.configHome}/home-manager/laptop/config/input-remapper-2"
"L ${config.xdg.configHome}/heroic/sideload_apps - - - - ${config.xdg.configHome}/home-manager/laptop/config/heroic/sideload_apps"
"L ${config.xdg.configHome}/heroic/store - - - - ${config.xdg.configHome}/home-manager/laptop/config/heroic/store"
];
home.file."win11" = {
enable = true;
target = ".local/bin/win11";
executable = true;
text = ''
#!/usr/bin/bash
/usr/bin/virt-manager --connect qemu:///system --show-domain-console win11
'';
};
home.file."brave-wayland" = {
enable = true;
target = ".local/bin/brave-wayland";
executable = true;
text = ''
#!/usr/bin/bash
nixVulkanIntel nixGLIntel brave --enable-features=UseOzonePlatform,WebRTCPipeWireCapturer,VaapiVideoDecoder,VaapiVideoEncoder,WebUIDarkMode --extension-mime-request-handling=always-prompt-for-install --ozone-platform-hint=auto --force-dark-mode --enable-wayland-ime
'';
};
xdg.desktopEntries = {
"brave-browser" = {
name="Brave Web Browser";
genericName="Web Browser";
comment="Access the Internet";
startupNotify=true;
exec="nixVulkanIntel nixGLIntel brave --enable-features=UseOzonePlatform,WebRTCPipeWireCapturer,VaapiVideoDecoder,VaapiVideoEncoder,WebUIDarkMode --extension-mime-request-handling=always-prompt-for-install --ozone-platform-hint=auto --force-dark-mode --enable-wayland-ime %U";
terminal=false;
icon="brave-desktop";
type="Application";
categories=[ "Network" "WebBrowser" ];
mimeType=[ "application/pdf" "application/rdf+xml" "application/rss+xml" "application/xhtml+xml" "application/xhtml_xml" "application/xml" "image/gif" "image/jpeg" "image/png" "image/webp" "text/html" "text/xml" "x-scheme-handler/http" "x-scheme-handler/https" "x-scheme-handler/ipfs" "x-scheme-handler/ipns" ];
settings={
StartupWMClass ="brave-browser";
};
actions={
"new-window" = {
name="New Window";
exec="nixVulkanIntel nixGLIntel brave --enable-features=UseOzonePlatform,WebRTCPipeWireCapturer,VaapiVideoDecoder,VaapiVideoEncoder,WebUIDarkMode --extension-mime-request-handling=always-prompt-for-install --ozone-platform-hint=auto --force-dark-mode --enable-wayland-ime";
};
"new-private-window" = {
name="New Incognito Window";
exec="nixVulkanIntel nixGLIntel brave --incognito --enable-features=UseOzonePlatform,WebRTCPipeWireCapturer,VaapiVideoDecoder,VaapiVideoEncoder,WebUIDarkMode --extension-mime-request-handling=always-prompt-for-install ozone-platform-hint=auto --force-dark-mode --enable-wayland-ime";
};
};
};
};
}