✨ Moved common home-manager config to shared/home-manager
This commit is contained in:
parent
0649473709
commit
a0537f5634
@ -1,53 +1,10 @@
|
||||
{
|
||||
inputs,
|
||||
outputs,
|
||||
common,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
username = common.username;
|
||||
dir = common.dir;
|
||||
in
|
||||
|
||||
{
|
||||
imports = [
|
||||
inputs.catppuccin.homeModules.catppuccin
|
||||
./btop.nix
|
||||
./cava
|
||||
./cursors.nix
|
||||
./default-applications.nix
|
||||
./development
|
||||
./fastfetch.nix
|
||||
./fish.nix
|
||||
./freetube.nix
|
||||
./gtk.nix
|
||||
./gpg.nix
|
||||
./kitty.nix
|
||||
./media
|
||||
./nextcloud.nix
|
||||
./rofi
|
||||
./hyprland
|
||||
./spicetify.nix
|
||||
./yazi
|
||||
./zen
|
||||
(lib.custom.relativeToRoot "shared/home-manager")
|
||||
];
|
||||
|
||||
home = {
|
||||
username = username;
|
||||
homeDirectory = dir.home;
|
||||
|
||||
sessionVariables = {
|
||||
XDG_PICTURES_DIR = dir.pictures; # Define the default dir for pictures
|
||||
};
|
||||
|
||||
# You can update Home Manager without changing this value. See
|
||||
# the Home Manager release notes for a list of state version
|
||||
# changes in each release.
|
||||
stateVersion = common.system.version;
|
||||
};
|
||||
|
||||
# Adds pkgs.unstable in order to fetch packages from unstable repositories
|
||||
nixpkgs.overlays = [ outputs.overlays.unstable-packages ];
|
||||
|
||||
# Let Home Manager install and manage itself.
|
||||
programs.home-manager.enable = true;
|
||||
}
|
||||
|
@ -1,9 +0,0 @@
|
||||
let
|
||||
theme = import ../theme.nix;
|
||||
in
|
||||
{
|
||||
catppuccin.btop = {
|
||||
enable = true;
|
||||
flavor = theme.flavor;
|
||||
};
|
||||
}
|
Binary file not shown.
Before Width: | Height: | Size: 2.1 KiB |
@ -1,29 +0,0 @@
|
||||
## Audio visualizer
|
||||
{ pkgs, ... }:
|
||||
|
||||
let
|
||||
theme = import ../../theme.nix;
|
||||
in
|
||||
{
|
||||
catppuccin.cava = {
|
||||
enable = true;
|
||||
flavor = theme.flavor;
|
||||
};
|
||||
|
||||
programs.cava = {
|
||||
enable = true;
|
||||
package = pkgs.cava;
|
||||
};
|
||||
|
||||
xdg.desktopEntries.cava = {
|
||||
name = "Cava";
|
||||
genericName = "Audio visualizer";
|
||||
terminal = true;
|
||||
exec = "${pkgs.cava}/bin/cava";
|
||||
icon = ./cava.png;
|
||||
categories = [
|
||||
"Audio"
|
||||
"AudioVideo"
|
||||
];
|
||||
};
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
let
|
||||
theme = import ../theme.nix;
|
||||
in
|
||||
{
|
||||
catppuccin.cursors = {
|
||||
enable = true;
|
||||
flavor = theme.flavor;
|
||||
accent = "dark";
|
||||
};
|
||||
|
||||
home.pointerCursor = {
|
||||
gtk.enable = true;
|
||||
x11.enable = true;
|
||||
size = 16;
|
||||
};
|
||||
}
|
@ -1,24 +0,0 @@
|
||||
# TODO more defaults
|
||||
{
|
||||
xdg.mimeApps = {
|
||||
enable = true;
|
||||
defaultApplications =
|
||||
let
|
||||
browser = "zen.desktop";
|
||||
imageViewer = "org.gnome.Loupe.desktop";
|
||||
pdfReader = "org.gnome.Papers.desktop";
|
||||
in
|
||||
{
|
||||
"text/html" = browser;
|
||||
"x-scheme-handler/http" = browser;
|
||||
"x-scheme-handler/https" = browser;
|
||||
"x-scheme-handler/about" = browser;
|
||||
"x-scheme-handler/unknown" = browser;
|
||||
"image/jpg" = imageViewer;
|
||||
"image/jpeg" = imageViewer;
|
||||
"image/png" = imageViewer;
|
||||
"image/gif" = imageViewer;
|
||||
"application/pdf" = pdfReader;
|
||||
};
|
||||
};
|
||||
}
|
@ -1,67 +1,14 @@
|
||||
{
|
||||
pkgs,
|
||||
inputs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
common = import ../common.nix;
|
||||
username = common.username;
|
||||
dir = common.dir;
|
||||
in
|
||||
|
||||
{
|
||||
imports = [
|
||||
inputs.catppuccin.homeManagerModules.catppuccin
|
||||
./btop.nix
|
||||
./cava
|
||||
./cursors.nix
|
||||
./default-applications.nix
|
||||
./development
|
||||
./fastfetch.nix
|
||||
./fish.nix
|
||||
./freetube.nix
|
||||
./gtk.nix
|
||||
./kitty.nix
|
||||
./mpv.nix
|
||||
./nextcloud.nix
|
||||
(lib.custom.relativeToRoot "shared/home-manager")
|
||||
./hyprland
|
||||
./spicetify.nix
|
||||
./yazi
|
||||
./zen
|
||||
];
|
||||
|
||||
dconf = {
|
||||
enable = true;
|
||||
settings = {
|
||||
# Prefer dark mode for all GTK apps
|
||||
"org/gnome/desktop/interface".color-scheme = "prefer-dark";
|
||||
};
|
||||
};
|
||||
|
||||
home = {
|
||||
username = username;
|
||||
homeDirectory = dir.home;
|
||||
|
||||
sessionVariables = {
|
||||
XDG_PICTURES_DIR = dir.pictures; # Define the default dir for pictures
|
||||
};
|
||||
|
||||
# You can update Home Manager without changing this value. See
|
||||
# the Home Manager release notes for a list of state version
|
||||
# changes in each release.
|
||||
stateVersion = common.system.version;
|
||||
};
|
||||
|
||||
programs = {
|
||||
btop.enable = true;
|
||||
|
||||
# Let Home Manager install and manage itself.
|
||||
home-manager.enable = true;
|
||||
};
|
||||
|
||||
services = {
|
||||
gpg-agent = {
|
||||
enable = true;
|
||||
pinentryPackage = pkgs.pinentry-curses;
|
||||
};
|
||||
};
|
||||
programs.git.signing.key = "848D71DE0590C199";
|
||||
}
|
||||
|
@ -1,9 +0,0 @@
|
||||
{
|
||||
imports = [
|
||||
./git.nix
|
||||
./nixvim
|
||||
./zed.nix
|
||||
];
|
||||
# TODO set Wayland vmOptions in Jetbrains products, Requires current installed version in path
|
||||
# -Dawt.toolkit.name=WLToolKit
|
||||
}
|
@ -1,33 +0,0 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
home.packages = with pkgs; [ git-crypt ];
|
||||
|
||||
programs.git =
|
||||
let
|
||||
package = pkgs.git.override { withLibsecret = true; };
|
||||
in
|
||||
{
|
||||
enable = true;
|
||||
package = package;
|
||||
userName = "Martin Berg Alstad";
|
||||
userEmail = "git@martials.no";
|
||||
|
||||
aliases = {
|
||||
amend = "commit --amend";
|
||||
cm = "commit";
|
||||
s = "status";
|
||||
};
|
||||
|
||||
signing = {
|
||||
signByDefault = true;
|
||||
key = "848D71DE0590C199";
|
||||
};
|
||||
|
||||
extraConfig = {
|
||||
push.autoSetupRemote = true;
|
||||
safe.directory = "/etc/nixos";
|
||||
credential.helper = "${package}/bin/git-credential-libsecret";
|
||||
};
|
||||
};
|
||||
}
|
@ -1,77 +0,0 @@
|
||||
# Neovim configuration for Nix
|
||||
{ inputs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
inputs.nixvim.homeManagerModules.nixvim
|
||||
];
|
||||
|
||||
catppuccin.nvim.enable = true;
|
||||
|
||||
home.sessionVariables.EDITOR = "nvim";
|
||||
|
||||
programs.nixvim = {
|
||||
enable = true;
|
||||
clipboard.providers.wl-copy.enable = true;
|
||||
colorschemes.catppuccin.enable = true;
|
||||
defaultEditor = true;
|
||||
vimdiffAlias = true; # Alias vimdiff to nvim -d
|
||||
|
||||
opts = {
|
||||
number = true; # Show line numbers
|
||||
relativenumber = true; # Show relative line numbers
|
||||
|
||||
shiftwidth = 2; # Tab width should be 2
|
||||
};
|
||||
|
||||
plugins = {
|
||||
bufferline.enable = false;
|
||||
|
||||
# Formatters
|
||||
conform-nvim = {
|
||||
enable = true;
|
||||
# TODO use nix fmt on save
|
||||
settings = { };
|
||||
};
|
||||
|
||||
lsp = {
|
||||
enable = true;
|
||||
servers = {
|
||||
nixd.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
lualine.enable = true;
|
||||
luasnip.enable = true;
|
||||
|
||||
# Completions
|
||||
cmp = {
|
||||
enable = true;
|
||||
|
||||
autoEnableSources = true;
|
||||
|
||||
# TODO complete on <tab>
|
||||
settings = {
|
||||
sources = [
|
||||
{ name = "nvim-lsp"; }
|
||||
{ name = "path"; }
|
||||
{ name = "buffer"; }
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
treesitter.enable = true;
|
||||
web-devicons.enable = true;
|
||||
};
|
||||
|
||||
extraConfigLua = ''
|
||||
-- Translucent background
|
||||
vim.cmd [[
|
||||
highlight Normal guibg=none
|
||||
highlight NonText guibg=none
|
||||
highlight Normal ctermbg=none
|
||||
highlight NonText ctermbg=none
|
||||
]]
|
||||
'';
|
||||
};
|
||||
}
|
@ -1,57 +0,0 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.zed-editor = {
|
||||
enable = true;
|
||||
package = pkgs.unstable.zed-editor;
|
||||
extensions = [
|
||||
"html"
|
||||
"catppuccin"
|
||||
"catppuccin-icons"
|
||||
"toml"
|
||||
"nix"
|
||||
"git-firefly"
|
||||
"just"
|
||||
];
|
||||
userSettings =
|
||||
let
|
||||
theme = import ../../theme.nix;
|
||||
font = "${theme.nerdFont} Nerd Font";
|
||||
fontSize = 14;
|
||||
in
|
||||
{
|
||||
assistant = {
|
||||
default_model = {
|
||||
provider = "ollama";
|
||||
model = "deepseek-r1:8b";
|
||||
};
|
||||
version = "2";
|
||||
};
|
||||
autosave = "on_focus_change";
|
||||
base_keymap = "JetBrains";
|
||||
buffer_font_family = font;
|
||||
features = {
|
||||
edit_completion_provider = "zed";
|
||||
};
|
||||
icon_theme = "Catppuccin Mocha";
|
||||
# icon_theme = { TODO replace icon theme above with below
|
||||
# mode = theme.mode;
|
||||
# light = "Catppuccin Mocha";
|
||||
# dark = "Catppuccin Mocha";
|
||||
# };
|
||||
ui_font_family = font;
|
||||
ui_font_size = fontSize;
|
||||
buffer_font_size = fontSize;
|
||||
tabs = {
|
||||
file_icons = true;
|
||||
git_status = true;
|
||||
};
|
||||
theme = {
|
||||
mode = theme.mode;
|
||||
light = "Catppuccin Latte";
|
||||
dark = "Catppuccin Mocha";
|
||||
};
|
||||
lsp.nil.initialization_options.formatting.command = [ "nixfmt" ];
|
||||
};
|
||||
};
|
||||
}
|
@ -1,60 +0,0 @@
|
||||
{
|
||||
programs = {
|
||||
fish.shellAliases.fetch = "fastfetch";
|
||||
fastfetch = {
|
||||
enable = true;
|
||||
settings = {
|
||||
logo = {
|
||||
source = "${../Catppuccin.png}";
|
||||
type = "kitty";
|
||||
height = 18;
|
||||
padding.top = 2;
|
||||
};
|
||||
display.separator = " ";
|
||||
modules =
|
||||
let
|
||||
keyColor = "34";
|
||||
module = type: key: {
|
||||
inherit type key keyColor;
|
||||
};
|
||||
formatModule = type: key: format: {
|
||||
inherit
|
||||
type
|
||||
key
|
||||
format
|
||||
keyColor
|
||||
;
|
||||
};
|
||||
in
|
||||
[
|
||||
"break"
|
||||
"break"
|
||||
{
|
||||
type = "title";
|
||||
keyWidth = 10;
|
||||
}
|
||||
"break"
|
||||
(module "os" " ")
|
||||
(module "kernel" " ")
|
||||
(formatModule "packages" " " "{} (nixpkgs)")
|
||||
(module "shell" " ")
|
||||
(module "terminal" " ")
|
||||
(module "wm" " ")
|
||||
(module "theme" " ")
|
||||
(module "cursor" " ")
|
||||
(module "terminalfont" " ")
|
||||
(module "uptime" " ")
|
||||
(formatModule "datetime" " " "{1}-{3}-{11}")
|
||||
(module "cpu" " ")
|
||||
(module "gpu" " ")
|
||||
(module "sound" " ")
|
||||
(module "lm" " ")
|
||||
"break"
|
||||
"colors"
|
||||
"break"
|
||||
"break"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
@ -1,57 +0,0 @@
|
||||
{ pkgs, ... }:
|
||||
let
|
||||
theme = import ../theme.nix;
|
||||
in
|
||||
{
|
||||
catppuccin = {
|
||||
fish = {
|
||||
enable = true;
|
||||
flavor = theme.flavor;
|
||||
};
|
||||
starship = {
|
||||
enable = true;
|
||||
flavor = theme.flavor;
|
||||
};
|
||||
};
|
||||
|
||||
programs = {
|
||||
fish = {
|
||||
enable = true;
|
||||
# Start starship when creating a new shell
|
||||
interactiveShellInit = ''
|
||||
starship init fish | source
|
||||
${pkgs.fortune}/bin/fortune | ${pkgs.cowsay}/bin/cowsay -f tux
|
||||
'';
|
||||
plugins = [
|
||||
{
|
||||
# !! to get the previous command
|
||||
# https://github.com/BrewingWeasel/fishbang
|
||||
name = "fishbang";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "BrewingWeasel";
|
||||
repo = "fishbang";
|
||||
rev = "50389667eb9ac79edcff9b987c83e1de8ac93921";
|
||||
hash = "sha256-IneNWyfo29C7FDA5b6pTZRX3HpP6y/dRM6GXuLq2+zc=";
|
||||
};
|
||||
}
|
||||
];
|
||||
shellAliases = {
|
||||
nix-shell = "nix-shell --run fish"; # Start nix-shells using fishcd
|
||||
};
|
||||
};
|
||||
|
||||
starship = {
|
||||
enable = true;
|
||||
settings = {
|
||||
directory.substitutions = {
|
||||
"Documents" = " ";
|
||||
"Downloads" = " ";
|
||||
"Music" = " ";
|
||||
"Pictures" = " ";
|
||||
"Git" = " ";
|
||||
"nextcloud" = " ";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
@ -1,53 +0,0 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
catppuccin.freetube.enable = true;
|
||||
|
||||
programs.freetube = {
|
||||
enable = true;
|
||||
package = pkgs.unstable.freetube;
|
||||
settings = {
|
||||
allowDashAv1Formats = true;
|
||||
checkForUpdates = false;
|
||||
currentLocale = "en-GB";
|
||||
defaultTheatreMode = true;
|
||||
defaultQuality = "1080";
|
||||
displayVideoPlayButton = false;
|
||||
region = "NO";
|
||||
useSponsorBlock = true;
|
||||
|
||||
sponsorBlockSponsor = {
|
||||
color = "CatppuccinMochaGreen";
|
||||
skip = "autoSkip";
|
||||
};
|
||||
sponsorBlockSelfPromo = {
|
||||
color = "CatppuccinMochaYellow";
|
||||
skip = "showInSeekBar";
|
||||
};
|
||||
sponsorBlockInteraction = {
|
||||
color = "CatppuccinMochaPink";
|
||||
skip = "showInSeekBar";
|
||||
};
|
||||
sponsorBlockIntro = {
|
||||
color = "CatppuccinMochaSapphire";
|
||||
skip = "doNothing";
|
||||
};
|
||||
sponsorBlockOutro = {
|
||||
color = "CatppuccinMochaBlue";
|
||||
skip = "doNothing";
|
||||
};
|
||||
sponsorBlockRecap = {
|
||||
color = "CatppuccinMochaMauve";
|
||||
skip = "doNothing";
|
||||
};
|
||||
sponsorBlockMusicOffTopic = {
|
||||
color = "CatppuccinMochaFlamingo";
|
||||
skip = "doNothing";
|
||||
};
|
||||
sponsorBlockFiller = {
|
||||
color = "CatppuccinMochaMauve";
|
||||
skip = "doNothing";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
@ -1,11 +0,0 @@
|
||||
let
|
||||
theme = import ../theme.nix;
|
||||
in
|
||||
{
|
||||
gtk.enable = true;
|
||||
catppuccin.gtk = {
|
||||
enable = true;
|
||||
flavor = theme.flavor;
|
||||
icon.enable = true;
|
||||
};
|
||||
}
|
@ -1,103 +0,0 @@
|
||||
let
|
||||
common = import ../../common.nix;
|
||||
app = common.default;
|
||||
in
|
||||
{
|
||||
# TODO binds to move focused window
|
||||
wayland.windowManager.hyprland.settings = {
|
||||
"$mainMod" = "SUPER";
|
||||
"$shiftMod" = "$mainMod SHIFT";
|
||||
"$ctrlMod" = "$mainMod CTRL";
|
||||
"$menu" = "rofi -show drun";
|
||||
|
||||
bind = [
|
||||
"$mainMod, Q, exec, ${app.terminal}"
|
||||
"$mainMod, C, killactive,"
|
||||
"$shiftMod, M, exit,"
|
||||
"$mainMod, E, exec, ${app.fileManager}"
|
||||
"$mainMod, V, togglefloating,"
|
||||
"$mainMod, R, exec, $menu"
|
||||
"$mainMod, P, pseudo," # dwindle
|
||||
"$mainMod, J, togglesplit," # dwindle
|
||||
"$mainMod, B, exec, ${app.browser}"
|
||||
"$mainMod, L, exec, ${app.lockScreen}"
|
||||
"$mainMod, K, exec, [float] ${app.calculator}"
|
||||
"$mainMod, ESCAPE, exec, hyprpanel t dashboardmenu"
|
||||
|
||||
# Move focus with mainMod + arrow keys
|
||||
"$mainMod, left, movefocus, l"
|
||||
"$mainMod, right, movefocus, r"
|
||||
"$mainMod, up, movefocus, u"
|
||||
"$mainMod, down, movefocus, d"
|
||||
|
||||
# Move window with ctrl + mainMod + arrow keys
|
||||
"$ctrlMod, left, movewindow, l"
|
||||
"$ctrlMod, right, movewindow, r"
|
||||
"$ctrlMod, up, movewindow, u"
|
||||
"$ctrlMod, down, movewindow, d"
|
||||
|
||||
# Switch workspaces with mainMod + [0-9]
|
||||
"$mainMod, 1, workspace, 1"
|
||||
"$mainMod, 2, workspace, 2"
|
||||
"$mainMod, 3, workspace, 3"
|
||||
"$mainMod, 4, workspace, 4"
|
||||
"$mainMod, 5, workspace, 5"
|
||||
"$mainMod, 6, workspace, 6"
|
||||
"$mainMod, 7, workspace, 7"
|
||||
"$mainMod, 8, workspace, 8"
|
||||
"$mainMod, 9, workspace, 9"
|
||||
"$mainMod, 0, workspace, 10"
|
||||
|
||||
# Move active window to a workspace with mainMod + SHIFT + [0-9]
|
||||
"$shiftMod, 1, movetoworkspace, 1"
|
||||
"$shiftMod, 2, movetoworkspace, 2"
|
||||
"$shiftMod, 3, movetoworkspace, 3"
|
||||
"$shiftMod, 4, movetoworkspace, 4"
|
||||
"$shiftMod, 5, movetoworkspace, 5"
|
||||
"$shiftMod, 6, movetoworkspace, 6"
|
||||
"$shiftMod, 7, movetoworkspace, 7"
|
||||
"$shiftMod, 8, movetoworkspace, 8"
|
||||
"$shiftMod, 9, movetoworkspace, 9"
|
||||
"$shiftMod, 0, movetoworkspace, 10"
|
||||
|
||||
# Example special workspace (scratchpad)
|
||||
"$mainMod, S, togglespecialworkspace, magic"
|
||||
"$shiftMod, S, movetoworkspace, special:magic"
|
||||
|
||||
# Scroll through existing workspaces with mainMod + scroll
|
||||
"$mainMod, mouse_down, workspace, e+1"
|
||||
"$mainMod, mouse_up, workspace, e-1"
|
||||
];
|
||||
|
||||
binde = [
|
||||
# Resize the focused window
|
||||
"$shiftMod, right, resizeactive, 20 0"
|
||||
"$shiftMod, left, resizeactive, -20 0"
|
||||
"$shiftMod, up, resizeactive, 0 -20"
|
||||
"$shiftMod, down, resizeactive, 0 20"
|
||||
];
|
||||
|
||||
bindm = [
|
||||
# Move/resize windows with mainMod + LMB/RMB and dragging
|
||||
"$mainMod, mouse:272, movewindow"
|
||||
"$mainMod, mouse:273, resizewindow"
|
||||
];
|
||||
|
||||
bindl = [
|
||||
", XF86AudioNext, exec, playerctl next"
|
||||
", XF86AudioPause, exec, playerctl play-pause"
|
||||
", XF86AudioPlay, exec, playerctl play-pause"
|
||||
", XF86AudioPrev, exec, playerctl previous"
|
||||
];
|
||||
|
||||
bindel = [
|
||||
# Laptop multimedia keys for volume and LCD brightness
|
||||
",XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+"
|
||||
",XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
|
||||
",XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
|
||||
",XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"
|
||||
",XF86MonBrightnessUp, exec, brightnessctl s 10%+"
|
||||
",XF86MonBrightnessDown, exec, brightnessctl s 10%-"
|
||||
];
|
||||
};
|
||||
}
|
@ -1,22 +1,8 @@
|
||||
# Home configurations for Hyprland. For system configs, see ./modules/hyprland
|
||||
{ outputs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./binds.nix
|
||||
./hypridle
|
||||
./hyprlock
|
||||
./hyprpanel
|
||||
./hyprpanel.nix
|
||||
./hyprpaper.nix
|
||||
./hyprshot.nix
|
||||
./settings.nix
|
||||
];
|
||||
|
||||
# Adds pkgs.unstable in order to fetch packages from unstable repositories
|
||||
nixpkgs.overlays = [ outputs.overlays.unstable-packages ];
|
||||
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
systemd.variables = [ "--all" ]; # Import environment into systemd
|
||||
};
|
||||
}
|
||||
|
@ -1,38 +0,0 @@
|
||||
let
|
||||
# Time in seconds
|
||||
lockAfter = 1200;
|
||||
screenOffAfter = 1500;
|
||||
suspendAfter = 7200;
|
||||
in
|
||||
{
|
||||
services.hypridle = {
|
||||
enable = true;
|
||||
settings = {
|
||||
general = {
|
||||
before_sleep_cmd = "loginctl lock-session";
|
||||
after_sleep_cmd = "hyprctl dispatch dpms on";
|
||||
lock_cmd = "pidof hyprlock || hyprlock"; # Avoid running multiple instances of hyprlock
|
||||
};
|
||||
|
||||
listener = [
|
||||
# Lock
|
||||
{
|
||||
timeout = lockAfter;
|
||||
on-timeout = "loginctl lock-session";
|
||||
}
|
||||
# Turn off screens
|
||||
{
|
||||
timeout = screenOffAfter;
|
||||
on-timeout = "hyprctl dispatch dpms off";
|
||||
on-resume = "hyprctl dispatch dpms on";
|
||||
}
|
||||
# Suspend
|
||||
{
|
||||
timeout = suspendAfter;
|
||||
on-timeout = "systemctl suspend"; # suspend pc
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
wayland.windowManager.hyprland.settings.exec-once = [ "hypridle" ];
|
||||
}
|
@ -1,89 +0,0 @@
|
||||
{ lib, ... }:
|
||||
let
|
||||
theme = import ../../../theme.nix;
|
||||
in
|
||||
{
|
||||
programs.hyprlock = {
|
||||
enable = true;
|
||||
settings = {
|
||||
"$font" = "${theme.nerdFont} Nerd Font";
|
||||
|
||||
background = [
|
||||
{
|
||||
path = "${../../../wallpapers/catppuccin_page_curl.png}";
|
||||
}
|
||||
];
|
||||
|
||||
# GENERAL
|
||||
general = {
|
||||
disable_loading_bar = true;
|
||||
hide_cursor = true;
|
||||
};
|
||||
|
||||
# LAYOUT
|
||||
label = [
|
||||
{
|
||||
text = "$LAYOUT";
|
||||
color = "${theme.textRgb}";
|
||||
font_size = 25;
|
||||
font_family = "$font";
|
||||
position = "30, -30";
|
||||
halign = "left";
|
||||
valign = "top";
|
||||
}
|
||||
# TIME
|
||||
{
|
||||
text = "$TIME";
|
||||
color = "${theme.textRgb}";
|
||||
font_size = 90;
|
||||
font_family = "$font";
|
||||
position = "-30, 0";
|
||||
halign = "right";
|
||||
valign = "top";
|
||||
}
|
||||
# DATE
|
||||
{
|
||||
text = "cmd[update:43200000] date +\"%A, %d %B %Y\"";
|
||||
color = "${theme.textRgb}";
|
||||
font_size = 25;
|
||||
font_family = "$font";
|
||||
position = "-30, -150";
|
||||
halign = "right";
|
||||
valign = "top";
|
||||
}
|
||||
];
|
||||
|
||||
# USER AVATAR
|
||||
image = {
|
||||
path = "${../../face.png}";
|
||||
size = 100;
|
||||
border_color = "${theme.blueRgb}";
|
||||
position = "0, 75";
|
||||
halign = "center";
|
||||
valign = "center";
|
||||
};
|
||||
|
||||
# INPUT FIELD
|
||||
input-field = {
|
||||
size = "300, 60";
|
||||
outline_thickness = 4;
|
||||
dots_size = 0.2;
|
||||
dots_spacing = 0.2;
|
||||
dots_center = true;
|
||||
outer_color = lib.mkDefault "${theme.blueRgb}";
|
||||
inner_color = lib.mkDefault "${theme.surface0Rgb}";
|
||||
font_color = lib.mkDefault "${theme.textRgb}";
|
||||
fade_on_empty = false;
|
||||
placeholder_text = "<span foreground=\"##${theme.textAlpha}\"> Logged in as <span foreground=\"##${theme.blueAlpha}\">$USER</span></span>";
|
||||
hide_input = false;
|
||||
check_color = lib.mkDefault "${theme.blueRgb}";
|
||||
fail_color = lib.mkDefault "${theme.redRgb}";
|
||||
fail_text = "<i>$FAIL <b>($ATTEMPTS)</b></i>";
|
||||
capslock_color = lib.mkDefault "${theme.yellowRgb}";
|
||||
position = "0, -47"; # TODO change to use % at 25.05
|
||||
halign = "center";
|
||||
valign = "center";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
16
hosts/thinkpad/home-manager/hyprland/hyprpanel.nix
Normal file
16
hosts/thinkpad/home-manager/hyprland/hyprpanel.nix
Normal file
@ -0,0 +1,16 @@
|
||||
{
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
programs.hyprpanel.layout."bar.layouts"."*".right = lib.mkDefault [
|
||||
"kbinput"
|
||||
"volume"
|
||||
"network"
|
||||
"systray"
|
||||
"clock"
|
||||
"battery"
|
||||
"notifications"
|
||||
];
|
||||
}
|
@ -1,123 +0,0 @@
|
||||
{
|
||||
pkgs,
|
||||
inputs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
common = import ../../../common.nix;
|
||||
theme = import ../../../theme.nix;
|
||||
loader = import ../../secretsLoader.nix lib;
|
||||
in
|
||||
{
|
||||
imports = [ inputs.hyprpanel.homeManagerModules.hyprpanel ];
|
||||
|
||||
programs.hyprpanel = {
|
||||
enable = true;
|
||||
# Add hyprpanel to the Hyprland config 'exec-once'.
|
||||
hyprland.enable = true;
|
||||
# Fix the overwrite issue with HyprPanel.
|
||||
overwrite.enable = true;
|
||||
|
||||
# Import a theme from './themes/*.json'.
|
||||
theme = "";
|
||||
|
||||
# Override the final config with an arbitrary set.
|
||||
# Useful for overriding colors in your selected theme.
|
||||
# Default: {}
|
||||
override = {
|
||||
theme.bar.menus.text = "#123ABC";
|
||||
};
|
||||
|
||||
# Configure bar layouts for monitors.
|
||||
layout = {
|
||||
"bar.layouts" = {
|
||||
"*" = {
|
||||
left = [
|
||||
"dashboard"
|
||||
"workspaces"
|
||||
"windowtitle"
|
||||
];
|
||||
middle = [ "media" ];
|
||||
right = [
|
||||
"kbinput"
|
||||
"volume"
|
||||
"network"
|
||||
"systray"
|
||||
"clock"
|
||||
"battery"
|
||||
"notifications"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# Configure and theme almost all options from the GUI.
|
||||
# Options that require '{}' or '[]' are not yet implemented,
|
||||
# except for the layout above.
|
||||
# See 'https://hyprpanel.com/configuration/settings.html'.
|
||||
# Default: <same as gui>
|
||||
settings = {
|
||||
bar = {
|
||||
clock.format = "%a %b %d %H:%M";
|
||||
customModules.kbLayout.leftClick = "hyprctl switchxkblayout keychron-keychron-k8-pro next";
|
||||
launcher.autoDetectIcon = true;
|
||||
network.label = false;
|
||||
volume = {
|
||||
scrollDown = "${pkgs.hyprpanel}/bin/hyprpanel 'vol -1'";
|
||||
scrollUp = "${pkgs.hyprpanel}/bin/hyprpanel 'vol +1'";
|
||||
};
|
||||
workspaces = {
|
||||
show_icons = false;
|
||||
show_numbered = true;
|
||||
};
|
||||
};
|
||||
|
||||
menus = {
|
||||
clock = {
|
||||
time = {
|
||||
military = true;
|
||||
hideSeconds = true;
|
||||
};
|
||||
weather = {
|
||||
unit = "metric";
|
||||
location = "Bergen, Norway";
|
||||
key = loader.loadSecret ../../secrets/weather-api-key;
|
||||
};
|
||||
};
|
||||
|
||||
dashboard = {
|
||||
directories.enabled = false;
|
||||
powermenu.avatar.image = "${../../face.png}";
|
||||
shortcuts.left = {
|
||||
shortcut1 = {
|
||||
command = common.default.browser;
|
||||
icon = ""; # TODO replace with Zen icon
|
||||
tooltip = "Zen";
|
||||
};
|
||||
shortcut2 = {
|
||||
command = "spotify";
|
||||
icon = "";
|
||||
tooltip = "Spotify";
|
||||
};
|
||||
## shortcut3 === discord
|
||||
## shortcut4 === rofi -show drun
|
||||
};
|
||||
stats.enable_gpu = true;
|
||||
};
|
||||
};
|
||||
|
||||
scalingPriority = "hyprland";
|
||||
|
||||
theme = {
|
||||
bar.transparent = true;
|
||||
font = {
|
||||
name = "${theme.nerdFont} NF";
|
||||
size = "16px";
|
||||
};
|
||||
};
|
||||
|
||||
wallpaper.enable = false;
|
||||
};
|
||||
};
|
||||
}
|
@ -1,33 +1,23 @@
|
||||
# Wallpapers
|
||||
{ pkgs, ... }:
|
||||
|
||||
let
|
||||
common = import ../../common.nix;
|
||||
in
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
hyprpaper
|
||||
];
|
||||
lib,
|
||||
theme,
|
||||
common,
|
||||
...
|
||||
}:
|
||||
|
||||
services.hyprpaper = {
|
||||
enable = true;
|
||||
settings =
|
||||
{
|
||||
services.hyprpaper =
|
||||
let
|
||||
wallpaperDir = ../../wallpapers;
|
||||
monitor1 = "${wallpaperDir}/nixos_waves.png";
|
||||
monitor1 = builtins.toString theme.wallpaper.monitor1;
|
||||
in
|
||||
{
|
||||
ipc = "on";
|
||||
splash = false;
|
||||
splash_offset = 2.0;
|
||||
|
||||
preload = [
|
||||
preload = lib.mkDefault [
|
||||
monitor1
|
||||
];
|
||||
|
||||
wallpaper = [
|
||||
wallpaper = lib.mkDefault [
|
||||
"${common.monitor1},${monitor1}"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
@ -1,19 +0,0 @@
|
||||
let
|
||||
common = import ../../common.nix;
|
||||
in
|
||||
{
|
||||
wayland.windowManager.hyprland.settings = {
|
||||
"$mainMod" = "SUPER";
|
||||
"$shiftMod" = "$mainMod SHIFT";
|
||||
|
||||
env = [
|
||||
"HYPRSHOT_DIR,${common.dir.pictures}/screenshots" # Store screenshots here
|
||||
];
|
||||
|
||||
bind = [
|
||||
"$mainMod, PRINT, exec, hyprshot -m window" # Window
|
||||
", PRINT, exec, hyprshot -m output" # Monitor
|
||||
"$shiftMod, PRINT, exec, hyprshot -m region" # Region
|
||||
];
|
||||
};
|
||||
}
|
@ -1,135 +1,30 @@
|
||||
{ lib, ... }:
|
||||
let
|
||||
common = import ../../common.nix;
|
||||
theme = import ../../theme.nix;
|
||||
app = common.default;
|
||||
in
|
||||
{
|
||||
lib,
|
||||
common,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
wayland.windowManager.hyprland.settings = {
|
||||
monitor = [
|
||||
monitor = lib.mkDefault [
|
||||
"${common.monitor1}, 1920x1080@60.05, 0x0, 1"
|
||||
];
|
||||
|
||||
# Autostart
|
||||
exec-once = [
|
||||
app.browser
|
||||
app.terminal
|
||||
"systemctl --user start hyprpolkitagent"
|
||||
"hyprsunset -t 5000" # Set blue light filter
|
||||
];
|
||||
|
||||
env = [
|
||||
"ELECTRON_OZONE_PLATFORM_HINT,auto" # Tell Electron apps to use Wayland
|
||||
];
|
||||
|
||||
general = {
|
||||
gaps_in = 5;
|
||||
gaps_out = 20;
|
||||
border_size = 2;
|
||||
"col.active_border" = lib.mkDefault "${theme.mauveRgb} ${theme.tealRgb} 45deg";
|
||||
"col.inactive_border" = lib.mkDefault "rgba(${theme.surface2Alpha}aa)";
|
||||
resize_on_border = true;
|
||||
allow_tearing = false;
|
||||
layout = "dwindle";
|
||||
};
|
||||
|
||||
decoration = {
|
||||
rounding = 10;
|
||||
|
||||
# Change transparency of focused and unfocused windows
|
||||
active_opacity = 1.0;
|
||||
inactive_opacity = 1.0;
|
||||
|
||||
shadow = {
|
||||
enabled = true;
|
||||
range = 4;
|
||||
render_power = 3;
|
||||
color = lib.mkDefault theme.baseRgb;
|
||||
};
|
||||
|
||||
blur = {
|
||||
enabled = true;
|
||||
size = 3;
|
||||
passes = 1;
|
||||
|
||||
vibrancy = 0.1696;
|
||||
};
|
||||
};
|
||||
|
||||
animations = {
|
||||
enabled = "yes, please :)";
|
||||
|
||||
bezier = [
|
||||
"easeOutQuint,0.23,1,0.32,1"
|
||||
"easeInOutCubic,0.65,0.05,0.36,1"
|
||||
"linear,0,0,1,1"
|
||||
"almostLinear,0.5,0.5,0.75,1.0"
|
||||
"quick,0.15,0,0.1,1"
|
||||
];
|
||||
|
||||
animation = [
|
||||
"global, 1, 10, default"
|
||||
"border, 1, 5.39, easeOutQuint"
|
||||
"windows, 1, 4.79, easeOutQuint"
|
||||
"windowsIn, 1, 4.1, easeOutQuint, popin 87%"
|
||||
"windowsOut, 1, 1.49, linear, popin 87%"
|
||||
"fadeIn, 1, 1.73, almostLinear"
|
||||
"fadeOut, 1, 1.46, almostLinear"
|
||||
"fade, 1, 3.03, quick"
|
||||
"layers, 1, 3.81, easeOutQuint"
|
||||
"layersIn, 1, 4, easeOutQuint, fade"
|
||||
"layersOut, 1, 1.5, linear, fade"
|
||||
"fadeLayersIn, 1, 1.79, almostLinear"
|
||||
"fadeLayersOut, 1, 1.39, almostLinear"
|
||||
"workspaces, 1, 1.94, almostLinear, fade"
|
||||
"workspacesIn, 1, 1.21, almostLinear, fade"
|
||||
"workspacesOut, 1, 1.94, almostLinear, fade"
|
||||
];
|
||||
};
|
||||
|
||||
dwindle = {
|
||||
pseudotile = true; # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
||||
preserve_split = true; # You probably want this
|
||||
};
|
||||
|
||||
master.new_status = "master";
|
||||
|
||||
misc = {
|
||||
force_default_wallpaper = 0;
|
||||
disable_hyprland_logo = true;
|
||||
};
|
||||
|
||||
debug.disable_logs = false;
|
||||
|
||||
input = {
|
||||
kb_layout = common.keymaps.layout;
|
||||
kb_options = common.keymaps.options;
|
||||
follow_mouse = 1;
|
||||
sensitivity = 0.4; # -1.0 - 1.0, 0 means no modification.
|
||||
touchpad.natural_scroll = true;
|
||||
};
|
||||
|
||||
gestures = {
|
||||
gestures = lib.mkDefault {
|
||||
workspace_swipe = true;
|
||||
workspace_swipe_distance = 150;
|
||||
workspace_swipe_min_speed_to_force = 0;
|
||||
workspace_swipe_cancel_ratio = 0.5;
|
||||
};
|
||||
|
||||
device = {
|
||||
name = "logitech-g502-hero-gaming-mouse";
|
||||
sensitivity = -0.10;
|
||||
};
|
||||
|
||||
windowrulev2 = [
|
||||
# Ignore maximize requests from apps
|
||||
"suppressevent maximize, class:.*"
|
||||
# Fix some dragging issues with XWayland
|
||||
"nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0"
|
||||
# Avoid locking in fullscreen
|
||||
"idleinhibit fullscreen, class:^(*)$"
|
||||
"idleinhibit fullscreen, title:^(*)$"
|
||||
"idleinhibit fullscreen, fullscreen:1"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
@ -1,25 +0,0 @@
|
||||
let
|
||||
common = import ../common.nix;
|
||||
theme = import ../theme.nix;
|
||||
in
|
||||
{
|
||||
catppuccin.kitty = {
|
||||
enable = true;
|
||||
flavor = theme.flavor;
|
||||
};
|
||||
|
||||
programs = {
|
||||
# Transfer shell config to target device
|
||||
fish.shellAliases.ssh = "kitty +kitten ssh";
|
||||
kitty = {
|
||||
enable = common.default.terminal == "kitty";
|
||||
font.name = theme.nerdFont;
|
||||
settings = {
|
||||
background_blur = 5;
|
||||
background_opacity = 0.8;
|
||||
confirm_os_window_close = 0;
|
||||
window_padding_width = 10;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
@ -1,29 +0,0 @@
|
||||
{
|
||||
catppuccin.mpv =
|
||||
let
|
||||
theme = import ../theme.nix;
|
||||
in
|
||||
{
|
||||
enable = true;
|
||||
flavor = theme.flavor;
|
||||
};
|
||||
|
||||
programs = {
|
||||
fish.shellAliases.mpvl = "mpv --profile=loop";
|
||||
mpv = {
|
||||
enable = true;
|
||||
config = {
|
||||
hwdec = "auto-safe";
|
||||
vo = "gpu";
|
||||
profile = "gpu-hq";
|
||||
gpu-context = "wayland";
|
||||
};
|
||||
profiles = {
|
||||
loop = {
|
||||
loop-playlist = "inf";
|
||||
loop-file = "inf";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
@ -1,6 +0,0 @@
|
||||
{
|
||||
services.nextcloud-client = {
|
||||
enable = true;
|
||||
startInBackground = true;
|
||||
};
|
||||
}
|
@ -1,35 +0,0 @@
|
||||
{
|
||||
pkgs,
|
||||
inputs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [ inputs.spicetify-nix.homeManagerModules.default ];
|
||||
programs.spicetify =
|
||||
let
|
||||
spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.system};
|
||||
theme = import ../theme.nix;
|
||||
in
|
||||
{
|
||||
enable = true;
|
||||
|
||||
enabledExtensions = with spicePkgs.extensions; [
|
||||
adblock
|
||||
fullAppDisplay
|
||||
hidePodcasts
|
||||
shuffle # shuffle+ (special characters are sanitized out of extension names)
|
||||
];
|
||||
enabledCustomApps = with spicePkgs.apps; [
|
||||
newReleases
|
||||
ncsVisualizer
|
||||
];
|
||||
enabledSnippets = with spicePkgs.snippets; [
|
||||
pointer
|
||||
];
|
||||
|
||||
theme = lib.mkForce spicePkgs.themes.catppuccin;
|
||||
colorScheme = lib.mkForce theme.flavor;
|
||||
};
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -1,327 +0,0 @@
|
||||
{ lib, ... }:
|
||||
let
|
||||
theme = import ../../theme.nix;
|
||||
batTheme = ".config/yazi/catppuccin-${theme.flavor}.tmTheme";
|
||||
in
|
||||
{
|
||||
home.file.${batTheme}.source = ./catppuccin-mocha.tmTheme;
|
||||
|
||||
programs.yazi = {
|
||||
enable = true;
|
||||
settings = {
|
||||
manager = {
|
||||
ratio = [
|
||||
2
|
||||
4
|
||||
2
|
||||
];
|
||||
sort_by = "natural";
|
||||
sort_sensitive = true;
|
||||
sort_reverse = false;
|
||||
sort_dir_first = true;
|
||||
linemode = "none";
|
||||
show_hidden = true;
|
||||
show_symlink = true;
|
||||
};
|
||||
|
||||
preview = {
|
||||
image_filter = "lanczos3";
|
||||
image_quality = 90;
|
||||
tab_size = 1;
|
||||
max_width = 600;
|
||||
max_height = 900;
|
||||
cache_dir = "";
|
||||
ueberzug_scale = 1;
|
||||
ueberzug_offset = [
|
||||
0
|
||||
0
|
||||
0
|
||||
0
|
||||
];
|
||||
};
|
||||
|
||||
tasks = {
|
||||
micro_workers = 5;
|
||||
macro_workers = 10;
|
||||
bizarre_retry = 5;
|
||||
};
|
||||
};
|
||||
theme = lib.mkForce {
|
||||
manager = {
|
||||
cwd = {
|
||||
fg = "#${theme.tealAlpha}";
|
||||
};
|
||||
|
||||
hovered = {
|
||||
fg = "#${theme.baseAlpha}";
|
||||
bg = "#${theme.blueAlpha}";
|
||||
};
|
||||
preview_hovered = {
|
||||
fg = "#${theme.baseAlpha}";
|
||||
bg = "#${theme.textAlpha}";
|
||||
};
|
||||
|
||||
find_keyword = {
|
||||
fg = "#${theme.yellowAlpha}";
|
||||
italic = true;
|
||||
};
|
||||
find_position = {
|
||||
fg = "#${theme.pinkAlpha}";
|
||||
bg = "reset";
|
||||
italic = true;
|
||||
};
|
||||
|
||||
marker_copied = {
|
||||
fg = "#${theme.greenAlpha}";
|
||||
bg = "#${theme.greenAlpha}";
|
||||
};
|
||||
marker_cut = {
|
||||
fg = "#${theme.redAlpha}";
|
||||
bg = "#${theme.redAlpha}";
|
||||
};
|
||||
marker_marked = {
|
||||
fg = "#${theme.tealAlpha}";
|
||||
bg = "#${theme.tealAlpha}";
|
||||
};
|
||||
marker_selected = {
|
||||
fg = "#${theme.blueAlpha}";
|
||||
bg = "#${theme.blueAlpha}";
|
||||
};
|
||||
|
||||
tab_active = {
|
||||
fg = "#${theme.baseAlpha}";
|
||||
bg = "#${theme.textAlpha}";
|
||||
};
|
||||
tab_inactive = {
|
||||
fg = "#${theme.textAlpha}";
|
||||
bg = "#${theme.surface1Alpha}";
|
||||
};
|
||||
tab_width = 1;
|
||||
|
||||
count_copied = {
|
||||
fg = "#${theme.baseAlpha}";
|
||||
bg = "#${theme.greenAlpha}";
|
||||
};
|
||||
count_cut = {
|
||||
fg = "#${theme.baseAlpha}";
|
||||
bg = "#${theme.redAlpha}";
|
||||
};
|
||||
count_selected = {
|
||||
fg = "#${theme.baseAlpha}";
|
||||
bg = "#${theme.blueAlpha}";
|
||||
};
|
||||
|
||||
border_symbol = "│";
|
||||
border_style.fg = "#${theme.overlay1Alpha}";
|
||||
|
||||
syntect_theme = "~/${batTheme}";
|
||||
};
|
||||
|
||||
mode = {
|
||||
normal_main = {
|
||||
fg = "#${theme.baseAlpha}";
|
||||
bg = "#${theme.blueAlpha}";
|
||||
bold = true;
|
||||
};
|
||||
normal_alt = {
|
||||
fg = "#${theme.blueAlpha}";
|
||||
bg = "#${theme.surface0Alpha}";
|
||||
};
|
||||
|
||||
select_main = {
|
||||
fg = "#${theme.baseAlpha}";
|
||||
bg = "#${theme.greenAlpha}";
|
||||
bold = true;
|
||||
};
|
||||
select_alt = {
|
||||
fg = "#${theme.greenAlpha}";
|
||||
bg = "#${theme.surface0Alpha}";
|
||||
};
|
||||
|
||||
unset_main = {
|
||||
fg = "#${theme.baseAlpha}";
|
||||
bg = "#${theme.flamingoAlpha}";
|
||||
bold = true;
|
||||
};
|
||||
unset_alt = {
|
||||
fg = "#${theme.flamingoAlpha}";
|
||||
bg = "#${theme.surface0Alpha}";
|
||||
};
|
||||
};
|
||||
|
||||
status = {
|
||||
separator_open = "";
|
||||
separator_close = "";
|
||||
|
||||
progress_label = {
|
||||
fg = "#ffffff";
|
||||
bold = true;
|
||||
};
|
||||
progress_normal = {
|
||||
fg = "#${theme.blueAlpha}";
|
||||
bg = "#${theme.surface1Alpha}";
|
||||
};
|
||||
progress_error = {
|
||||
fg = "#${theme.redAlpha}";
|
||||
bg = "#${theme.surface1Alpha}";
|
||||
};
|
||||
|
||||
perm_type = {
|
||||
fg = "#${theme.blueAlpha}";
|
||||
};
|
||||
perm_read = {
|
||||
fg = "#${theme.yellowAlpha}";
|
||||
};
|
||||
perm_write = {
|
||||
fg = "#${theme.redAlpha}";
|
||||
};
|
||||
perm_exec = {
|
||||
fg = "#${theme.greenAlpha}";
|
||||
};
|
||||
perm_sep = {
|
||||
fg = "#${theme.overlay1Alpha}";
|
||||
};
|
||||
};
|
||||
|
||||
input = {
|
||||
border = {
|
||||
fg = "#${theme.blueAlpha}";
|
||||
};
|
||||
title = { };
|
||||
value = { };
|
||||
selected.reversed = true;
|
||||
};
|
||||
|
||||
pick = {
|
||||
border = {
|
||||
fg = "#${theme.blueAlpha}";
|
||||
};
|
||||
active = {
|
||||
fg = "#${theme.pinkAlpha}";
|
||||
};
|
||||
inactive = { };
|
||||
};
|
||||
|
||||
confirm = {
|
||||
border = {
|
||||
fg = "#${theme.blueAlpha}";
|
||||
};
|
||||
title = {
|
||||
fg = "#${theme.blueAlpha}";
|
||||
};
|
||||
content = { };
|
||||
list = { };
|
||||
btn_yes = {
|
||||
reversed = true;
|
||||
};
|
||||
btn_no = { };
|
||||
};
|
||||
|
||||
completion = {
|
||||
border = {
|
||||
fg = "#${theme.blueAlpha}";
|
||||
};
|
||||
};
|
||||
tasks = {
|
||||
border = {
|
||||
fg = "#${theme.blueAlpha}";
|
||||
};
|
||||
title = { };
|
||||
hovered = {
|
||||
underline = true;
|
||||
};
|
||||
};
|
||||
|
||||
which = {
|
||||
mask = {
|
||||
bg = "#${theme.surface0Alpha}";
|
||||
};
|
||||
cand = {
|
||||
fg = "#${theme.tealAlpha}";
|
||||
};
|
||||
rest = {
|
||||
fg = "#9399b2";
|
||||
};
|
||||
desc = {
|
||||
fg = "#${theme.pinkAlpha}";
|
||||
};
|
||||
separator = " ";
|
||||
separator_style = {
|
||||
fg = "#${theme.surface2Alpha}";
|
||||
};
|
||||
};
|
||||
help = {
|
||||
on = {
|
||||
fg = "#${theme.tealAlpha}";
|
||||
};
|
||||
run = {
|
||||
fg = "#${theme.pinkAlpha}";
|
||||
};
|
||||
desc = {
|
||||
fg = "#9399b2";
|
||||
};
|
||||
hovered = {
|
||||
bg = "#${theme.surface2Alpha}";
|
||||
bold = true;
|
||||
};
|
||||
footer = {
|
||||
fg = "#${theme.textAlpha}";
|
||||
bg = "#${theme.surface1Alpha}";
|
||||
};
|
||||
};
|
||||
|
||||
notify = {
|
||||
title_info = {
|
||||
fg = "#${theme.tealAlpha}";
|
||||
};
|
||||
title_warn = {
|
||||
fg = "#${theme.yellowAlpha}";
|
||||
};
|
||||
title_error = {
|
||||
fg = "#${theme.redAlpha}";
|
||||
};
|
||||
};
|
||||
filetype = {
|
||||
rules = [
|
||||
# Media
|
||||
{
|
||||
mime = "image/*";
|
||||
fg = "#${theme.tealAlpha}";
|
||||
}
|
||||
{
|
||||
mime = "{audio;video}/*";
|
||||
fg = "#${theme.yellowAlpha}";
|
||||
}
|
||||
|
||||
# Archives
|
||||
{
|
||||
mime = "application/*zip";
|
||||
fg = "#${theme.pinkAlpha}";
|
||||
}
|
||||
{
|
||||
mime = "application/x-{tar;bzip*;7z-compressed;xz;rar}";
|
||||
fg = "#${theme.pinkAlpha}";
|
||||
}
|
||||
|
||||
# Documents
|
||||
{
|
||||
mime = "application/{pdf;doc;rtf}";
|
||||
fg = "#${theme.greenAlpha}";
|
||||
}
|
||||
|
||||
# Fallback
|
||||
{
|
||||
name = "*";
|
||||
fg = "#${theme.textAlpha}";
|
||||
}
|
||||
{
|
||||
name = "*/";
|
||||
fg = "#${theme.blueAlpha}";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
icon = import ./icons.nix;
|
||||
};
|
||||
};
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -1,7 +1,7 @@
|
||||
{ pkgs, inputs, ... }:
|
||||
|
||||
{
|
||||
# TODO programatically get default name
|
||||
# TODO merge with shared
|
||||
home = {
|
||||
file.".zen/xdaxqlov.default/chrome" = {
|
||||
source = ./chrome;
|
||||
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
53
shared/home-manager/default.nix
Normal file
53
shared/home-manager/default.nix
Normal file
@ -0,0 +1,53 @@
|
||||
{
|
||||
inputs,
|
||||
outputs,
|
||||
common,
|
||||
...
|
||||
}:
|
||||
let
|
||||
username = common.username;
|
||||
dir = common.dir;
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
inputs.catppuccin.homeModules.catppuccin
|
||||
./btop.nix
|
||||
./cava
|
||||
./cursors.nix
|
||||
./default-applications.nix
|
||||
./development
|
||||
./fastfetch.nix
|
||||
./fish.nix
|
||||
./freetube.nix
|
||||
./gtk.nix
|
||||
./gpg.nix
|
||||
./kitty.nix
|
||||
./media
|
||||
./nextcloud.nix
|
||||
./rofi
|
||||
./hyprland
|
||||
./spicetify.nix
|
||||
./yazi
|
||||
./zen
|
||||
];
|
||||
|
||||
home = {
|
||||
username = username;
|
||||
homeDirectory = dir.home;
|
||||
|
||||
sessionVariables = {
|
||||
XDG_PICTURES_DIR = dir.pictures; # Define the default dir for pictures
|
||||
};
|
||||
|
||||
# You can update Home Manager without changing this value. See
|
||||
# the Home Manager release notes for a list of state version
|
||||
# changes in each release.
|
||||
stateVersion = common.system.version;
|
||||
};
|
||||
|
||||
# Adds pkgs.unstable in order to fetch packages from unstable repositories
|
||||
nixpkgs.overlays = [ outputs.overlays.unstable-packages ];
|
||||
|
||||
# Let Home Manager install and manage itself.
|
||||
programs.home-manager.enable = true;
|
||||
}
|
Before Width: | Height: | Size: 568 B After Width: | Height: | Size: 568 B |
Loading…
x
Reference in New Issue
Block a user