run nixfmt

This commit is contained in:
insects 2024-08-21 15:15:04 +02:00
parent 477bce6897
commit 9415d40508
41 changed files with 384 additions and 262 deletions

View file

@ -1,4 +1,5 @@
{ pkgs, ... }: {
{ pkgs, ... }:
{
security.rtkit.enable = true;
services.pipewire = {
enable = true;
@ -9,5 +10,5 @@
};
environment.systemPackages = with pkgs; [
pavucontrol
];
];
}

View file

@ -1,4 +1,5 @@
{ ... }: {
{ ... }:
{
hardware.bluetooth = {
enable = true;
};

View file

@ -1,4 +1,5 @@
{ lib, pkgs, ... }: {
{ lib, pkgs, ... }:
{
imports = [
./audio.nix
./tailscale.nix
@ -26,7 +27,7 @@
# };
};
users.users.lu.extraGroups = ["audio"];
users.users.lu.extraGroups = [ "audio" ];
# auto mount external drives
services.devmon.enable = true;

View file

@ -1,4 +1,5 @@
{ ... }: {
{ ... }:
{
services.tailscale = {
enable = true;
};

View file

@ -1,3 +1,4 @@
{ ... }: {
security.pam.services.swaylock = {};
{ ... }:
{
security.pam.services.swaylock = { };
}

View file

@ -1,4 +1,5 @@
{ ... }: {
{ ... }:
{
services.displayManager.sddm.enable = true;
services.displayManager.sddm.wayland.enable = true;
services.desktopManager.plasma6.enable = true;

View file

@ -1,9 +1,11 @@
{ inputs
, lib
, config
, pkgs
, ...
}: {
{
inputs,
lib,
config,
pkgs,
...
}:
{
imports = [
../common
./hardware-configuration.nix
@ -63,7 +65,10 @@
lu = {
shell = pkgs.fish;
isNormalUser = true;
extraGroups = [ "wheel" "storage" ];
extraGroups = [
"wheel"
"storage"
];
};
};
@ -90,7 +95,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";

View file

@ -1,28 +1,42 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, modulesPath, ... }:
{
config,
lib,
modulesPath,
...
}:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usb_storage" "sd_mod" ];
boot.initrd.availableKernelModules = [
"nvme"
"xhci_pci"
"thunderbolt"
"usb_storage"
"sd_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/8e4fa7a2-0690-4276-b47d-0aa9fe3e62fd";
fsType = "ext4";
};
fileSystems."/" = {
device = "/dev/disk/by-uuid/8e4fa7a2-0690-4276-b47d-0aa9fe3e62fd";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/6157-ADC8";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/6157-ADC8";
fsType = "vfat";
options = [
"fmask=0022"
"dmask=0022"
];
};
swapDevices = [ ];

View file

@ -1,9 +1,15 @@
{ ... }: {
{ ... }:
{
services.postgresql = {
enable = true;
ensureUsers = [
{ name = "lu"; ensureClauses = { superuser = true; }; }
{
name = "lu";
ensureClauses = {
superuser = true;
};
}
];
};
}

View file

@ -1,9 +1,11 @@
{ inputs
, lib
, config
, pkgs
, ...
}: {
{
inputs,
lib,
config,
pkgs,
...
}:
{
imports = [
../common
./hardware-configuration.nix
@ -34,7 +36,7 @@
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.initrd.kernelModules = ["amdgpu"];
boot.initrd.kernelModules = [ "amdgpu" ];
hardware.graphics.enable = true;
networking.hostName = "yukari";
@ -63,7 +65,10 @@
lu = {
shell = pkgs.fish;
isNormalUser = true;
extraGroups = [ "wheel" "storage" ];
extraGroups = [
"wheel"
"storage"
];
};
};

View file

@ -1,32 +1,48 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
config,
lib,
pkgs,
modulesPath,
...
}:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod" ];
boot.initrd.availableKernelModules = [
"xhci_pci"
"ahci"
"nvme"
"usb_storage"
"usbhid"
"sd_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/d8551435-6a35-4ae9-b977-fd5a261c9be7";
fsType = "ext4";
};
fileSystems."/" = {
device = "/dev/disk/by-uuid/d8551435-6a35-4ae9-b977-fd5a261c9be7";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/5704-1642";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices =
[ { device = "/dev/disk/by-uuid/d52209e9-f625-46a9-800a-88598ed6fcd5"; }
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/5704-1642";
fsType = "vfat";
options = [
"fmask=0077"
"dmask=0077"
];
};
swapDevices = [
{ device = "/dev/disk/by-uuid/d52209e9-f625-46a9-800a-88598ed6fcd5"; }
];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's