forked from aylac.top/nixcfg
this repo has no description

lallala

Changed files
+43 -16
hosts
jezebel
morgana
modules
home
desktop
gnome
programs
chromium
firefox
betterfox
mpv
nixos
profiles
btrfs
programs
firefox
lanzaboote
services
dnsmasq
snippets
tailnet
+3 -3
flake.lock
···
"secrets": {
"flake": false,
"locked": {
-
"lastModified": 1755538042,
-
"narHash": "sha256-kL2EyRZPQUUqdurdwJjtbqNhAUJ5Rmr9FnrGvgzINag=",
+
"lastModified": 1755567543,
+
"narHash": "sha256-ReQ7sLfWYvtrZ+k2y2Fww3eKxrL8TSnxX4YE3HrGa28=",
"owner": "ayla6",
"repo": "secrets",
-
"rev": "a81f823b6c21211436c2e1114534a6bb41f11462",
+
"rev": "7a6420dfc665bee84133361782630be2883110f4",
"type": "github"
},
"original": {
+4 -1
hosts/jezebel/default.nix
···
};
profiles = {
base.enable = true;
-
btrfs.enable = true;
+
btrfs = {
+
enable = true;
+
deduplicate = true;
+
};
server.enable = true;
backups.enable = true;
vps.enable = true;
+4 -1
hosts/morgana/default.nix
···
};
desktop.gnome.enable = true;
services = {
-
# i can't make caddy work :(
caddy.enable = true;
+
dnsmasq = {
+
enable = true;
+
longCaches = false;
+
};
tailscale = {
enable = true;
enableCaddy = true;
+1 -1
modules/home/desktop/gnome/default.nix
···
switch-to-application-10 = [];
};
-
"org/gnome/system/location".enabled = true;
+
"org/gnome/system/location".enabled = false;
"org/gnome/desktop/wm/keybindings" = {
move-to-monitor-down = [
+3 -2
modules/home/programs/chromium/default.nix
···
extensions = [
{id = "ddkjiahejlhfcafbddmgiahcphecmpfh";} # ublock origin lite
+
{id = "cjpalhdlnbpafiamejdnhcphjbkeiagm";} # ublock origin
{id = "mdjildafknihdffpkfmmpnpoiajfjnjd";} # consent-o-matic
{id = "clngdbkpkpeebahjckkjfobafhncgmne";} # stylus
{id = "oboonakemofpalcgghocfoadofidjkkk";} # keepassxc
···
package =
if pkgs.stdenv.isDarwin
then (pkgs.runCommand "chromium-0.0.0" {} "mkdir $out")
-
else pkgs.chromium;
-
# else pkgs.ungoogled-chromium;
+
# else pkgs.chromium;
+
else pkgs.ungoogled-chromium;
commandLineArgs = lib.mkIf pkgs.stdenv.isLinux [
"--enable-features=TouchpadOverscrollHistoryNavigation"
+2 -2
modules/home/programs/firefox/betterfox/securefox.nix
···
# "accessibility.force_disabled" = 1;
# "devtools.accessibility.enabled" = false;
-
"identity.fxaccounts.enabled" = false;
-
"identity.fxaccounts.autoconfig.uri" = "";
+
# "identity.fxaccounts.enabled" = false;
+
# "identity.fxaccounts.autoconfig.uri" = "";
#############################################################
# SECTION: TELEMETRY
-1
modules/home/programs/mpv/default.nix
···
config = {
# Video output and rendering
vo = "gpu-next";
-
hwdec = "vaapi";
dither-depth = "auto";
# Window and display
+1 -1
modules/nixos/profiles/btrfs/default.nix
···
value = {
# hashTableSizeMB = 2048;
# this is ugly but who cares, i can't just get the size of the partition
-
# basically it's like, if it's one /data and on morgana then for sure it's like a terabyte of data, if it's on nanpi then it's 512gb, anything else is my laptop's ssd, 128gb, so 16mb
+
# basically it's like, if it's one /data and on morgana then for sure it's like a terabyte of data, if it's on nanpi then it's 512gb, anything else is my laptop's ssd, 128gb, so 16mb, but could also be the tiny 20gb jezebel disk, as it can't go lower than 16mb
hashTableSizeMB =
if config.networking.hostName == "morgana" && fs.mountPoint == "/data"
then 128
+1 -1
modules/nixos/programs/firefox/default.nix
···
DisableSetDesktopBackground = true;
DisableTelemetry = true;
DisplayBookmarksToolbar = "newtab";
-
DisableFirefoxAccounts = true;
+
#DisableFirefoxAccounts = true;
DisableSafeMode = true;
AutofillAddressEnabled = false;
+3
modules/nixos/programs/lanzaboote/default.nix
···
configurationLimit = 10;
pkiBundle = lib.mkDefault "/var/lib/sbctl";
sortKey = "lanza";
+
settings = {
+
inherit (config.boot.loader) timeout;
+
};
};
loader = {
+16 -3
modules/nixos/services/dnsmasq/default.nix
···
config,
...
}: {
-
options.myNixOS.services.dnsmasq.enable = lib.mkEnableOption "dnsmasq";
+
options.myNixOS.services.dnsmasq = {
+
enable = lib.mkEnableOption "dnsmasq";
+
longCaches = lib.mkOption {
+
type = lib.types.bool;
+
default = true;
+
description = "Have really long cache times.";
+
};
+
};
config = lib.mkIf config.myNixOS.services.dnsmasq.enable {
services.dnsmasq = {
···
server = ["100.100.100.100"];
-
min-cache-ttl = 3600;
-
max-cache-ttl = 172800;
+
min-cache-ttl =
+
if config.myNixOS.services.dnsmasq.longCaches
+
then 3600
+
else 300;
+
max-cache-ttl =
+
if config.myNixOS.services.dnsmasq.longCaches
+
then 172800
+
else 3600;
};
};
services.tailscale.extraUpFlags = ["--accept-dns=false"];
+5
modules/snippets/tailnet/default.nix
···
port = 3008;
vHost = "uptime-kuma.${config.mySnippets.tailnet.name}";
};
+
+
davis = {
+
hostName = "nanpi";
+
vHost = "davis.${config.mySnippets.tailnet.name}";
+
};
};
};
};