Compare commits
No commits in common. "1373fd779e8932e538110301b801944b89838c47" and "7f0cca311d49cc46554112d4d3e73a4b87c0a8f9" have entirely different histories.
1373fd779e
...
7f0cca311d
5 changed files with 20 additions and 98 deletions
|
|
@ -1,19 +1,21 @@
|
||||||
{
|
{
|
||||||
flake.nixosModules.flameshot = { pkgs, ... }: {
|
flake.nixosModules.flameshot = {
|
||||||
environment.systemPackages = with pkgs; [
|
services.flameshot = {
|
||||||
flameshot
|
enable = true;
|
||||||
grim
|
General = {
|
||||||
slurp
|
showStartupLaunchMessage = false;
|
||||||
satty
|
useGrimAdapter = true;
|
||||||
wl-clipboard
|
disabledGrimWarning = true;
|
||||||
];
|
};
|
||||||
|
};
|
||||||
environment.etc."xdg/flameshot/flameshot.ini".text = ''
|
|
||||||
[General]
|
|
||||||
contrastOpacity=188
|
|
||||||
startupLaunch=true
|
|
||||||
useGrimAdapter=true
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
environment.systemPackages = [
|
||||||
|
flameshot
|
||||||
|
grim
|
||||||
|
slurp
|
||||||
|
satty
|
||||||
|
wl-copy
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -123,21 +123,9 @@
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
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,42 +37,6 @@
|
||||||
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 = [
|
||||||
|
|
@ -99,29 +63,6 @@
|
||||||
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,7 +37,6 @@
|
||||||
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";
|
||||||
|
|
@ -88,7 +87,6 @@
|
||||||
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)
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
@ -103,16 +101,9 @@
|
||||||
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" "render" "video" ];
|
extraGroups = [ "wheel" "network" ];
|
||||||
shell = pkgs.zsh;
|
shell = pkgs.zsh;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue