Run alejandra

This commit is contained in:
ItsDrike 2024-07-27 01:07:07 +02:00
parent 286920def4
commit c00134da1c
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0
152 changed files with 827 additions and 721 deletions

View file

@ -7,7 +7,6 @@
inherit (lib) mkIf getExe;
inherit (lib.strings) concatStringsSep;
deviceType = config.myOptions.device.roles.type;
acceptedTypes = ["laptop" "desktop"];
@ -74,6 +73,6 @@ in {
};
# Persist info about previous session & user
myOptions.system.impermanence.root.extraDirectories = [ "/var/cache/tuigreet" ];
myOptions.system.impermanence.root.extraDirectories = ["/var/cache/tuigreet"];
};
}

View file

@ -1,4 +1,8 @@
{lib, config, ...}: let
{
lib,
config,
...
}: let
inherit (lib) mkIf;
deviceType = config.myOptions.device.roles.type;
acceptedTypes = ["laptop" "desktop"];

View file

@ -11,7 +11,7 @@ in {
config = mkIf cfgEnabled {
systemd.services = {
# Seat management daemon
# (Takes care of mediating access to shared devices (graphics, input), without requiring
# (Takes care of mediating access to shared devices (graphics, input), without requiring
# applications like Wayland compositors being granted root privileges)
seatd = {
enable = true;

View file

@ -19,11 +19,14 @@ in {
# Specify which portals should be used by the individual interfaces
# see: <https://github.com/flatpak/xdg-desktop-portal/blob/1.18.1/doc/portals.conf.rst.in>
config.common = let
config.common = let
# Note: this assumes a wlroots based compositor if it's not hyprland
# which may not always actually be the case, however, I can't be bothered to handle
# everything here and I don't plan on moving WMs any time soon.
portal = if cfgHyprlandEnabled then "hyprland" else "wlr";
portal =
if cfgHyprlandEnabled
then "hyprland"
else "wlr";
in {
# Use this portal for every interface, unless a specific override is present
default = ["gtk"];

View file

@ -1,4 +1,9 @@
{pkgs, lib, config, ...}: let
{
pkgs,
lib,
config,
...
}: let
inherit (lib) mkIf;
deviceType = config.myOptions.device.roles.type;
acceptedTypes = ["laptop" "desktop"];
@ -15,29 +20,33 @@ in {
"Noto Color Emoji"
];
in {
monospace = [
"Monaspace Krypton"
"Source Code Pro Medium"
"Source Han Mono"
]
++ common;
monospace =
[
"Monaspace Krypton"
"Source Code Pro Medium"
"Source Han Mono"
]
++ common;
sansSerif = [
"Noto Sans"
"Jost"
"Lexend"
]
++ common;
sansSerif =
[
"Noto Sans"
"Jost"
"Lexend"
]
++ common;
serif = [
"Noto Serif"
]
++ common;
serif =
[
"Noto Serif"
]
++ common;
emoji = [
"Noto Color Emoji"
]
++ common;
emoji =
[
"Noto Color Emoji"
]
++ common;
};
};
@ -103,8 +112,8 @@ in {
};
environment.systemPackages = with pkgs; [
# Tool for searching and previewing installed fonts
font-manager
# Tool for searching and previewing installed fonts
font-manager
];
};
}

View file

@ -1,4 +1,8 @@
{ lib, config, ...}: let
{
lib,
config,
...
}: let
inherit (lib) mkIf;
deviceType = config.myOptions.device.roles.type;
acceptedTypes = ["laptop" "desktop"];

View file

@ -1,4 +1,8 @@
{ lib, config, ...}: let
{
lib,
config,
...
}: let
inherit (lib) mkIf;
deviceType = config.myOptions.device.roles.type;
acceptedTypes = ["laptop" "desktop"];

View file

@ -16,4 +16,3 @@ in {
};
};
}

View file

@ -1,7 +1,7 @@
{
lib,
pkgs,
config,
{
lib,
pkgs,
config,
...
}: let
inherit (lib) mkIf;
@ -9,7 +9,7 @@
acceptedTypes = ["laptop" "desktop"];
in {
config = mkIf (builtins.elem deviceType acceptedTypes) {
# Unconditionally enable thunar file manager here as a relatively
# Unconditionally enable thunar file manager here as a relatively
# lightweight fallback option for my default file manager.
programs.thunar = {
enable = true;
@ -34,4 +34,3 @@ in {
services.tumbler.enable = true;
};
}

View file

@ -18,6 +18,6 @@ in {
headless = true;
};
users.extraGroups.vboxusers.members = [ "${cfgUser}" ];
users.extraGroups.vboxusers.members = ["${cfgUser}"];
};
}

View file

@ -8,4 +8,3 @@
./gnome-keyring.nix
];
}

View file

@ -1,4 +1,9 @@
{pkgs, lib, config, ...}: let
{
pkgs,
lib,
config,
...
}: let
inherit (lib) mkIf;
deviceType = config.myOptions.device.roles.type;
acceptedTypes = ["laptop" "desktop"];

View file

@ -1,4 +1,9 @@
{pkgs, lib, config, ...}: let
{
pkgs,
lib,
config,
...
}: let
inherit (lib) mkIf;
deviceType = config.myOptions.device.roles.type;
acceptedTypes = ["laptop" "desktop"];
@ -14,7 +19,7 @@ in {
programs.seahorse.enable = true;
xdg.portal.config.common = {
"org.freedesktop.impl.portal.Secret" = [ "gnome-keyring" ];
"org.freedesktop.impl.portal.Secret" = ["gnome-keyring"];
};
};
}

View file

@ -1,4 +1,8 @@
{lib, config, ...}: let
{
lib,
config,
...
}: let
inherit (lib) mkIf;
deviceType = config.myOptions.device.roles.type;
acceptedTypes = ["laptop" "desktop"];

View file

@ -1,4 +1,8 @@
{ lib, config, ...}: let
{
lib,
config,
...
}: let
inherit (lib) mkIf;
deviceType = config.myOptions.device.roles.type;
acceptedTypes = ["laptop" "desktop"];