♻️ Replace imports with function argument, hyprpanel does not follow nixpkgs, git push alias

This commit is contained in:
2025-03-09 11:25:26 +01:00
parent a6cb4a5cf6
commit 1ff146e3c0
40 changed files with 214 additions and 332 deletions

View File

@ -1,6 +1,5 @@
let
theme = import ../theme.nix;
in
{ theme, ... }:
{
catppuccin.btop = {
enable = true;

View File

@ -1,9 +1,6 @@
## Audio visualizer
{ pkgs, ... }:
{ pkgs, theme, ... }:
let
theme = import ../../theme.nix;
in
{
catppuccin.cava = {
enable = true;
@ -20,7 +17,7 @@ in
genericName = "Audio visualizer";
terminal = true;
exec = "${pkgs.cava}/bin/cava";
icon = ./cava.png;
icon = ./cava.png; # TODO icon not displaying in runner
categories = [
"Audio"
"AudioVideo"

View File

@ -1,6 +1,5 @@
let
theme = import ../theme.nix;
in
{ theme, ... }:
{
catppuccin.cursors = {
enable = true;

View File

@ -1,10 +1,10 @@
{
pkgs,
inputs,
common,
...
}:
let
common = import ../common.nix;
username = common.username;
dir = common.dir;
in
@ -26,7 +26,7 @@ in
./rofi
./wlogout
./hyprland
./spicetify.nix # TODO env conflict on latest version
./spicetify.nix
./yazi
./zen
];

View File

@ -17,6 +17,7 @@
amend = "commit --amend";
cm = "commit";
s = "status";
p = "push";
};
signing = {

View File

@ -1,4 +1,4 @@
{ pkgs, ... }:
{ pkgs, theme, ... }:
{
programs.zed-editor = {
@ -15,7 +15,6 @@
];
userSettings =
let
theme = import ../../theme.nix;
font = "${theme.nerdFont} Nerd Font";
fontSize = 14;
in
@ -31,7 +30,7 @@
base_keymap = "JetBrains";
buffer_font_family = font;
features = {
inline_completion_provider = "zed";
edit_completion_provider = "zed";
};
icon_theme = "Catppuccin Mocha";
# icon_theme = { TODO replace icon theme above with below

View File

@ -1,6 +1,7 @@
{
programs = {
fish.shellAliases.fetch = "fastfetch";
fastfetch = {
enable = true;
settings = {

View File

@ -1,7 +1,5 @@
{ pkgs, ... }:
let
theme = import ../theme.nix;
in
{ pkgs, theme, ... }:
{
catppuccin = {
fish = {
@ -36,7 +34,7 @@ in
}
];
shellAliases = {
nix-shell = "nix-shell --run fish"; # Start nix-shells using fishcd
nix-shell = "nix-shell --run fish"; # Start nix-shells using fish
};
};

View File

@ -1,11 +1,11 @@
let
theme = import ../theme.nix;
in
{ theme, ... }:
{
gtk.enable = true;
catppuccin.gtk = {
enable = true;
flavor = theme.flavor;
icon.enable = true;
};
gtk.enable = true;
}

View File

@ -1,9 +1,8 @@
{ common, ... }:
let
common = import ../../common.nix;
app = common.default;
in
{
# TODO binds to move focused window
wayland.windowManager.hyprland.settings = {
"$mainMod" = "SUPER";
"$shiftMod" = "$mainMod SHIFT";

View File

@ -1,8 +1,8 @@
{ lib, ... }:
let
theme = import ../../../theme.nix;
in
{ lib, theme, ... }:
{
# TODO use catppuccin package
programs.hyprlock = {
enable = true;
settings = {

View File

@ -1,14 +1,12 @@
{
pkgs,
inputs,
common,
theme,
lib,
...
}:
let
common = import ../../../common.nix;
theme = import ../../../theme.nix;
loader = import ../../secretsLoader.nix lib;
in
{
imports = [ inputs.hyprpanel.homeManagerModules.hyprpanel ];
@ -81,7 +79,7 @@ in
weather = {
unit = "metric";
location = "Bergen, Norway";
key = loader.loadSecret ../../secrets/weather-api-key;
key = common.loadSecret lib ../../secrets/weather-api-key;
};
};
@ -92,7 +90,7 @@ in
shortcut1 = {
command = common.default.browser;
icon = ""; # TODO replace with Zen icon
tooltip = "Zen";
tooltip = "Zen Browser";
};
shortcut2 = {
command = "spotify";

View File

@ -1,8 +1,6 @@
# Wallpapers
{ pkgs, ... }:
let
common = import ../../common.nix;
in
{ pkgs, common, ... }:
{
home.packages = with pkgs; [
hyprpaper

View File

@ -1,6 +1,5 @@
let
common = import ../../common.nix;
in
{ common, ... }:
{
wayland.windowManager.hyprland.settings = {
"$mainMod" = "SUPER";

View File

@ -1,7 +1,10 @@
{ lib, ... }:
{
lib,
common,
theme,
...
}:
let
common = import ../../common.nix;
theme = import ../../theme.nix;
app = common.default;
in
{

View File

@ -1,7 +1,5 @@
{ lib, ... }:
let
theme = import ../../../theme.nix;
in
{ lib, theme, ... }:
{
services.swaync = {
enable = false;

View File

@ -1,7 +1,5 @@
let
common = import ../common.nix;
theme = import ../theme.nix;
in
{ common, theme, ... }:
{
catppuccin.kitty = {
enable = true;

View File

@ -1,12 +1,10 @@
{ theme, ... }:
{
catppuccin.mpv =
let
theme = import ../theme.nix;
in
{
enable = true;
flavor = theme.flavor;
};
catppuccin.mpv = {
enable = true;
flavor = theme.flavor;
};
programs = {
fish.shellAliases.mpvl = "mpv --profile=loop";

View File

@ -15,6 +15,7 @@
".config/rofimoji.rc".source = ./rofimoji.rc;
};
# TODO use catppuccin package
# TODO Use programs.rofi. Theme is not applied correctly
# programs.rofi = {
# enable = true;

View File

@ -1,6 +0,0 @@
lib:
{
loadSecret =
filePath: lib.strings.trim (lib.strings.removeSuffix "\n" (builtins.readFile filePath));
}

View File

@ -2,6 +2,7 @@
pkgs,
inputs,
lib,
theme,
...
}:
@ -10,7 +11,6 @@
programs.spicetify =
let
spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.system};
theme = import ../theme.nix;
in
{
enable = true;

View File

@ -1,9 +1,9 @@
{ lib, ... }:
{ lib, theme, ... }:
let
theme = import ../../theme.nix;
batTheme = ".config/yazi/catppuccin-${theme.flavor}.tmTheme";
in
{
# TODO use catppuccin theme
home.file.${batTheme}.source = ./catppuccin-mocha.tmTheme;
programs.yazi = {