refactor(flake): avoid imports

This commit is contained in:
Artur Manuel 2025-02-04 11:10:02 +00:00
commit b57b8151ed
7 changed files with 54 additions and 63 deletions

View file

@ -1,8 +1,10 @@
{
inputs,
lib,
self,
...
}: {
}: let
inherit (self) lib;
in {
flake = {
nixosConfigurations = builtins.mapAttrs (n: v: lib.mkHost (v // {host = n;})) {
python = {

View file

@ -232,7 +232,7 @@ animations {
// off
// Slow down all animations by this factor. Values below 1 speed them up instead.
slowdown 0.5
slowdown 0.9
}
// Window rules let you adjust behavior for individual windows.

View file

@ -42,13 +42,13 @@ nord = {
load_theme(c, nord)
c.colors.webpage.preferred_color_scheme = "dark"
c.tabs.position = "left"
c.tabs.position = "top"
c.tabs.width = 32
c.fonts.default_size = "14pt"
c.fonts.default_size = "13pt"
c.fonts.default_family = "sans-serif"
c.tabs.padding = {
"bottom": 6,
"top": 6,
"bottom": 4,
"top": 4,
"left": 6,
"right": 6,
}

View file

@ -12,26 +12,30 @@ in {
};
config = lib.mkIf cfg.enable {
alqueva.support.wayland = true;
xdg.portal = {
enable = true;
configPackages = [cfg.package];
extraPortals = [pkgs.xdg-desktop-portal-gnome];
config = {
niri = {
default = [
"gnome"
];
"org.freedesktop.impl.portal.Secret" = [
"gnome-keyring"
];
};
};
};
environment.systemPackages = [
cfg.package
];
xdg.portal = {
config = {
niri = {
"org.freedesktop.impl.portal.Secret" = [
"gnome-keyring"
];
default = [
"gnome"
"gtk"
];
};
};
configPackages = [cfg.package];
extraPortals = [
pkgs.xdg-desktop-portal-gnome
pkgs.xdg-desktop-portal-gtk
];
};
alqueva.support.wayland = true;
services.gnome.gnome-keyring.enable = true;
};
}

View file

@ -1,7 +1,6 @@
{
config,
lib,
pkgs,
...
}: let
cfg = config.alqueva.support;
@ -11,19 +10,14 @@ in {
wayland = mkEnableOption "wayland support";
};
config = lib.mkIf cfg.wayland {
xdg.portal = lib.mkDefault {
xdg.portal = {
enable = true;
config.common = {
default = ["gtk"];
};
extraPortals = [pkgs.xdg-desktop-portal-gtk];
xdgOpenUsePortal = true;
};
environment.sessionVariables = {
"NIXOS_OZONE_WL" = "1";
"QT_QPA_PLATFORM" = "wayland";
};
services.gnome.gnome-keyring.enable = true;
};
}