♻️ 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,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;