1
0
Fork 0
mirror of https://git.sr.ht/~roxwize/.dotfiles synced 2025-01-31 15:03:37 +00:00
.dotfiles/nixos/home.nix

135 lines
4.1 KiB
Nix
Raw Normal View History

2024-12-01 03:11:40 +00:00
{ pkgs, ... }:
let
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/release-24.11.tar.gz";
in
{
imports = [
"${home-manager}/nixos"
2024-12-10 05:19:18 +00:00
# "${plasma-manager}/modules"
2024-12-01 03:11:40 +00:00
];
home-manager.users.rae = {
2024-12-01 04:08:16 +00:00
home = {
stateVersion = "24.11";
2024-12-01 16:57:18 +00:00
sessionVariables = {
BROWSER = "firefox";
TERM = "kitty";
};
2024-12-01 04:08:16 +00:00
file = {
2024-12-01 16:57:18 +00:00
".twmrc".source = ../configs/twm;
2024-12-01 04:08:16 +00:00
};
};
2024-12-10 21:14:16 +00:00
xdg.configFile = {
"i3/config".source = ../configs/i3;
"openbox".source = ../configs/openbox;
};
2024-12-01 03:11:40 +00:00
programs = {
git = {
enable = true;
userName = "roxwize";
userEmail = "rae@roxwize.xyz";
};
2024-12-09 22:15:24 +00:00
kitty = {
enable = true;
2024-12-10 05:19:18 +00:00
font.name = "Fira Code";
2024-12-09 22:15:24 +00:00
#theme = "Catppuccin-Latte";
};
2024-12-09 20:19:40 +00:00
neovim = {
enable = true;
2024-12-10 05:19:18 +00:00
defaultEditor = true;
vimAlias = true;
2024-12-09 20:19:40 +00:00
plugins = with pkgs.vimPlugins; [
vim-wakatime
];
2024-12-10 05:19:18 +00:00
extraLuaConfig = ''
vim.opt["tabstop"] = 4
vim.opt["shiftwidth"] = 4
'';
2024-12-09 20:19:40 +00:00
};
2024-12-01 03:11:40 +00:00
};
2024-12-09 22:15:24 +00:00
2024-12-10 05:19:18 +00:00
services = {
2024-12-09 22:15:24 +00:00
polybar = {
enable = true;
2024-12-10 05:19:18 +00:00
script = "polybar &";
2024-12-10 05:27:27 +00:00
settings =
let
2024-12-11 04:09:03 +00:00
background = "#0000";
2024-12-10 05:27:27 +00:00
foreground = "#fff";
2024-12-11 04:09:03 +00:00
color0 = "#d9eafd";
color1 = "#bcccdc";
color2 = "#9aa6b2";
2024-12-10 05:27:27 +00:00
in {
2024-12-10 05:19:18 +00:00
"global/wm" = {
2024-12-10 02:37:25 +00:00
margin-top = 2;
2024-12-10 05:19:18 +00:00
margin-bottom = 2;
};
"bar/top" = {
2024-12-10 05:27:27 +00:00
background = background;
2024-12-10 05:33:44 +00:00
foreground = "#000";
2024-12-10 05:19:18 +00:00
width = "100%";
height = 32;
font-0 = "GohuFont:style=Regular:size=14;3";
2024-12-09 22:15:24 +00:00
modules-left = "cpu memory";
2024-12-10 05:19:18 +00:00
modules-center = "xwindow";
2024-12-10 21:01:24 +00:00
modules-right = "battery date";
2024-12-10 05:19:18 +00:00
module-margin = 1;
offset-y = 14;
padding = 2;
};
2024-12-11 04:09:03 +00:00
"bar/tray" = {
background = color0;
foreground = "#000";
bottom = "true";
width = "100%";
height = 32;
font-0 = "GohuFont:style=Regular:size=14;3";
modules-left = "tray";
};
2024-12-09 22:15:24 +00:00
2024-12-10 05:19:18 +00:00
"module/cpu" = {
2024-12-09 22:15:24 +00:00
type = "internal/cpu";
2024-12-10 05:19:18 +00:00
label = "CPU: %percentage%%";
2024-12-10 05:27:27 +00:00
label-background = color0;
2024-12-10 05:19:18 +00:00
label-padding = 2;
interval = 2;
};
"module/memory" = {
2024-12-09 22:15:24 +00:00
type = "internal/memory";
2024-12-10 05:19:18 +00:00
label = "RAM: %percentage_used%%";
2024-12-10 05:27:27 +00:00
label-background = color1;
2024-12-10 05:19:18 +00:00
label-padding = 2;
interval = 2;
};
"module/xwindow" = {
2024-12-09 22:15:24 +00:00
type = "internal/xwindow";
2024-12-10 05:19:18 +00:00
label-active-font = 0;
};
2024-12-10 21:01:24 +00:00
"module/battery" = {
type = "internal/battery";
battery = "BAT0";
adapter = "ADP1";
label-charging = "BAT: %percentage%%++";
label-discharging = "BAT: %percentage%%";
label-background = color1;
label-padding = 2;
};
2024-12-10 05:19:18 +00:00
"module/date" = {
2024-12-09 22:15:24 +00:00
type = "internal/date";
2024-12-10 05:19:18 +00:00
date = "%b %d %y";
time = "%I:%M %p";
2024-12-10 21:01:24 +00:00
label-background = color0;
2024-12-10 05:19:18 +00:00
label-padding = 2;
interval = 5;
};
2024-12-11 04:09:03 +00:00
"module/tray" = {
type = "internal/tray";
tray-spacing = "8px";
};
2024-12-10 05:19:18 +00:00
};
};
};
2024-12-01 03:11:40 +00:00
};
2024-12-01 03:44:05 +00:00
}