136 lines
3.6 KiB
Nix
136 lines
3.6 KiB
Nix
{ config, pkgs, ...}:
|
|
{
|
|
nixpkgs.config.allowUnfree = true;
|
|
programs.command-not-found.enable = true;
|
|
|
|
home.keyboard.layout = "fi";
|
|
|
|
home.packages = with pkgs; [
|
|
pass
|
|
vifm
|
|
qutebrowser
|
|
kobodl
|
|
|
|
direnv
|
|
|
|
myEmacs
|
|
myVim
|
|
];
|
|
|
|
services.emacs = {
|
|
enable = true;
|
|
package = pkgs.myEmacs;
|
|
};
|
|
|
|
services.flameshot = {
|
|
enable = true;
|
|
};
|
|
|
|
services.syncthing = {
|
|
enable = true;
|
|
tray = false;
|
|
};
|
|
|
|
programs.mac-keys.enable = true;
|
|
programs.git = {
|
|
enable = true;
|
|
userName = "Mats Rauhala";
|
|
userEmail = "mats.rauhala@iki.fi";
|
|
signing = {
|
|
key = "2104943D6033C8F4F7D4F560BDA6DFEDBCFB6779";
|
|
};
|
|
ignores = [
|
|
"env"
|
|
"*.swp"
|
|
"*.swo"
|
|
"*.orig"
|
|
"*.crt"
|
|
"*.key"
|
|
"*.log"
|
|
"tags"
|
|
"result"
|
|
"*.pub"
|
|
"*.db"
|
|
"*.sqlite"
|
|
".projectile"
|
|
".dir-locals.el"
|
|
];
|
|
extraConfig = {
|
|
push = {
|
|
default = "simple";
|
|
};
|
|
};
|
|
};
|
|
|
|
programs.gpg = {
|
|
enable = true;
|
|
settings = {
|
|
"default-key" = "2104943D6033C8F4F7D4F560BDA6DFEDBCFB6779";
|
|
"default-recipient-self" = "";
|
|
"keyserver-options" = "auto-key-retrieve";
|
|
};
|
|
};
|
|
|
|
programs.myZsh.enable = true;
|
|
programs.myUrxvt.enable = true;
|
|
programs.xmonad = {
|
|
enable = true;
|
|
dhallConfigPath = ./xmonad.dhall;
|
|
packages = with pkgs;
|
|
let
|
|
prompt = writeScriptBin "prompt" ''
|
|
${pkgs.haskellPackages.xmobar}/bin/xmobar ${xmobarConf}
|
|
'';
|
|
xmobarConf = pkgs.writeText "xmobar" ''
|
|
Config {
|
|
font = "xft:Iosevka-9"
|
|
, bgColor = "#3F3F3F"
|
|
, fgColor = "#DCDCCC"
|
|
, position = Top
|
|
, lowerOnStart = True
|
|
, commands = [
|
|
Run MultiCpu ["-t", "CPU: <total>%"] 30
|
|
, Run Memory ["-t", "Mem: <usedbar> (<cache>M)"] 3600
|
|
, Run Date "%a %b %_d %Y %H:%M:%S" "date" 20
|
|
, Run StdinReader
|
|
, Run Battery [ "--template" , "Batt: <acstatus>"
|
|
, "--Low" , "10" -- units: %
|
|
, "--High" , "80" -- units: %
|
|
, "--low" , "darkred"
|
|
, "--normal" , "darkorange"
|
|
, "--high" , "darkgreen"
|
|
|
|
, "--" -- battery specific options
|
|
-- discharging status
|
|
, "-o" , "<left>% (<timeleft>)"
|
|
-- AC "on" status
|
|
, "-O" , "<fc=#dAA520>Charging</fc>"
|
|
-- charged status
|
|
, "-i" , "<fc=#006000>Charged</fc>"
|
|
] 120
|
|
, Run DynNetwork [ "--template" , "<dev>: <tx>kB/s|<rx>kB/s"
|
|
, "--Low" , "1000" -- units: B/s
|
|
, "--High" , "500000" -- units: B/s
|
|
, "--normal" , "darkorange"
|
|
, "--high" , "darkred"
|
|
] 30
|
|
]
|
|
, sepChar = "%"
|
|
, alignSep = "}{"
|
|
, template = "%StdinReader% }{%dynnetwork% | %battery% | %multicpu% | %memory% | <fc=#FFFFCC>%date%</fc>"
|
|
}
|
|
'';
|
|
|
|
in
|
|
{
|
|
inherit qutebrowser flameshot calibre spotify hledger obsidian prompt;
|
|
hledger_ui = hledger-ui;
|
|
element = element-desktop;
|
|
signal = signal-desktop;
|
|
vim = myVim;
|
|
emacs = myEmacs;
|
|
urxvt = rxvt-unicode;
|
|
};
|
|
};
|
|
}
|