fixes
This commit is contained in:
parent
550ce08e41
commit
d6157016cd
5
common/atuin.nix
Normal file
5
common/atuin.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
services.atuin = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./atuin.nix
|
||||
./avahi.nix
|
||||
./boot.nix
|
||||
./cli.nix
|
||||
|
@ -10,6 +11,7 @@
|
|||
./opengl.nix
|
||||
./readline.nix
|
||||
./ssh.nix
|
||||
./starship.nix
|
||||
./sudo.nix
|
||||
./swap.nix
|
||||
./users.nix
|
||||
|
|
9
common/starship.nix
Normal file
9
common/starship.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
interactiveOnly = true;
|
||||
settings = {
|
||||
format = "$all";
|
||||
};
|
||||
};
|
||||
}
|
12
flake.lock
12
flake.lock
|
@ -113,11 +113,11 @@
|
|||
},
|
||||
"impermanence": {
|
||||
"locked": {
|
||||
"lastModified": 1706639736,
|
||||
"narHash": "sha256-CaG4j9+UwBDfinxxvJMo6yOonSmSo0ZgnbD7aj2Put0=",
|
||||
"lastModified": 1708968331,
|
||||
"narHash": "sha256-VUXLaPusCBvwM3zhGbRIJVeYluh2uWuqtj4WirQ1L9Y=",
|
||||
"owner": "nix-community",
|
||||
"repo": "impermanence",
|
||||
"rev": "cd13c2917eaa68e4c49fea0ff9cada45440d7045",
|
||||
"rev": "a33ef102a02ce77d3e39c25197664b7a636f9c30",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -212,11 +212,11 @@
|
|||
},
|
||||
"nixpkgs_3": {
|
||||
"locked": {
|
||||
"lastModified": 1708799930,
|
||||
"narHash": "sha256-iYxdinEfweRXcMq/ijt0qS1pRMCfqqUXDqERZ+AA/cw=",
|
||||
"lastModified": 1709018681,
|
||||
"narHash": "sha256-nJXhGOM5Sk1TjtGQjP1qfrq/dNyCakAjHINUF76VBhA=",
|
||||
"owner": "K900",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "1e3e89f6f837ebb2650634829c3d9e8384dc0867",
|
||||
"rev": "d4a80ff23f9a4465a01a1aab462338e6837ea9be",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
@ -24,4 +24,6 @@
|
|||
system.stateVersion = "24.05";
|
||||
|
||||
powerManagement.cpuFreqGovernor = "powersave";
|
||||
|
||||
environment.persistence."/persist".directories = ["/srv/storage"];
|
||||
}
|
||||
|
|
|
@ -27,13 +27,13 @@ choices=("$@")
|
|||
shift "$#"
|
||||
|
||||
function chose() {
|
||||
if [[ ''${#choices[@]} == 0 ]]; then
|
||||
if [[ ${#choices[@]} == 0 ]]; then
|
||||
return 0
|
||||
fi
|
||||
local arg
|
||||
for arg in "$@"; do
|
||||
local choice
|
||||
for choice in "''${choices[@]}"; do
|
||||
for choice in "${choices[@]}"; do
|
||||
if [[ "$arg" == "$choice" ]]; then
|
||||
return 0
|
||||
fi
|
||||
|
@ -43,7 +43,7 @@ function chose() {
|
|||
}
|
||||
|
||||
if chose git; then
|
||||
gitconfig=''${XDG_CONFIG_HOME:-$HOME/.config}/git/config
|
||||
gitconfig=${XDG_CONFIG_HOME:-$HOME/.config}/git/config
|
||||
|
||||
if [[ -n $name ]]; then
|
||||
GIT_CONFIG_GLOBAL=$gitconfig git config --global -- user.name "$name"
|
||||
|
@ -52,7 +52,7 @@ if chose git; then
|
|||
GIT_CONFIG_GLOBAL=$gitconfig git config --global -- user.email "$email"
|
||||
fi
|
||||
|
||||
gitignore=$(GIT_CONFIG_GLOBAL=$gitconfig git config --global --get core.excludesFile 2>/dev/null || printf '%s\n' "''${XDG_CONFIG_HOME:-$HOME/.config}/git/ignore")
|
||||
gitignore=$(GIT_CONFIG_GLOBAL=$gitconfig git config --global --get core.excludesFile 2>/dev/null || printf '%s\n' "${XDG_CONFIG_HOME:-$HOME/.config}/git/ignore")
|
||||
mkdir --parents -- "$(dirname -- "$gitignore")"
|
||||
cat <<EOF >"$gitignore"
|
||||
.idea/
|
||||
|
@ -172,12 +172,12 @@ user_pref('toolkit.telemetry.bhrPing.enabled', false);
|
|||
user_pref('toolkit.telemetry.firstShutdownPing.enabled', false);
|
||||
user_pref('toolkit.telemetry.coverage.opt-out', true);
|
||||
user_pref('toolkit.coverage.opt-out', true);
|
||||
user_pref('toolkit.coverage.endpoint.base', ''');
|
||||
user_pref('toolkit.coverage.endpoint.base', '');
|
||||
user_pref('browser.ping-centre.telemetry', false);
|
||||
user_pref('app.shield.optoutstudies.enabled', false);
|
||||
user_pref('app.normandy.enabled', false);
|
||||
user_pref('app.normandy.api_url', ''');
|
||||
user_pref('breakpad.reportURL', ''');
|
||||
user_pref('app.normandy.api_url', '');
|
||||
user_pref('breakpad.reportURL', '');
|
||||
user_pref('browser.tabs.crashReporting.sendReport', false);
|
||||
user_pref('browser.crashReports.unsubmittedCheck.autoSubmit2', false);
|
||||
|
||||
|
|
Loading…
Reference in a new issue