mirror of
https://github.com/ItsDrike/nixdots
synced 2025-06-29 16:20:42 +00:00
Run alejandra
This commit is contained in:
parent
286920def4
commit
c00134da1c
152 changed files with 827 additions and 721 deletions
|
@ -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"];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
{lib, config, ...}: let
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf;
|
||||
deviceType = config.myOptions.device.roles.type;
|
||||
acceptedTypes = ["laptop" "desktop"];
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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"];
|
||||
|
|
|
@ -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
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
{ lib, config, ...}: let
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf;
|
||||
deviceType = config.myOptions.device.roles.type;
|
||||
acceptedTypes = ["laptop" "desktop"];
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
{ lib, config, ...}: let
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf;
|
||||
deviceType = config.myOptions.device.roles.type;
|
||||
acceptedTypes = ["laptop" "desktop"];
|
||||
|
|
|
@ -16,4 +16,3 @@ in {
|
|||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -18,6 +18,6 @@ in {
|
|||
headless = true;
|
||||
};
|
||||
|
||||
users.extraGroups.vboxusers.members = [ "${cfgUser}" ];
|
||||
users.extraGroups.vboxusers.members = ["${cfgUser}"];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -8,4 +8,3 @@
|
|||
./gnome-keyring.nix
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
{pkgs, lib, config, ...}: let
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf;
|
||||
deviceType = config.myOptions.device.roles.type;
|
||||
acceptedTypes = ["laptop" "desktop"];
|
||||
|
|
|
@ -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"];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
{lib, config, ...}: let
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf;
|
||||
deviceType = config.myOptions.device.roles.type;
|
||||
acceptedTypes = ["laptop" "desktop"];
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
{ lib, config, ...}: let
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf;
|
||||
deviceType = config.myOptions.device.roles.type;
|
||||
acceptedTypes = ["laptop" "desktop"];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue