treewide: format with nixfmt

This commit is contained in:
insects 2024-09-22 10:56:40 +02:00
parent 303e982a8e
commit 26ad72592a
47 changed files with 380 additions and 725 deletions

View file

@ -1,10 +1,4 @@
{ inputs
, lib
, config
, pkgs
, ...
}:
{
{ inputs, lib, config, pkgs, ... }: {
imports = [
../common
./hardware-configuration.nix
@ -12,27 +6,20 @@
../desktop/plasma.nix
];
nixpkgs = {
config = {
allowUnfree = true;
nixpkgs = { config = { allowUnfree = true; }; };
nix = let flakeInputs = lib.filterAttrs (_: lib.isType "flake") inputs;
in {
settings = {
flake-registry = "";
nix-path = config.nix.nixPath;
};
channel.enable = false;
registry = lib.mapAttrs (_: flake: { inherit flake; }) flakeInputs;
nixPath = lib.mapAttrsToList (n: _: "${n}=flake:${n}") flakeInputs;
};
nix =
let
flakeInputs = lib.filterAttrs (_: lib.isType "flake") inputs;
in
{
settings = {
flake-registry = "";
nix-path = config.nix.nixPath;
};
channel.enable = false;
registry = lib.mapAttrs (_: flake: { inherit flake; }) flakeInputs;
nixPath = lib.mapAttrsToList (n: _: "${n}=flake:${n}") flakeInputs;
};
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
@ -64,17 +51,12 @@
lu = {
shell = pkgs.fish;
isNormalUser = true;
extraGroups = [
"wheel"
"storage"
];
extraGroups = [ "wheel" "storage" ];
};
};
# network stuff
networking.networkmanager = {
enable = true;
};
networking.networkmanager = { enable = true; };
# fish shell
programs.fish = {
@ -89,9 +71,9 @@
# enable ppd specifically for the framework
services.power-profiles-daemon.enable = true;
boot.kernelParams =
lib.optionals (lib.versionOlder config.boot.kernelPackages.kernel.version "6.8")
[ "rtc_cmos.use_acpi_alarm=1" ];
boot.kernelParams = lib.optionals
(lib.versionOlder config.boot.kernelPackages.kernel.version "6.8")
[ "rtc_cmos.use_acpi_alarm=1" ];
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
system.stateVersion = "24.05";