revert to sajenim
This commit is contained in:
parent
7564df522d
commit
41ea3478ec
14 changed files with 7 additions and 7 deletions
110
home-manager/sajenim/home.nix
Normal file
110
home-manager/sajenim/home.nix
Normal file
|
@ -0,0 +1,110 @@
|
|||
# This is your home-manager configuration file
|
||||
# Use this to configure your home environment (it replaces ~/.config/nixpkgs/home.nix)
|
||||
|
||||
{ inputs, outputs, lib, config, pkgs, ... }: {
|
||||
# You can import other home-manager modules here
|
||||
imports = [
|
||||
# If you want to use modules your own flake exports (from modules/home-manager):
|
||||
# outputs.homeManagerModules.example
|
||||
|
||||
# Or modules exported from other flakes (such as nix-colors):
|
||||
# inputs.nix-colors.homeManagerModules.default
|
||||
|
||||
# You can also split up your configuration and import pieces of it here:
|
||||
|
||||
# User services
|
||||
./services/picom
|
||||
|
||||
# User programs
|
||||
./programs/discord
|
||||
./programs/mangohud
|
||||
./programs/rofi
|
||||
|
||||
# Common programs
|
||||
../common/programs/git
|
||||
../common/programs/zsh
|
||||
../common/programs/nvim
|
||||
];
|
||||
|
||||
nixpkgs = {
|
||||
# You can add overlays here
|
||||
overlays = [
|
||||
# Add overlays your own flake exports (from overlays and pkgs dir):
|
||||
outputs.overlays.additions
|
||||
outputs.overlays.modifications
|
||||
outputs.overlays.unstable-packages
|
||||
|
||||
# You can also add overlays exported from other flakes:
|
||||
# inputs.neovim-nightly-overlay.overlays.default
|
||||
|
||||
# Or define it inline, for example:
|
||||
# (final: prev: {
|
||||
# hi = final.hello.overrideAttrs (oldAttrs: {
|
||||
# patches = [ ./change-hello-to-hi.patch ];
|
||||
# });
|
||||
# })
|
||||
];
|
||||
# Configure your nixpkgs instance
|
||||
config = {
|
||||
# Disable if you don't want unfree packages
|
||||
allowUnfree = true;
|
||||
# Workaround for https://github.com/nix-community/home-manager/issues/2942
|
||||
allowUnfreePredicate = (_: true);
|
||||
};
|
||||
};
|
||||
|
||||
# Enable home-manager
|
||||
programs = {
|
||||
home-manager.enable = true;
|
||||
};
|
||||
|
||||
home = {
|
||||
# Setup our user environment
|
||||
username = "sajenim";
|
||||
homeDirectory = "/home/sajenim";
|
||||
sessionVariables = {
|
||||
EDITOR = "nvim";
|
||||
};
|
||||
|
||||
# Install some packages
|
||||
packages = with pkgs; [
|
||||
# Stable user programs
|
||||
feh
|
||||
gamemode
|
||||
spotify
|
||||
prismlauncher
|
||||
runelite
|
||||
xmobar
|
||||
super-slicer-latest
|
||||
# Unstable user programs
|
||||
unstable.wezterm
|
||||
];
|
||||
};
|
||||
|
||||
# Setup our window manager
|
||||
xsession.windowManager.xmonad = {
|
||||
enable = true;
|
||||
enableContribAndExtras = true;
|
||||
config = ../../pkgs/xmonad-config/src/xmonad.hs;
|
||||
};
|
||||
|
||||
# Copy our personal font collection
|
||||
home.file.".local/share/fonts" = {
|
||||
recursive = true;
|
||||
source = ../common/fonts;
|
||||
};
|
||||
|
||||
# Copy some configuration files to $XDG_CONFIG_HOME
|
||||
xdg.configFile = {
|
||||
wezterm = { source = ./programs/wezterm/config; recursive = true; };
|
||||
};
|
||||
|
||||
# Setup our desktop environment
|
||||
home.file.".xinitrc".source = ./xinitrc;
|
||||
|
||||
# Nicely reload system units when changing configs
|
||||
systemd.user.startServices = "sd-switch";
|
||||
|
||||
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
||||
home.stateVersion = "22.11";
|
||||
}
|
1
home-manager/sajenim/id_ed25519_sk.pub
Normal file
1
home-manager/sajenim/id_ed25519_sk.pub
Normal file
|
@ -0,0 +1 @@
|
|||
sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIN6zrgWQj9NbuZEvqK3r2U9jSJjLotGb8asUkcr+co5sAAAABHNzaDo= sajenim@fuchsia
|
67
home-manager/sajenim/programs/discord/config/custom.css
Normal file
67
home-manager/sajenim/programs/discord/config/custom.css
Normal file
|
@ -0,0 +1,67 @@
|
|||
:root {
|
||||
--font-primary: Fira Code;
|
||||
|
||||
/* Gruvbox Material Dark Hard */
|
||||
--fg0: #d4be98;
|
||||
--bg0: #1d2021;
|
||||
--bg1: #282828;
|
||||
|
||||
--grey0: #7c6f64;
|
||||
--grey1: #928374;
|
||||
--grey2: #a89984;
|
||||
|
||||
/* Midpoints between bg0 + bg1 */
|
||||
--bg0_33: #212323;
|
||||
--bg0_66: #242526;
|
||||
}
|
||||
|
||||
.theme-dark {
|
||||
--text-normal: var(--fg0);
|
||||
|
||||
--channels-default: var(--grey2);
|
||||
--interactive-normal: var(--grey0);
|
||||
--interactive-active: var(--grey0);
|
||||
--channel-icon: var(--grey0);
|
||||
|
||||
--scrollbar-auto-thumb: var(--grey0);
|
||||
--scrollbar-auto-track: var(--bg1);
|
||||
|
||||
--header-primary: var(--grey0);
|
||||
--header-secondary: var(--grey2);
|
||||
|
||||
--background-primary: var(--bg0);
|
||||
--background-secondary: var(--bg0_66);
|
||||
--background-secondary-alt: var(--bg0_33);
|
||||
--background-tertiary: var(--bg1);
|
||||
--background-message-hover: var(--bg1);
|
||||
--background-mentioned: var(--bg1);
|
||||
--bg-overlay-selected: var(--bg1);
|
||||
}
|
||||
|
||||
/* Message Box */
|
||||
.scrollableContainer-15eg7h {
|
||||
background-color: var(--bg1);
|
||||
}
|
||||
.slateTextArea-27tjG0 {
|
||||
color: var(--grey0);
|
||||
}
|
||||
|
||||
/* Search Box */
|
||||
.search-39IXmY {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Add a Server + Explore Public Servers */
|
||||
.circleIconButton-1VxDrg {
|
||||
color: var(--grey0);
|
||||
}
|
||||
/* Remove: Nitro, Gif, Stickers, Emoji buttons */
|
||||
.buttons-uaqb-5 {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Remove: New Message Bar */
|
||||
.newMessagesBar-1hF-9G {
|
||||
display: none;
|
||||
}
|
||||
|
19
home-manager/sajenim/programs/discord/default.nix
Normal file
19
home-manager/sajenim/programs/discord/default.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{ inputs, outputs, lib, config, pkgs, ... }:
|
||||
|
||||
{
|
||||
nixpkgs.overlays = [
|
||||
(final: prev: {
|
||||
discord = prev.discord.override { withOpenASAR = true; };
|
||||
})
|
||||
];
|
||||
|
||||
home.packages = with pkgs; [
|
||||
discord
|
||||
betterdiscordctl
|
||||
];
|
||||
|
||||
home.file.".config/BetterDiscord/data/stable/custom.css" = {
|
||||
enable = true;
|
||||
source = ./config/custom.css;
|
||||
};
|
||||
}
|
34
home-manager/sajenim/programs/mangohud/default.nix
Normal file
34
home-manager/sajenim/programs/mangohud/default.nix
Normal file
|
@ -0,0 +1,34 @@
|
|||
{ inputs, outputs, lib, config, pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.mangohud = {
|
||||
enable = true;
|
||||
package = pkgs.unstable.mangohud;
|
||||
settings = {
|
||||
# Performance
|
||||
fps_limit = 60;
|
||||
# GPU
|
||||
gpu_temp = true;
|
||||
gpu_junction_temp = true;
|
||||
gpu_core_clock = true;
|
||||
gpu_fan = true;
|
||||
gpu_voltage = true;
|
||||
|
||||
# CPU
|
||||
cpu_temp = true;
|
||||
cpu_mhz = true;
|
||||
|
||||
# FPS
|
||||
fps = true;
|
||||
frametime = false;
|
||||
frame_timing = false;
|
||||
|
||||
# Miscellaneous
|
||||
wine = true;
|
||||
gamemode = true;
|
||||
|
||||
# Hud dimensions
|
||||
table_columns = 4;
|
||||
};
|
||||
};
|
||||
}
|
9
home-manager/sajenim/programs/rofi/default.nix
Normal file
9
home-manager/sajenim/programs/rofi/default.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{ inputs, outputs, lib, config, pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.rofi = {
|
||||
enable = true;
|
||||
font = "Fira Code 10";
|
||||
};
|
||||
}
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
[colors]
|
||||
background = '#1d2021'
|
||||
foreground = '#d4be98'
|
||||
selection_bg = '#d4be98'
|
||||
selection_fg = '#3c3836'
|
||||
cursor_bg = '#d4be98'
|
||||
cursor_fg = '#1d2021'
|
||||
cursor_border = '#d4be98'
|
||||
|
||||
ansi = [
|
||||
'#1d2021',
|
||||
'#ea6962',
|
||||
'#a9b665',
|
||||
'#d8a657',
|
||||
'#7daea3',
|
||||
'#d3869b',
|
||||
'#89b482',
|
||||
'#d4be98',
|
||||
]
|
||||
|
||||
brights = [
|
||||
'#7c6f64',
|
||||
'#ea6962',
|
||||
'#a9b665',
|
||||
'#d8a657',
|
||||
'#7daea3',
|
||||
'#d3869b',
|
||||
'#89b482',
|
||||
'#d4be98',
|
||||
]
|
||||
|
||||
[colors.indexed]
|
||||
|
||||
[metadata]
|
||||
name = 'gruvbox_material_dark_hard'
|
||||
origin_url = 'https://gist.github.com/theoriginalstove/89aa16316a756721816886398080dbd6'
|
126
home-manager/sajenim/programs/wezterm/config/wezterm.lua
Normal file
126
home-manager/sajenim/programs/wezterm/config/wezterm.lua
Normal file
|
@ -0,0 +1,126 @@
|
|||
-- Pull in the wezterm API
|
||||
local wezterm = require 'wezterm'
|
||||
local act = wezterm.action
|
||||
|
||||
-- This table will hold the configuration.
|
||||
local config = {}
|
||||
|
||||
-- In newer versions of wezterm, use the config_builder which will
|
||||
-- help provide clearer error messages
|
||||
if wezterm.config_builder then
|
||||
config = wezterm.config_builder()
|
||||
end
|
||||
|
||||
-- This function returns the suggested title for a tab.
|
||||
-- It prefers the title that was set via `tab:set_title()`
|
||||
-- or `wezterm cli set-tab-title`, but falls back to the
|
||||
-- title of the active pane in that tab.
|
||||
function tab_title(tab_info)
|
||||
local title = tab_info.tab_title
|
||||
-- if the tab title is explicitly set, take that
|
||||
if title and #title > 0 then
|
||||
return title
|
||||
end
|
||||
-- Otherwise, use the title from the active pane
|
||||
-- in that tab
|
||||
return tab_info.active_pane.title
|
||||
end
|
||||
|
||||
wezterm.on(
|
||||
'format-tab-title',
|
||||
function(tab, tabs, panes, config, hover, max_width)
|
||||
local title = tab_title(tab)
|
||||
return { { Text = ' ' .. title .. '' }, }
|
||||
end
|
||||
)
|
||||
|
||||
-- Do not check for or show window with update information
|
||||
config.check_for_updates = false
|
||||
config.show_update_window = false
|
||||
|
||||
--| Font Configuration
|
||||
config.font = wezterm.font 'Fisa Code'
|
||||
config.font_size = 10.0
|
||||
|
||||
--| Color scheme
|
||||
config.color_scheme = 'gruvbox_material_dark_hard'
|
||||
|
||||
--| Padding
|
||||
config.window_padding = {
|
||||
left = 20,
|
||||
right = 20,
|
||||
top = 20,
|
||||
bottom = 0,
|
||||
}
|
||||
|
||||
--| Style Inactive Panes
|
||||
config.inactive_pane_hsb = {
|
||||
saturation = 1.0,
|
||||
brightness = 1.0,
|
||||
}
|
||||
|
||||
--| Tab Bar Appearance
|
||||
config.use_fancy_tab_bar = false
|
||||
config.enable_tab_bar = true
|
||||
config.hide_tab_bar_if_only_one_tab = false
|
||||
config.tab_bar_at_bottom = false
|
||||
config.tab_max_width = 24
|
||||
config.show_tab_index_in_tab_bar = false
|
||||
|
||||
--| Colors
|
||||
config.colors = {
|
||||
|
||||
tab_bar = {
|
||||
--| Tab Bar Colors
|
||||
background = '#282828',
|
||||
--| Tab Colors
|
||||
active_tab = { bg_color = '#282828', fg_color = '#7daea3', intensity = 'Bold', italic = false, },
|
||||
inactive_tab = { bg_color = '#282828', fg_color = '#7c6f64', intensity = 'Normal', italic = false, },
|
||||
inactive_tab_hover = { bg_color = '#282828', fg_color = '#7c6f64', intensity = 'Normal', italic = false, },
|
||||
new_tab = { bg_color = '#282828', fg_color = '#7c6f64', intensity = 'Normal', italic = false, },
|
||||
new_tab_hover = { bg_color = '#282828', fg_color = '#7c6f64', intensity = 'Normal', italic = false, },
|
||||
}
|
||||
}
|
||||
|
||||
--| Key Assignments
|
||||
config.disable_default_key_bindings = true
|
||||
config.keys = {}
|
||||
|
||||
for i = 1, 8 do
|
||||
--| CTRL+ALT + number to activate tab
|
||||
table.insert(config.keys, {
|
||||
key = tostring(i),
|
||||
mods = 'CTRL|ALT',
|
||||
action = act.ActivateTab(i - 1),
|
||||
})
|
||||
end
|
||||
|
||||
config.keys = {
|
||||
--| Spawn Tab
|
||||
{ key = 't', mods = 'ALT', action = act.SpawnTab 'CurrentPaneDomain', },
|
||||
--| Tab Navigation
|
||||
{ key = 'LeftArrow', mods = 'ALT', action = act.ActivateTabRelative(-1) },
|
||||
{ key = 'RightArrow', mods = 'ALT', action = act.ActivateTabRelative(1) },
|
||||
--| Close Tab
|
||||
{ key = 'w', mods = 'ALT|CTRL', action = act.CloseCurrentTab { confirm = false }, },
|
||||
|
||||
--| Split Panes
|
||||
{ key = 'v', mods = 'ALT', action = act.SplitVertical { domain = 'CurrentPaneDomain' }, },
|
||||
{ key = 'h', mods = 'ALT', action = act.SplitHorizontal { domain = 'CurrentPaneDomain' }, },
|
||||
--| Adjust Pane Size
|
||||
{ key = 'PageDown', mods = 'ALT', action = act.AdjustPaneSize { 'Down', 5 } },
|
||||
{ key = 'PageUp', mods = 'ALT', action = act.AdjustPaneSize { 'Up', 5 } },
|
||||
--| Pane Navigation
|
||||
{ key = 'DownArrow', mods = 'ALT', action = act.ActivatePaneDirection 'Next', },
|
||||
{ key = 'UpArrow', mods = 'ALT', action = act.ActivatePaneDirection 'Prev', },
|
||||
--| Close Pane
|
||||
{ key = 'x', mods = "ALT", action = act.CloseCurrentPane { confirm = false }, },
|
||||
|
||||
--| Copy Mode / Clipboard
|
||||
{ key = 'X', mods = 'CTRL', action = act.ActivateCopyMode, },
|
||||
{ key = 'C', mods = 'CTRL', action = act.CopyTo 'ClipboardAndPrimarySelection', },
|
||||
{ key = 'V', mods = 'CTRL', action = act.PasteFrom 'Clipboard', },
|
||||
}
|
||||
|
||||
return config
|
||||
|
15
home-manager/sajenim/services/picom/default.nix
Normal file
15
home-manager/sajenim/services/picom/default.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
services.picom = {
|
||||
enable = true;
|
||||
shadow = true;
|
||||
backend = "glx";
|
||||
settings = {
|
||||
corner-radius = 10;
|
||||
rounded-corners-exclude = [
|
||||
"window_type = 'dock'"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
13
home-manager/sajenim/xinitrc
Normal file
13
home-manager/sajenim/xinitrc
Normal file
|
@ -0,0 +1,13 @@
|
|||
#/bin/bash
|
||||
|
||||
# Setup our monitors
|
||||
xrandr --output HDMI-A-0 --mode 1920x1080 --output DisplayPort-0 --mode 2560x1440 --right-of HDMI-A-0
|
||||
|
||||
# Apply our wallpaper
|
||||
feh --bg-center ~/dotfiles.nix/assets/chinatown.png
|
||||
|
||||
# Enable our compositor
|
||||
picom -b
|
||||
|
||||
# Launch our window manager
|
||||
exec xmonad
|
Loading…
Add table
Add a link
Reference in a new issue