restructure

This commit is contained in:
♥ Minnie ♥ 2023-05-15 21:11:30 +08:00
parent 5fe6a629f3
commit e54745b952
28 changed files with 997 additions and 203 deletions

View file

@ -0,0 +1,77 @@
# 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 programs
./programs/discocss
./programs/mangohud
# Common programs
../common/jade
../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:
# 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; [
discord
spotify
prismlauncher
];
};
# 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";
}

View file

@ -0,0 +1,76 @@
{ inputs, outputs, lib, config, pkgs, ... }:
{
programs.discocss = {
enable = true;
discordAlias = false;
css = ''
: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;
}
'';
};
}

View file

@ -0,0 +1,14 @@
{ inputs, outputs, lib, config, pkgs, ... }:
{
programs.mangohud = {
enable = true;
settings = {
gpu_temp = true;
gpu_core_clock = true;
cpu_temp = true;
cpu_mhz = true;
toggle_hud = "F12";
};
};
}

View file

@ -0,0 +1,16 @@
{ inputs, outputs, lib, config, pkgs, ... }:
{
services.picom = {
enable = true;
shadow = true;
backend = "glx";
settings = {
corner-radius = 10;
rounded-corners-exclude = [
# "window_type = 'normal'"
"window_type = 'dock'"
];
};
};
}