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

168 lines
5.4 KiB
Nix
Raw Normal View History

2024-12-01 03:11:40 +00:00
{ pkgs, ... }:
{
2024-12-17 20:50:18 +00:00
home = {
stateVersion = "24.11";
2024-12-17 22:06:47 +00:00
username = "rae";
2024-12-18 00:32:03 +00:00
homeDirectory = "/home/rae";
2024-12-17 20:50:18 +00:00
sessionVariables = {
BROWSER = "firefox";
TERM = "kitty";
2024-12-01 04:08:16 +00:00
};
2024-12-17 20:50:18 +00:00
file = {
".twmrc".source = ../configs/twm;
".local/share/themes".source = ../configs/openbox/themes;
2024-12-11 13:56:37 +00:00
};
2024-12-17 20:50:18 +00:00
};
xdg.configFile = {
"openbox".source = ../configs/openbox;
};
2024-12-01 03:11:40 +00:00
2024-12-17 20:50:18 +00:00
programs = {
git = {
enable = true;
userName = "roxwize";
userEmail = "rae@roxwize.xyz";
};
kitty = {
enable = true;
font.name = "Fira Code";
2024-12-18 00:47:47 +00:00
themeFile = "mayukai";
2024-12-17 20:50:18 +00:00
};
neovim = {
enable = true;
defaultEditor = true;
vimAlias = true;
plugins = with pkgs.vimPlugins; [
2024-12-17 23:30:38 +00:00
vim-just
2024-12-17 20:50:18 +00:00
vim-wakatime
];
extraLuaConfig = ''
vim.opt["tabstop"] = 4
vim.opt["shiftwidth"] = 4
'';
2024-12-01 03:11:40 +00:00
};
2024-12-17 20:50:18 +00:00
};
2024-12-09 22:15:24 +00:00
2024-12-17 20:50:18 +00:00
services = {
polybar = {
enable = true;
script = "polybar &";
2024-12-18 00:47:47 +00:00
settings =
2024-12-17 20:50:18 +00:00
let
background = "#0000";
2024-12-18 00:47:47 +00:00
foreground = "#030910";
2024-12-17 20:50:18 +00:00
color0 = "#d9eafd";
color1 = "#bcccdc";
color2 = "#9aa6b2";
in {
"global/wm" = {
margin-top = 2;
margin-bottom = 2;
};
"bar/top" = {
background = background;
2024-12-18 00:32:03 +00:00
foreground = foreground;
2024-12-17 20:50:18 +00:00
width = "100%";
height = 32;
font-0 = "GohuFont:style=Regular:size=14;3";
modules-left = "cpu memory";
modules-center = "xworkspaces";
modules-right = "battery audio date";
module-margin = 1;
offset-y = 14;
padding = 2;
};
2024-12-09 22:15:24 +00:00
2024-12-17 20:50:18 +00:00
"module/cpu" = {
type = "internal/cpu";
label = "CPU: %percentage%%";
label-background = color0;
label-padding = 2;
interval = 2;
};
"module/memory" = {
type = "internal/memory";
label = "RAM: %percentage_used%%";
label-background = color1;
label-padding = 2;
interval = 2;
};
"module/xwindow" = {
type = "internal/xwindow";
label-active-font = 0;
};
"module/xworkspaces" = {
type = "internal/xworkspaces";
enable-scroll = false;
label-active = "%name%";
label-active-background = color2;
label-active-padding = 1;
label-occupied = "%name%";
2024-12-18 00:47:47 +00:00
label-occupied-foreground = "#fff";
2024-12-17 20:50:18 +00:00
label-occupied-padding = 1;
label-empty = "%name%";
2024-12-18 00:47:47 +00:00
label-empty-foreground = "#fff";
2024-12-17 20:50:18 +00:00
label-empty-padding = 1;
label-urgent = "%name%";
label-urgent-background = color0;
label-urgent-padding = 1;
};
"module/audio" = {
type = "internal/pulseaudio";
};
"module/battery" = {
type = "internal/battery";
battery = "BAT0";
adapter = "ADP1";
label-charging = "BAT: %percentage%%++";
label-discharging = "BAT: %percentage%%";
label-background = color1;
label-padding = 2;
};
"module/date" = {
type = "internal/date";
date = "%b %d %y";
time = "%I:%M %p";
label-background = color0;
label-padding = 2;
interval = 5;
2024-12-10 05:19:18 +00:00
};
};
};
2024-12-17 20:50:18 +00:00
};
2024-12-16 02:12:41 +00:00
2024-12-17 21:16:35 +00:00
dconf.settings = {
"net/launchpad/plank/docks/dock1" = {
2024-12-18 01:01:32 +00:00
dock-items = [
"gala-multitaskingview.dockitem"
"firefox.dockitem"
"io.elementary.terminal.dockitem"
"codium.dockitem"
"io.elementary.settings.dockitem"
];
2024-12-17 21:16:35 +00:00
};
"org/gnome/desktop/background" = {
2024-12-18 00:32:03 +00:00
picture-uri = "file://" + builtins.toString /home/rae/.dotfiles/assets/wallpapers/current;
2024-12-17 21:16:35 +00:00
};
2024-12-18 01:01:32 +00:00
"org/gnome/desktop/interface" = {
accent-color = "blue";
color-scheme = "prefer-dark";
};
2024-12-17 21:16:35 +00:00
"org/gnome/desktop/wm/preferences" = {
button-layout = ":minimize,maximize,close";
};
2024-12-18 01:01:32 +00:00
"org/pantheon/desktop/gala/appearance" = {
button-layout = ":minimize,maximize,close";
};
"org/pantheon/desktop/gala/behavior" = {
hotcorner-bottomright = "show-workspace-view";
};
2024-12-17 21:16:35 +00:00
};
2024-12-17 20:50:18 +00:00
2024-12-17 21:16:35 +00:00
gtk = {
enable = true;
cursorTheme.name = "Posy's Cursor";
theme.name = "io.elementary.stylesheet.blueberry";
};
2024-12-01 03:44:05 +00:00
}