{
config,
pkgs,
inputs,
lib,
...
}:
{
imports = [ ./nvim ];
options.custom.xmobarBattery = lib.mkEnableOption "xmobar battery widget";
config = {
home.stateVersion = "25.11";
home.packages = with pkgs; [
(dmenu.override {
conf = ./dmenu/config.h;
})
ripgrep
fd
git
wget
xclip
hexyl
];
programs.alacritty = {
enable = true;
settings = {
font.size = 8;
selection.save_to_clipboard = true;
mouse.bindings = [
{
mouse = "Right";
action = "Paste";
}
];
};
};
programs.bash.enable = true;
programs.ssh = {
enable = true;
matchBlocks = {
"myserver" = {
hostname = "192.168.0.111";
};
};
};
programs.git = {
enable = true;
settings.user.name = "Christian";
settings.user.email = "thechristiansoltermann@gmail.com";
settings.init.defaultBranch = "main";
};
programs.direnv = {
enable = true;
enableBashIntegration = true;
nix-direnv.enable = true;
silent = true;
};
programs.firefox = {
enable = true;
policies = {
OverrideFirstRunPage = "";
DisableFirefoxAccounts = true;
FirefoxHome = {
SponsoredTopSites = false;
Stories = false;
};
};
profiles.christian = {
name = "Christian";
isDefault = true;
settings = {
"browser.aboutConfig.showWarning" = false;
"extensions.autoDisableScopes" = 0;
"browser.theme.content-theme" = 0;
"browser.theme.toolbar-theme" = 0;
};
extensions.packages = with inputs.nur.legacyPackages.x86_64-linux.repos.rycee.firefox-addons; [
ublock-origin
];
};
};
programs.xmobar = {
enable = true;
extraConfig = ''
-- vim: set ft=haskell:
Config
{ font = "Monospace"
, borderColor = "#d0d0d0"
, border = FullB
, borderWidth = 1
, bgColor = "#222"
, fgColor = "grey"
, position = TopH 30
, commands =
[ Run XMonadLog
, Run Cpu ["-t", "cpu: %"] 10
, Run Network "wlan0" ["-S", "True", "-t", "wlan: /"] 10
, Run Memory ["-t","mem: %"] 10
, Run Date "date: %a %d %b %Y %I:%M:%S %p " "date" 10
${lib.optionalString config.custom.xmobarBattery ''
, Run Battery
["-t", "bat: ",
"-L", "10", "-H", "80", "-S", "True",
"-l", "red", "-n", "#4eb4fa", "-h", "green",
"--",
"-L", "-15", "-H", "-5",
"-l", "red", "-m", "#4eb4fa", "-h", "green"]
600
''}
]
, sepChar = "%"
, alignSep = "}{"
, template = " %XMonadLog% | ${lib.optionalString config.custom.xmobarBattery "%battery% | "}%cpu% | %memory% | %wlan0% }{%date% "
}
'';
};
programs.home-manager.enable = true;
};
}