Run nixfmt

This commit is contained in:
cubernetes 2026-05-24 21:57:36 +02:00
parent 8ecabce74c
commit cb089368e5
3 changed files with 74 additions and 44 deletions

View file

@ -15,7 +15,8 @@
};
};
outputs = {
outputs =
{
self,
nixpkgs,
home-manager,

View file

@ -2,11 +2,16 @@
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, inputs, ... }:
{
config,
pkgs,
inputs,
...
}:
{
imports =
[ # Include the results of the hardware scan.
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
];
@ -14,7 +19,8 @@
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.initrd.luks.devices."luks-1dfcf980-6806-4f69-bd86-ee87c904c04b".device = "/dev/disk/by-uuid/1dfcf980-6806-4f69-bd86-ee87c904c04b";
boot.initrd.luks.devices."luks-1dfcf980-6806-4f69-bd86-ee87c904c04b".device =
"/dev/disk/by-uuid/1dfcf980-6806-4f69-bd86-ee87c904c04b";
networking.hostName = "fw"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
@ -83,8 +89,11 @@
users.users.tsi = {
isNormalUser = true;
description = "tsi";
extraGroups = [ "networkmanager" "wheel" ];
packages = with pkgs; [];
extraGroups = [
"networkmanager"
"wheel"
];
packages = with pkgs; [ ];
};
# Install firefox.
@ -95,7 +104,7 @@
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [vim];
environment.systemPackages = with pkgs; [ vim ];
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
@ -124,7 +133,10 @@
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "25.11"; # Did you read the comment?
nix.settings.experimental-features = ["nix-command" "flakes"];
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
programs.nix-index-database.comma.enable = true;

View file

@ -1,33 +1,50 @@
# 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 = [ "nvme" "xhci_pci" "thunderbolt" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.availableKernelModules = [
"nvme"
"xhci_pci"
"thunderbolt"
"usbhid"
"usb_storage"
"sd_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/mapper/luks-9b0c979a-d40b-490c-9eff-616f1c9b7c5d";
fileSystems."/" = {
device = "/dev/mapper/luks-9b0c979a-d40b-490c-9eff-616f1c9b7c5d";
fsType = "ext4";
};
boot.initrd.luks.devices."luks-9b0c979a-d40b-490c-9eff-616f1c9b7c5d".device = "/dev/disk/by-uuid/9b0c979a-d40b-490c-9eff-616f1c9b7c5d";
boot.initrd.luks.devices."luks-9b0c979a-d40b-490c-9eff-616f1c9b7c5d".device =
"/dev/disk/by-uuid/9b0c979a-d40b-490c-9eff-616f1c9b7c5d";
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/A7E8-C6F3";
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/A7E8-C6F3";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
options = [
"fmask=0077"
"dmask=0077"
];
};
swapDevices =
[ { device = "/dev/mapper/luks-1dfcf980-6806-4f69-bd86-ee87c904c04b"; }
swapDevices = [
{ device = "/dev/mapper/luks-1dfcf980-6806-4f69-bd86-ee87c904c04b"; }
];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";