switch nixfmt to alejandra to format nix code

This commit is contained in:
ulic-youthlic 2025-04-28 21:20:32 +08:00
parent 582bdb783c
commit e44894c666
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
120 changed files with 1163 additions and 1237 deletions

View file

@ -4,8 +4,7 @@
config,
rootPath,
...
}:
{
}: {
youthlic = {
xdg-dirs.enable = true;
programs = {

View file

@ -5,8 +5,7 @@
inputs,
unixName,
...
}:
{
}: {
youthlic = {
xdg-dirs.enable = true;
programs = {

View file

@ -1,5 +1,4 @@
{ pkgs, ... }:
{
{pkgs, ...}: {
imports = [
./wallpaper.nix
./programs

View file

@ -1,5 +1,4 @@
{ ... }:
{
{...}: {
imports = [
./openssh.nix
./niri

View file

@ -1,8 +1,10 @@
{ config, lib, ... }:
let
cfg = config.david.programs.niri;
in
{
config,
lib,
...
}: let
cfg = config.david.programs.niri;
in {
options = {
david.programs.niri = {
enable = lib.mkEnableOption "niri";

View file

@ -3,11 +3,9 @@
config,
lib,
...
}:
let
}: let
cfg = config.david.programs.openssh;
in
{
in {
options = {
david.programs.openssh = {
enable = lib.mkEnableOption "openssh";
@ -35,10 +33,9 @@ in
};
};
};
})
(lib.mkIf (cfg.enable && config.youthlic.programs.sops.enable) {
programs.ssh.includes = [ config.sops.secrets.ssh-config.path ];
programs.ssh.includes = [config.sops.secrets.ssh-config.path];
sops.secrets = {
"ssh-private-key/tytonidae" = {
mode = "0600";

View file

@ -1,8 +1,10 @@
{ lib, config, ... }:
let
cfg = config.david.programs.wluma;
in
{
lib,
config,
...
}: let
cfg = config.david.programs.wluma;
in {
options = {
david.programs.wluma = {
enable = lib.mkEnableOption "wluma";

View file

@ -3,11 +3,9 @@
lib,
config,
...
}:
let
}: let
cfg = config.david.wallpaper;
in
{
in {
options = {
david.wallpaper = {
enable = lib.mkEnableOption "wallpaper";