make sure bluetooth persists even after reboot

This commit is contained in:
christoph.hollizeck 2024-03-27 15:00:02 +01:00
parent 6f81c7c6e4
commit d84f355ede
7 changed files with 72 additions and 60 deletions

View file

@ -13,70 +13,71 @@ in {
enable = mkBoolOpt true "Whether or not to enable the fish shell"; enable = mkBoolOpt true "Whether or not to enable the fish shell";
}; };
config = mkIf cfg.enable { config =
home.packages = with pkgs.fishPlugins; [ mkIf cfg.enable {
forgit home.packages = with pkgs.fishPlugins; [
sponge forgit
]; sponge
];
programs = { programs = {
fish = { fish = {
enable = true; enable = true;
shellInit = " shellInit = "
zoxide init fish | source zoxide init fish | source
starship init fish | source starship init fish | source
"; ";
shellAliases = { shellAliases = {
vim = "nvim"; vim = "nvim";
ls = "colorls --gs"; ls = "colorls --gs";
l = "ls -l"; l = "ls -l";
la = "ls -a"; la = "ls -a";
lla = "ls -la"; lla = "ls -la";
lt = "ls --tree"; lt = "ls --tree";
};
};
starship = {
enable = true;
enableTransience = true;
settings = {
character = {
success_symbol = "[](bold green)";
error_symbol = "[](bold red) ";
vicmd_symbol = "[](bold blue) ";
};
time = {
disabled = false;
time_format = "%T";
utc_time_offset = "+1";
};
username = {
style_user = "#00de00";
style_root = "red";
format = "[$user]($style) ";
disabled = false;
show_always = true;
};
hostname = {
ssh_only = false;
format = "@ [$hostname](bold yellow) ";
disabled = false;
};
directory = {
home_symbol = "󰋞 ~";
read_only_style = "197";
read_only = " ";
format = "at [$path]($style)[$read_only]($read_only_style) ";
}; };
}; };
};
zoxide = { starship = {
enable = true; enable = true;
options = [ enableTransience = true;
"--cmd cd" settings = {
]; character = {
success_symbol = "[](bold green)";
error_symbol = "[](bold red) ";
vicmd_symbol = "[](bold blue) ";
};
time = {
disabled = false;
time_format = "%T";
utc_time_offset = "+1";
};
username = {
style_user = "#00de00";
style_root = "red";
format = "[$user]($style) ";
disabled = false;
show_always = true;
};
hostname = {
ssh_only = false;
format = "@ [$hostname](bold yellow) ";
disabled = false;
};
directory = {
home_symbol = "󰋞 ~";
read_only_style = "197";
read_only = " ";
format = "at [$path]($style)[$read_only]($read_only_style) ";
};
};
};
zoxide = {
enable = true;
options = [
"--cmd cd"
];
};
}; };
}; };
};
} }

View file

@ -23,7 +23,7 @@ in {
lfs = enabled; lfs = enabled;
extraConfig = { extraConfig = {
init = {defaultBranch = "main";}; init = {defaultBranch = "main";};
pull = {rebase = false;}; pull = {rebase = false;};
push = {autoSetupRemote = true;}; push = {autoSetupRemote = true;};
}; };
}; };

View file

@ -22,6 +22,10 @@ in {
socials = enabled; socials = enabled;
}; };
system.hardware = {
audio = enabled;
};
apps = { apps = {
vivaldi = enabled; vivaldi = enabled;
}; };

View file

@ -18,5 +18,11 @@ in {
enable = true; enable = true;
powerOnBoot = true; powerOnBoot = true;
}; };
fileSystems."/var/lib/bluetooth" = {
device = "/persist/var/lib/bluetooth";
options = ["bind" "noauto" "x-systemd.automount"];
noCheck = true;
};
}; };
} }

View file

@ -27,7 +27,7 @@ in {
lfs.enable = true; lfs.enable = true;
config = { config = {
init = {defaultBranch = "main";}; init = {defaultBranch = "main";};
pull = {rebase = false;}; pull = {rebase = false;};
push = {autoSetupRemote = true;}; push = {autoSetupRemote = true;};
}; };
}; };

View file

@ -12,7 +12,6 @@ with lib.wyrdgard; {
virtualisation.hypervGuest.videoMode = "1920x1080"; virtualisation.hypervGuest.videoMode = "1920x1080";
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
]; ];
environment.variables.EDITOR = "nvim"; environment.variables.EDITOR = "nvim";

View file

@ -39,6 +39,8 @@ with lib.wyrdgard; {
discord = enabled; discord = enabled;
_1password = enabled; _1password = enabled;
}; };
system.hardware.bluetooth = enabled;
}; };
services.xserver.videoDrivers = ["nvidia"]; services.xserver.videoDrivers = ["nvidia"];