Compare commits
12 Commits
7bacc8ae06
...
e454e12d2f
| Author | SHA1 | Date | |
|---|---|---|---|
|
e454e12d2f
|
|||
|
44a72b39e4
|
|||
|
4af7226777
|
|||
|
28c59be2a7
|
|||
|
51b882f2c5
|
|||
|
13b69ccc95
|
|||
|
be5fd3b9ff
|
|||
|
20ddfb5ddd
|
|||
|
4d2949ab93
|
|||
|
e0faac096b
|
|||
|
1c6708bad5
|
|||
|
a07742a206
|
@@ -22,10 +22,17 @@
|
||||
nixosDirs = [
|
||||
"/root"
|
||||
"/var"
|
||||
"/etc/ssh"
|
||||
];
|
||||
nixosFiles = [
|
||||
"/etc/machine-id"
|
||||
];
|
||||
homeDirs = [
|
||||
{
|
||||
directory = ".ssh";
|
||||
mode = "0700";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -12,20 +12,11 @@
|
||||
"workspace"
|
||||
"Virt"
|
||||
|
||||
{
|
||||
directory = ".ssh";
|
||||
mode = "0700";
|
||||
}
|
||||
".local/state"
|
||||
".local/share"
|
||||
".local/share/nvim"
|
||||
".cache"
|
||||
|
||||
".ollama"
|
||||
];
|
||||
nixosDirs = [
|
||||
"/etc/ssh"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -22,19 +22,9 @@
|
||||
ayugram-desktop
|
||||
telegram-desktop
|
||||
signal-desktop
|
||||
cinny-desktop
|
||||
discord
|
||||
(master.qq.overrideAttrs (
|
||||
final: prev: {
|
||||
preInstall =
|
||||
prev.preInstall or ""
|
||||
+ ''
|
||||
gappsWrapperArgs+=(
|
||||
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--wayland-text-input-version=3}}"
|
||||
)
|
||||
'';
|
||||
}
|
||||
))
|
||||
qq
|
||||
wechat
|
||||
|
||||
gnome-clocks
|
||||
|
||||
@@ -164,52 +154,32 @@
|
||||
".android"
|
||||
"Android"
|
||||
|
||||
".ssh"
|
||||
|
||||
"bin"
|
||||
"workspace"
|
||||
"WineApps"
|
||||
"Virt"
|
||||
|
||||
".cache"
|
||||
".local/state"
|
||||
".local/share/Anki2"
|
||||
".local/share/dooit"
|
||||
".local/share/nvim"
|
||||
".local/share/shotwell"
|
||||
".local/share/Steam"
|
||||
".local/share/SteamOS"
|
||||
".local/share/Trash"
|
||||
".local/share/cheat.sh"
|
||||
".local/share/Kingsoft"
|
||||
".local/share/oss.krtirtho.spotube"
|
||||
|
||||
".local/share/AyuGramDesktop"
|
||||
".local/share/TelegramDesktop"
|
||||
".local/share/cinny"
|
||||
".config/Signal"
|
||||
".config/discord"
|
||||
".config/QQ"
|
||||
".xwechat"
|
||||
|
||||
".config/Kingsoft"
|
||||
".config/dconf"
|
||||
".config/gh"
|
||||
".config/pulse"
|
||||
".config/go-musicfox/db"
|
||||
".config/pip"
|
||||
".config/obs-studio"
|
||||
".config/libreoffice"
|
||||
".config/Moonlight Game Streaming Project"
|
||||
".config/sunshine"
|
||||
];
|
||||
nixosDirs = [
|
||||
"/etc/ssh"
|
||||
];
|
||||
homeFiles = [
|
||||
".config/mpd/mpd.db" # requires bindfs
|
||||
".config/go-musicfox/cookie"
|
||||
".hmcl.json"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -23,6 +23,13 @@ lib.my.makeSwitch {
|
||||
};
|
||||
|
||||
cli.media.mpd.enable = true;
|
||||
|
||||
persist.homeDirs = [
|
||||
".config/go-musicfox/db"
|
||||
];
|
||||
persist.homeFiles = [
|
||||
".config/go-musicfox/cookie"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -21,5 +21,8 @@ lib.my.makeSwitch {
|
||||
services.mpris-proxy.enable = true;
|
||||
xdg.configFile."mpd/mpd.conf".source = ./mpd.conf;
|
||||
};
|
||||
my.persist.homeFiles = [
|
||||
".config/mpd/mpd.db"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -58,11 +58,7 @@ lib.my.makeSwitch {
|
||||
aria2
|
||||
socat
|
||||
|
||||
trash-cli
|
||||
|
||||
cht-sh
|
||||
|
||||
dooit
|
||||
];
|
||||
programs.tmux = {
|
||||
enable = true;
|
||||
|
||||
@@ -54,5 +54,8 @@ lib.my.makeHomeProgramConfig {
|
||||
];
|
||||
};
|
||||
};
|
||||
my.persist.homeDirs = [
|
||||
".local/share/nvim"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -179,6 +179,23 @@ local plugins = {
|
||||
require("telescope").setup(require("plugins.telescope"))
|
||||
end,
|
||||
},
|
||||
{
|
||||
"ggandor/leap.nvim",
|
||||
dependencies = { "tpope/vim-repeat" },
|
||||
config = function()
|
||||
require("leap").set_default_mappings()
|
||||
-- Exclude whitespace and the middle of alphabetic words from preview:
|
||||
-- foobar[baaz] = quux
|
||||
-- ^----^^^--^^-^-^--^
|
||||
require('leap').opts.preview_filter = function(ch0, ch1, ch2)
|
||||
return not (
|
||||
ch1:match('%s') or
|
||||
ch0:match('%a') and ch1:match('%a') and ch2:match('%a')
|
||||
)
|
||||
end
|
||||
require('leap.user').set_repeat_keys('<enter>', '<backspace>')
|
||||
end
|
||||
},
|
||||
{
|
||||
"alexghergh/nvim-tmux-navigation",
|
||||
event = "VeryLazy",
|
||||
@@ -189,6 +206,7 @@ local plugins = {
|
||||
{
|
||||
"MeanderingProgrammer/render-markdown.nvim",
|
||||
dependencies = { "nvim-treesitter/nvim-treesitter", "nvim-tree/nvim-web-devicons" },
|
||||
event = "BufEnter *.md",
|
||||
opts = {},
|
||||
},
|
||||
{
|
||||
|
||||
@@ -24,6 +24,9 @@ lib.my.makeSwitch {
|
||||
prefix = ''${HOME}/.npm-global
|
||||
registry = https://registry.npmmirror.com
|
||||
'';
|
||||
programs.zsh.initContent = lib.mkAfter ''
|
||||
export PATH=$PATH:$HOME/.npm-global/bin
|
||||
'';
|
||||
};
|
||||
my.persist.homeDirs = [
|
||||
".npm"
|
||||
|
||||
@@ -17,6 +17,7 @@ lib.my.makeSwitch {
|
||||
wm.all.enable = true;
|
||||
style.enable = true;
|
||||
quickshell.enable = true;
|
||||
wine.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -23,5 +23,8 @@ lib.my.makeSwitch {
|
||||
".minecraft"
|
||||
".local/share/hmcl"
|
||||
];
|
||||
my.persist.homeFiles = [
|
||||
".hmcl.json"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -20,5 +20,8 @@ lib.my.makeSwitch {
|
||||
gamescope
|
||||
];
|
||||
};
|
||||
my.persist.homeDirs = [
|
||||
".local/share/Steam"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -13,4 +13,9 @@ lib.my.makeHomePackageConfig {
|
||||
"media"
|
||||
"spotube"
|
||||
];
|
||||
extraConfig = {
|
||||
my.persist.homeDirs = [
|
||||
".local/share/oss.krtirtho.spotube"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -21,5 +21,8 @@ lib.my.makeSwitch {
|
||||
];
|
||||
})
|
||||
];
|
||||
my.persist.homeDirs = [
|
||||
".config/obs-studio"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
25
modules/desktop/wine.nix
Normal file
25
modules/desktop/wine.nix
Normal file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
lib.my.makeSwitch {
|
||||
inherit config;
|
||||
default = true;
|
||||
optionName = "wine";
|
||||
optionPath = [
|
||||
"desktop"
|
||||
"wine"
|
||||
];
|
||||
config' = {
|
||||
my.home.home.packages = with pkgs; [
|
||||
wineWayland
|
||||
proton-ge-custom
|
||||
bottles
|
||||
];
|
||||
my.persist.homeDirs = [
|
||||
".local/share/bottles"
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -128,15 +128,12 @@
|
||||
{
|
||||
"Ctrl+Alt+T".action.spawn = [
|
||||
"kitty"
|
||||
"-1"
|
||||
];
|
||||
"Mod+T".action.spawn = [
|
||||
"kitty"
|
||||
"-1"
|
||||
];
|
||||
"Mod+Return".action.spawn = [
|
||||
"kitty"
|
||||
"-1"
|
||||
];
|
||||
"Mod+G".action.spawn = [ "zen-beta" ];
|
||||
"Mod+E".action.spawn = [ "nemo" ];
|
||||
|
||||
@@ -37,7 +37,7 @@ lib.my.makeSwitch {
|
||||
# Deduplicate and optimize nix store
|
||||
auto-optimise-store = true;
|
||||
substituters = [
|
||||
# "https://mirror.sjtu.edu.cn/nix-channels/store"
|
||||
"https://mirror.sjtu.edu.cn/nix-channels/store"
|
||||
"https://mirrors.sjtug.sjtu.edu.cn/nix-channels/store"
|
||||
"https://mirrors.ustc.edu.cn/nix-channels/store"
|
||||
"https://nix-community.cachix.org"
|
||||
|
||||
@@ -32,6 +32,11 @@ in
|
||||
"virt"
|
||||
"moonlight"
|
||||
];
|
||||
extraConfig = {
|
||||
my.persist.homeDirs = [
|
||||
".config/Moonlight Game Streaming Project"
|
||||
];
|
||||
};
|
||||
})
|
||||
];
|
||||
|
||||
|
||||
@@ -7,6 +7,12 @@
|
||||
infuse prev {
|
||||
cage.__output.patches.__append = [ ./cage-specify-output-name.patch ];
|
||||
matrix-synapse.__assign = final.stable.matrix-synapse;
|
||||
bottles.__input.removeWarningPopup.__assign = true;
|
||||
qq.__output.preInstall.__append = ''
|
||||
gappsWrapperArgs+=(
|
||||
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--wayland-text-input-version=3}}"
|
||||
)
|
||||
'';
|
||||
};
|
||||
|
||||
# this allows us to access specific version of nixpkgs
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"data": "ENC[AES256_GCM,data:vq2ezKQE7Flae7h59qskI7N3pwCQFQCdADeRppBBOhlzXcfMbf7hquJ4XO/xCztvBM01GkcdiSL/imcL83q+zRXKhAcOiV/M//s=,iv:QPiFKMrX+7X9wwMHghXNN2X0dCAGTN85dsmJibZognk=,tag:EabTMy1YcklDvLr0WmtP7Q==,type:str]",
|
||||
"data": "ENC[AES256_GCM,data:7VtJ88KkGDRsHwqxjau5rZIOffHwT+zP214BKX9GQiXi2PTdCKAkNA78kJLL3Ru/+mR6f1McZapkwlFBnyoG+qrI+fyj5qhMqmk=,iv:GE2Caho/Ng7opzLD65WLMU4pZqHlllacT0IClz8cXlE=,tag:/VupPxTEvaaXEIpjVc2CUg==,type:str]",
|
||||
"sops": {
|
||||
"age": [
|
||||
{
|
||||
@@ -15,9 +15,9 @@
|
||||
"enc": "-----BEGIN AGE ENCRYPTED FILE-----\nYWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBZRmpCRkZJNDYrZWp4dlJ6\nanY4cGp0cWduRWh6Smt2bCtCYXVKMGMrcFh3CmlNWW5YUGwrRjZHY2g3V0lwS011\nejRZbUVTMWlXVFU0aGpGUzJwZUdhbTAKLS0tIG85ZFBGRko1cm9WQVlXYWxBaENK\nT1d1ZVNMMGpBVkJwQnIxL1pjcWZFbDAKxfLrKO1Pf0RuomXbrG0RAOtPvPX+uqwf\ngnhIZMdjtOClZJBybCjqYbtpG3eOcmteTfc2MbWPbCHSSn0XaTsONw==\n-----END AGE ENCRYPTED FILE-----\n"
|
||||
}
|
||||
],
|
||||
"lastmodified": "2025-04-13T06:45:42Z",
|
||||
"mac": "ENC[AES256_GCM,data:pVo1se/bQsIFLru+AL5JMEzqm05uU3Ei4gSKuAW94cV8nLGze8kDqVt5HY5JQIyPg/5HQjMhnozdn3u8YkG5NPMMAOVxSm79yeAjLjHhH9xj+mWB+z1uHq+zUK2omF2UuQO/jt6juGDQCUscjdQL2EY2UubdNV0xYexagXEbwSs=,iv:2ic3sGINuLfqDlfWAq5JlDlYA9PG1pTpBCbYffZqcjI=,tag:G2Y8y8YM6hiTBQB/eDjpNw==,type:str]",
|
||||
"lastmodified": "2025-06-28T14:43:36Z",
|
||||
"mac": "ENC[AES256_GCM,data:ZrmJFSXOCrf5Nvf+v0IzEa8RH/3ZdmcD/mQBSUQ5SBSKOyh+uQcBQF5+aRe9GXjEyOVJolYA25xEHi8YyNI3+/VvAAPaP4g0LA22gpLelP7zvJBGB4F/74SbmkmkkU1yMSCihcyBrxQVtcPU3jtyLsyMalbigYOf28BInqxFNqM=,iv:h/VzHqyvIxBzNJ+IH8Ei/A5OV5QL73MKV92ayFxs81Y=,tag:WXqLzUGWkeEdaHnWcJAhgw==,type:str]",
|
||||
"unencrypted_suffix": "_unencrypted",
|
||||
"version": "3.10.1"
|
||||
"version": "3.10.2"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user