Compare commits
10 commits
7f0cca311d
...
1373fd779e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1373fd779e | ||
|
|
0e65aa19d9 | ||
|
|
eb8bee6160 | ||
|
|
3a74f7d044 | ||
|
|
659ff3b169 | ||
|
|
289f48fef9 | ||
|
|
66b0945abd | ||
|
|
a83ec768eb | ||
|
|
0eb50e795f | ||
|
|
63adf38a35 |
5 changed files with 98 additions and 20 deletions
|
|
@ -1,21 +1,19 @@
|
||||||
{
|
{
|
||||||
flake.nixosModules.flameshot = {
|
flake.nixosModules.flameshot = { pkgs, ... }: {
|
||||||
services.flameshot = {
|
environment.systemPackages = with pkgs; [
|
||||||
enable = true;
|
flameshot
|
||||||
General = {
|
grim
|
||||||
showStartupLaunchMessage = false;
|
slurp
|
||||||
useGrimAdapter = true;
|
satty
|
||||||
disabledGrimWarning = true;
|
wl-clipboard
|
||||||
};
|
];
|
||||||
};
|
|
||||||
|
environment.etc."xdg/flameshot/flameshot.ini".text = ''
|
||||||
|
[General]
|
||||||
|
contrastOpacity=188
|
||||||
|
startupLaunch=true
|
||||||
|
useGrimAdapter=true
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
environment.systemPackages = [
|
|
||||||
flameshot
|
|
||||||
grim
|
|
||||||
slurp
|
|
||||||
satty
|
|
||||||
wl-copy
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -123,9 +123,21 @@
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
matches = [ { app-id="^flameshot$" } ];
|
matches = [ { app-id="^flameshot$"; } ];
|
||||||
open-floating = true;
|
open-floating = true;
|
||||||
};
|
}
|
||||||
|
{
|
||||||
|
matches = [ { app-id="^Lens$"; } ];
|
||||||
|
open-maximized = true;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
matches = [ { app-id="^element$"; } ];
|
||||||
|
open-maximized = true;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
matches = [ { app-id = "^brave-.+-Default$"; title = "^Bitwarden$"; } ];
|
||||||
|
open-floating = true;
|
||||||
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
binds = {
|
binds = {
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,42 @@
|
||||||
lutris
|
lutris
|
||||||
steam
|
steam
|
||||||
easyeffects
|
easyeffects
|
||||||
|
openssl
|
||||||
|
jq
|
||||||
|
|
||||||
|
# Wrap Element so it knows where gnome-libsecret is
|
||||||
|
# Additionally, override the config to disable legacy call protocol
|
||||||
|
(let
|
||||||
|
elementConfig = pkgs.writeText "element-config.json" (builtins.toJSON {
|
||||||
|
default_server_config = {
|
||||||
|
"m.homeserver" = {
|
||||||
|
base_url = "https://starling.mynest.love";
|
||||||
|
server_name = "starling.mynest.love";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
features = {
|
||||||
|
"feature_group_calls" = true;
|
||||||
|
"feature_video_rooms" = true;
|
||||||
|
"feature_element_call_video_rooms" = true;
|
||||||
|
};
|
||||||
|
element_call = {
|
||||||
|
url = null;
|
||||||
|
use_exclusively = true;
|
||||||
|
};
|
||||||
|
jitsi = {
|
||||||
|
preferred_domain = null;
|
||||||
|
};
|
||||||
|
});
|
||||||
|
in symlinkJoin {
|
||||||
|
name = "element-desktop";
|
||||||
|
paths = [ element-desktop ];
|
||||||
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
postBuild = ''
|
||||||
|
wrapProgram $out/bin/element-desktop \
|
||||||
|
--add-flags "--password-store=gnome-libsecret" \
|
||||||
|
--set ELEMENT_DESKTOP_CONFIG_JSON "${elementConfig}"
|
||||||
|
'';
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
|
|
@ -63,6 +99,29 @@
|
||||||
blueman.enable = true;
|
blueman.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.ollama = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.ollama-rocm;
|
||||||
|
environmentVariables = {
|
||||||
|
HSA_OVERRIDE_GFX_VERSION = "10.3.0";
|
||||||
|
};
|
||||||
|
loadModels = [ "deepseek-r1:32b" "qwen3.5:14b" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
services.open-webui = {
|
||||||
|
enable = true;
|
||||||
|
host = "127.0.0.1";
|
||||||
|
port = 8080;
|
||||||
|
environment = {
|
||||||
|
OLLAMA_API_BASE_URL = "http://127.0.0.1:11434";
|
||||||
|
|
||||||
|
# Keep telemetry disabled to ensure complete privacy
|
||||||
|
ANONYMIZED_TELEMETRY = "False";
|
||||||
|
DO_NOT_TRACK = "True";
|
||||||
|
SCARF_NO_ANALYTICS = "True";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
loader = {
|
loader = {
|
||||||
systemd-boot.enable = true;
|
systemd-boot.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,7 @@
|
||||||
services.k3s = {
|
services.k3s = {
|
||||||
enable = true;
|
enable = true;
|
||||||
role = "agent";
|
role = "agent";
|
||||||
|
package = pkgs.k3s_1_36;
|
||||||
|
|
||||||
serverAddr = "https://192.168.1.122:6443";
|
serverAddr = "https://192.168.1.122:6443";
|
||||||
tokenFile = "/var/lib/rancher/k3s/join-token";
|
tokenFile = "/var/lib/rancher/k3s/join-token";
|
||||||
|
|
@ -87,6 +88,7 @@
|
||||||
server.enable = true;
|
server.enable = true;
|
||||||
server.exports = ''
|
server.exports = ''
|
||||||
/export/yarr 192.168.1.0/16(rw,secure,anonuid=1000,anongid=1000,all_squash)
|
/export/yarr 192.168.1.0/16(rw,secure,anonuid=1000,anongid=1000,all_squash)
|
||||||
|
/export/nextcloud 192.168.1.0/16(rw,secure,no_root_squash)
|
||||||
/export 192.168.1.0/16(ro,fsid=0,root_squash,subtree_check,secure)
|
/export 192.168.1.0/16(ro,fsid=0,root_squash,subtree_check,secure)
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
@ -101,9 +103,16 @@
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
options = [ "bind" ];
|
options = [ "bind" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
fileSystems."/export/nextcloud" = {
|
||||||
|
device = "/mnt/raid/nextcloud";
|
||||||
|
fsType = "ext4";
|
||||||
|
options = [ "bind" ];
|
||||||
|
};
|
||||||
|
|
||||||
networking.firewall = {
|
networking.firewall = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
trustedInterfaces = [ "cni0" "flannel.1" ];
|
||||||
|
|
||||||
allowedTCPPorts = [
|
allowedTCPPorts = [
|
||||||
22 # SSH (CRITICAL: Do not remove)
|
22 # SSH (CRITICAL: Do not remove)
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
users.users.nest = {
|
users.users.nest = {
|
||||||
description = "nest";
|
description = "nest";
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = [ "wheel" "network" ];
|
extraGroups = [ "wheel" "network" "render" "video" ];
|
||||||
shell = pkgs.zsh;
|
shell = pkgs.zsh;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue