Skip to content

Commit

Permalink
fmt: nixfmt strict
Browse files Browse the repository at this point in the history
  • Loading branch information
scarlet-storm committed Dec 31, 2024
1 parent 697c64f commit 8343232
Show file tree
Hide file tree
Showing 38 changed files with 54 additions and 180 deletions.
4 changes: 1 addition & 3 deletions config/disko/luks-btrfs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@
subvolumes = {
"/nixos" = {
mountpoint = "/";
mountOptions = [
"compress-force=zstd"
];
mountOptions = [ "compress-force=zstd" ];
};
"/nixos/root" = { };
"/nixos/home" = { };
Expand Down
14 changes: 3 additions & 11 deletions config/home-manager/firefox.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
{
config,
pkgs,
...
}:
{ config, pkgs, ... }:

let
catppuccin_pink = pkgs.stdenvNoCC.mkDerivation rec {
Expand Down Expand Up @@ -125,9 +121,7 @@ in
"widget.use-xdg-desktop-portal.file-picker" = 1;
# "privacy.resistFingerprinting" = true;
};
extensions = [
catppuccin_pink
];
extensions = [ catppuccin_pink ];
search = {
force = true;
engines = {
Expand Down Expand Up @@ -156,9 +150,7 @@ in
};
};
default = "Brave";
order = [
"Brave"
];
order = [ "Brave" ];
};
};
};
Expand Down
6 changes: 1 addition & 5 deletions config/home-manager/generic.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
{
pkgs,
nixgl,
...
}:
{ pkgs, nixgl, ... }:
{
nixpkgs.overlays = [ nixgl.overlay ];
targets.genericLinux.enable = true;
Expand Down
4 changes: 1 addition & 3 deletions config/homes/base.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@
EDITOR = "vim";
};
systemd.user = {
tmpfiles.rules = [
"D %t/ssh-control - - - - -"
];
tmpfiles.rules = [ "D %t/ssh-control - - - - -" ];
startServices = "sd-switch";
};
nix.gc = {
Expand Down
8 changes: 2 additions & 6 deletions config/homes/kanata.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,8 @@ in
inherit username;
homeDirectory = "/home/${username}";
};
imports = [
./base.nix
];
imports = [ ./base.nix ];

home.packages = with pkgs; [
fanbox-dl
];
home.packages = with pkgs; [ fanbox-dl ];
home.stateVersion = "24.11";
}
13 changes: 2 additions & 11 deletions config/homes/violet.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@ let
...
}:
pkgs.symlinkJoin {
inherit (pkg)
name
pname
version
;
inherit (pkg) name pname version;
inherit postBuild;
paths = [
(pkgs.runCommandLocal "${execName}-wrapped"
Expand Down Expand Up @@ -57,12 +53,7 @@ in
inherit username;
homeDirectory = "/home/${username}";
};
nixpkgs.config.allowUnfreePredicate = (
pkg:
builtins.elem (lib.getName pkg) [
"discord"
]
);
nixpkgs.config.allowUnfreePredicate = (pkg: builtins.elem (lib.getName pkg) [ "discord" ]);
news.display = "silent";
home.packages =
let
Expand Down
6 changes: 1 addition & 5 deletions config/homes/violet@aqours.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
{
pkgs,
homeManagerConfig,
...
}:
{ pkgs, homeManagerConfig, ... }:

let
f3KanataIdolized = pkgs.fetchurl {
Expand Down
6 changes: 1 addition & 5 deletions config/homes/violet@liella.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
{
pkgs,
homeManagerConfig,
...
}:
{ pkgs, homeManagerConfig, ... }:
let
pShizuku2x = pkgs.fetchurl {
url = "https://i.idol.st/u/card/art/2x/831UR-Osaka-Shizuku-That-s-So-Cute-Briar-Rose-nf1fKb.png";
Expand Down
4 changes: 1 addition & 3 deletions config/hosts/x86_64-linux/aqours/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,7 @@ in
nixpkgs.overlays = [
(final: prev: {
kdePackages = prev.kdePackages.overrideScope (
kfinal: kprev: {
qtwebengine = prev.emptyDirectory;
}
kfinal: kprev: { qtwebengine = prev.emptyDirectory; }
);
})
];
Expand Down
4 changes: 1 addition & 3 deletions config/hosts/x86_64-linux/aqours/hardware-configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
}:

{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];

boot.initrd.availableKernelModules = [
"ahci"
Expand Down
4 changes: 1 addition & 3 deletions config/hosts/x86_64-linux/liella/hardware-configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
}:

{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];

boot.initrd.availableKernelModules = [
"xhci_pci"
Expand Down
12 changes: 2 additions & 10 deletions config/hosts/x86_64-linux/marchenstar/fs.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
{
lib,
config,
...
}:
{ lib, config, ... }:
{
services.zfs.trim.interval = "daily";
# for fun
Expand Down Expand Up @@ -157,11 +153,7 @@
}
];
cache = [ "/dev/disk/by-partlabel/cache0" ];
log = [
{
members = [ "/dev/disk/by-partlabel/vdev1-slog0" ];
}
];
log = [ { members = [ "/dev/disk/by-partlabel/vdev1-slog0" ]; } ];
};
};
options = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
}:

{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];

boot.initrd.availableKernelModules = [
"ahci"
Expand Down
4 changes: 1 addition & 3 deletions config/hosts/x86_64-linux/marchenstar/net.nix
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@
mode = "0600";
};
boot.initrd = {
availableKernelModules = [
"r8169"
];
availableKernelModules = [ "r8169" ];
systemd.network.enable = true;
systemd.network.networks."10-default" = config.systemd.network.networks."10-default";
network = {
Expand Down
4 changes: 1 addition & 3 deletions config/nixos/base/net.nix
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,5 @@ in
checkReversePath = "strict";
filterForward = true;
};
environment.systemPackages = with pkgs; [
wireguard-tools
];
environment.systemPackages = with pkgs; [ wireguard-tools ];
}
5 changes: 1 addition & 4 deletions config/nixos/base/ntp.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
lib,
...
}:
{ lib, ... }:

let
ntsServers = [
Expand Down
4 changes: 1 addition & 3 deletions config/nixos/builders/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{
imports = [
./machines.nix
];
imports = [ ./machines.nix ];
nix = {
extraOptions = ''
builders-use-substitutes = true
Expand Down
5 changes: 1 addition & 4 deletions config/nixos/builders/machines.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
lib,
...
}:
{ lib, ... }:

{
nix.buildMachines = lib.map (
Expand Down
4 changes: 1 addition & 3 deletions config/nixos/desktop/plasma.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
{ pkgs, ... }:

{
imports = [
./common.nix
];
imports = [ ./common.nix ];
services.desktopManager.plasma6.enable = true;
services.displayManager.sddm = {
enable = true;
Expand Down
4 changes: 1 addition & 3 deletions config/nixos/hardware/amd.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
...
}:
{ ... }:

{
boot.kernelParams = [ "amd_pstate=active" ];
Expand Down
9 changes: 2 additions & 7 deletions config/nixos/hardware/gpu/nouveau.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
{
pkgs,
lib,
...
}:
{ pkgs, lib, ... }:

# TODO: create specialisation ?
{
Expand Down Expand Up @@ -37,8 +33,7 @@
"--sysconfdir=/etc"
]
) prevAttrs.mesonFlags
++ [
];
++ [ ];
preConfigure =
prevAttrs.preConfigure
+ ''
Expand Down
4 changes: 1 addition & 3 deletions config/nixos/hardware/gpu/nvidia.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
}:

{
imports = [
modules.nixos.unfree
];
imports = [ modules.nixos.unfree ];
services.xserver.videoDrivers = [ "nvidia" ];
hardware.nvidia = {
modesetting.enable = true;
Expand Down
6 changes: 1 addition & 5 deletions config/nixos/home-manager.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@
extraSpecialArgs = homeManagerExtraArgs;
};
}
{
unfree.packageList = [
"discord"
];
}
{ unfree.packageList = [ "discord" ]; }
];
}
4 changes: 1 addition & 3 deletions config/nixos/lanzaboote/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
}:

{
imports = [
inputs.lanzaboote.nixosModules.lanzaboote
];
imports = [ inputs.lanzaboote.nixosModules.lanzaboote ];
environment.systemPackages = [
pkgs.sbsigntool
pkgs.mokutil
Expand Down
4 changes: 1 addition & 3 deletions config/nixos/net/networkd-wifi.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
...
}:
{ ... }:

{
# Wifi using systemd-networkd ??
Expand Down
4 changes: 1 addition & 3 deletions config/nixos/net/nm-wifi.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
...
}:
{ ... }:

{
# Use NetworkManager for wifi, since all devices have GUI
Expand Down
9 changes: 2 additions & 7 deletions config/nixos/qemu.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
pkgs,
...
}:
{ pkgs, ... }:

{
virtualisation.libvirtd = {
Expand Down Expand Up @@ -35,7 +32,5 @@
systemd.services.libvirt-guests.unitConfig.After = [ "network-online.target" ];
systemd.services.libvirt-guests.unitConfig.Wants = [ "network-online.target" ];
systemd.services.libvirtd.path = [ pkgs.passt ];
users.users.qemu-libvirtd.extraGroups = [
"kvm"
];
users.users.qemu-libvirtd.extraGroups = [ "kvm" ];
}
5 changes: 1 addition & 4 deletions config/nixos/sops.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
secrets,
...
}:
{ secrets, ... }:
let
ageKeyFile = "/var/lib/sops-nix/key.txt";
in
Expand Down
10 changes: 2 additions & 8 deletions config/nixos/steam.nix
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
{
pkgs,
modules,
...
}:
{ pkgs, modules, ... }:

{
imports = [
modules.nixos.unfree
];
imports = [ modules.nixos.unfree ];
unfree.packageList = [
"steam"
"steam-unwrapped"
Expand Down
6 changes: 1 addition & 5 deletions config/nixos/unfree.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
{
config,
lib,
...
}:
{ config, lib, ... }:

let
cfg = config.unfree;
Expand Down
4 changes: 1 addition & 3 deletions config/nixos/users/kanata.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ in
sops.secrets."users/${name}/password".neededForUsers = true;
users.users.${name} = {
isNormalUser = true;
extraGroups = [
"wheel"
];
extraGroups = [ "wheel" ];
linger = false;
uid = 1000;
shell = pkgs.fish;
Expand Down
Loading

0 comments on commit 8343232

Please sign in to comment.