feat: add script to dump dconf and convert it to nix, and setup automove windows and gnome tweaks

This commit is contained in:
HerozDotExe 2026-02-23 15:02:22 +01:00
parent 9731c873a6
commit 906cb30ef2
4 changed files with 31 additions and 0 deletions

13
cleanUpDconf.js Normal file
View file

@ -0,0 +1,13 @@
import fs from "fs/promises"
const original = await fs.readFile("./dconf.settings", {encoding: "utf-8"})
let cleanedLines = []
original.split("\n").forEach((line) => {
if(!line.startsWith("app-picker-layout")) {
cleanedLines.push(line)
}
})
await fs.writeFile("./dconf.settings", cleanedLines.join("\n"), "utf-8")

View file

@ -130,6 +130,8 @@
gnomeExtensions.clipboard-indicator
gnomeExtensions.forge
gnomeExtensions.media-controls
gnomeExtensions.auto-move-windows
gnome-tweaks
nodejs_24
pnpm
];

View file

@ -53,6 +53,7 @@ with lib.gvariant;
"blur-my-shell@aunetx"
"appindicatorsupport@rgcjonas.gmail.com"
"mediacontrols@cliffniff.github.com"
"auto-move-windows@gnome-shell-extensions.gcampax.github.com"
];
disabled-extensions = [ ];
favorite-apps = [
@ -84,6 +85,13 @@ with lib.gvariant;
natural-scroll = false;
speed = -0.28205128205128205;
};
"org/gnome/shell/extensions/auto-move-windows" = {
application-list = [
"io.bassi.Amberol.desktop:3"
"vesktop.desktop:3"
];
};
};
};
}

8
dconf.sh Executable file
View file

@ -0,0 +1,8 @@
#!/usr/bin/env nix-shell
#! nix-shell -i bash --pure
#! nix-shell -p bash dconf dconf2nix nodejs_24
dconf dump / > dconf.settings
node ./cleanUpDconf.js
cat dconf.settings | dconf2nix -i dconf.settings -o dconf.gen.nix