feat(modules/deck,modules/malte): drop USB config, add SD config, add mysql service

This commit is contained in:
Malte Tammena 2023-11-30 18:22:38 +01:00
parent 5ad07e4f25
commit ab3f72ace2
3 changed files with 22 additions and 33 deletions

View file

@ -112,10 +112,6 @@
services.login.yubicoAuth = true;
};
# TODO: Remove/Move
services.mysql.enable = true;
services.mysql.package = pkgs.mariadb;
services.udev.customRules = [
# Rename the Scarlett Solo using udev
{

View file

@ -34,21 +34,15 @@ in {
openssh.authorizedKeys.keyFiles = [../users/malte/yubikey.pub];
};
# My huge NVME USB Stick
fileSystems."/butterjunge" = {
device = "/dev/disk/by-id/usb-SHARGE_DISK_012345679841-0:0-part2";
fsType = "btrfs";
options = [
"compress=lzo"
];
};
fileSystems."/home/deck/butterjunge" = {
device = "/butterjunge";
options = [
"bind"
"compress=lzo"
"map=1000/deck:@100/@users"
];
# include the sd card, if any is inserted
fileSystems = {
"/home/deck/sdcard" = {
device = "/dev/mmcblk0p1";
fsType = "ext4";
options = [
"nofail"
];
};
};
home-manager.users.deck.imports = [../users/deck/home.nix inputs.nix-colors.homeManagerModule inputs.hyprland.homeManagerModules.default];

View file

@ -59,20 +59,19 @@ in {
enableNvidiaPatches = config.settings.nvidiaUsed;
};
# My huge NVME USB Stick
fileSystems."/butterjunge" = {
device = "/dev/disk/by-id/usb-SHARGE_DISK_012345679841-0:0-part2";
fsType = "btrfs";
options = [
"compress=lzo"
];
};
fileSystems."/home/malte/butterjunge" = {
device = "/butterjunge";
options = [
"bind"
"compress=lzo"
"map=1000/malte:@100/@users"
# TODO: Remove/Move
services.mysql = {
enable = true;
package = pkgs.mariadb;
ensureDatabases = ["notenbuch"];
ensureUsers = [
{
name = "malte";
ensurePermissions = {
"notenbuch.*" = "ALL PRIVILEGES";
"*.*" = "CREATE USER, GRANT OPTION, RELOAD, SELECT, DROP";
};
}
];
};