cleanup and format

This commit is contained in:
Thilo Billerbeck 2024-02-27 02:54:02 +01:00
parent 1121201acd
commit 07a1841fda
37 changed files with 336 additions and 427 deletions

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }:
{ config, ... }:
{
programs.alacritty = {

View file

@ -1,5 +1 @@
{ config, pkgs, lib, ... }:
{
programs.bat = { enable = true; };
}
{ programs.bat = { enable = true; }; }

View file

@ -1,5 +1,3 @@
{ config, pkgs, lib, ... }:
{
programs.beets = {
enable = false;

View file

@ -22,30 +22,23 @@ let
isEnabled = if config.machine.isGraphical then true else false;
dictionaries = with pkgs.hunspellDictsChromium; [ en_US de_DE ];
commandLineArgs = [
"--ignore-gpu-blocklist"
"--enable-gpu-rasterization"
"--enable-zero-copy"
"--enable-features=VaapiVideoDecoder,VaapiVideoEncoder,WebRTCPipeWireCapturer"
"--disable-features=UseChromeOSDirectVideoDecoder"
"--use-vulkan"
"--ozone-platform-hint=auto"
"--enable-hardware-overlays"
"--ignore-gpu-blocklist"
"--enable-gpu-rasterization"
"--enable-zero-copy"
"--enable-features=VaapiVideoDecoder,VaapiVideoEncoder,WebRTCPipeWireCapturer"
"--disable-features=UseChromeOSDirectVideoDecoder"
"--use-vulkan"
"--ozone-platform-hint=auto"
"--enable-hardware-overlays"
];
extensions = map
(eid: {
id = eid;
})
chromium_extension;
in
{
extensions = map (eid: { id = eid; }) chromium_extension;
in {
programs.chromium = {
inherit dictionaries commandLineArgs extensions;
enable = isEnabled;
dictionaries = dictionaries;
commandLineArgs = commandLineArgs;
extensions = extensions;
};
programs.google-chrome = {
inherit commandLineArgs;
enable = isEnabled;
commandLineArgs = commandLineArgs;
};
}

View file

@ -1,5 +1 @@
{ config, pkgs, lib, ... }:
{
programs.command-not-found = { enable = true; };
}
{ programs.command-not-found = { enable = true; }; }

View file

@ -1,5 +1,3 @@
{ config, pkgs, lib, ... }:
{
programs.dircolors = {
enable = true;

View file

@ -1,5 +1,3 @@
{ config, pkgs, lib, ... }:
{
programs.direnv = {
enable = true;

View file

@ -4,4 +4,4 @@
programs.firefox = {
enable = if config.machine.isGraphical then true else false;
};
}
}

View file

@ -1,5 +1,3 @@
{ config, pkgs, lib, ... }:
{
programs.fzf = {
enable = true;

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }:
{ pkgs, ... }:
{
programs.git = {
@ -27,7 +27,5 @@
branch = { autosetuprebase = "always"; };
};
};
programs.git-credential-oauth = {
enable = true;
};
programs.git-credential-oauth = { enable = true; };
}

View file

@ -1,7 +1 @@
{ config, pkgs, lib, ... }:
{
programs.go = {
enable = true;
};
}
{ programs.go = { enable = true; }; }

View file

@ -1,5 +1 @@
{ config, pkgs, lib, ... }:
{
programs.hstr = { enable = true; };
}
{ programs.hstr = { enable = true; }; }

View file

@ -1,5 +1,3 @@
{ config, pkgs, lib, ... }:
{
programs.htop = {
enable = true;

View file

@ -5,4 +5,4 @@
enable = if config.machine.isGraphical then true else false;
scripts = with pkgs.mpvScripts; [ autoload mpris sponsorblock ];
};
}
}

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }:
{ pkgs, ... }:
{
programs.neovim = {

View file

@ -1,5 +1,3 @@
{ config, pkgs, lib, ... }:
{
programs.starship = {
enable = true;

View file

@ -1,7 +1 @@
{ config, pkgs, lib, ... }:
{
services.syncthing = {
enable = true;
};
}
{ services.syncthing = { enable = true; }; }

View file

@ -1,7 +1,10 @@
{ config, pkgs, lib, ... }:
{ config, ... }:
let
configPath = if config.machine.isGeneric then "${config.home.homeDirectory}/.config/home-manager" else "${config.home.homeDirectory}/.nixos-config";
configPath = if config.machine.isGeneric then
"${config.home.homeDirectory}/.config/home-manager"
else
"${config.home.homeDirectory}/.nixos-config";
in {
programs.topgrade = {
enable = true;
@ -13,18 +16,13 @@ in {
pre_sudo = false;
cleanup = true;
skip_notify = true;
disable = [
"bun"
"tldr"
"flutter"
];
disable = [ "bun" "tldr" "flutter" ];
};
git.repos = [
configPath
];
git.repos = [ configPath ];
firmware = { upgrade = true; };
pre_commands = {
flakeUpgrade = "cd ${configPath} && nix flake update --commit-lock-file --verbose --repair";
flakeUpgrade =
"cd ${configPath} && nix flake update --commit-lock-file --verbose --repair";
};
};
};

View file

@ -1,6 +1,2 @@
{ config, pkgs, lib, ... }:
{
programs.yt-dlp = { enable = true; };
}
{ programs.yt-dlp = { enable = true; }; }

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }:
{ pkgs, ... }:
let
omz-plugins = [
"git"