formattting

This commit is contained in:
Gabe Venberg 2024-03-25 00:11:55 -05:00
parent 90409b441f
commit 20387cd34a
4 changed files with 31 additions and 27 deletions

View file

@ -1,31 +1,35 @@
# Do not modify this file! It was generated by nixos-generate-config # Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes # and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead. # to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{ {
imports = config,
[ (modulesPath + "/profiles/qemu-guest.nix") lib,
]; pkgs,
modulesPath,
...
}: {
imports = [
(modulesPath + "/profiles/qemu-guest.nix")
];
boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "sr_mod" "virtio_blk" ]; boot.initrd.availableKernelModules = ["ahci" "xhci_pci" "virtio_pci" "sr_mod" "virtio_blk"];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [];
boot.kernelModules = [ "kvm-amd" ]; boot.kernelModules = ["kvm-amd"];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [];
fileSystems."/" = fileSystems."/" = {
{ device = "/dev/disk/by-uuid/1000b969-f089-4b1e-bbef-3d0c39da8a91"; device = "/dev/disk/by-uuid/1000b969-f089-4b1e-bbef-3d0c39da8a91";
fsType = "ext4"; fsType = "ext4";
}; };
fileSystems."/boot" = fileSystems."/boot" = {
{ device = "/dev/disk/by-uuid/AB75-97AD"; device = "/dev/disk/by-uuid/AB75-97AD";
fsType = "vfat"; fsType = "vfat";
}; };
swapDevices = swapDevices = [
[ { device = "/dev/disk/by-uuid/506f2ef4-c9ee-4fe6-8590-95e0821d5903"; } {device = "/dev/disk/by-uuid/506f2ef4-c9ee-4fe6-8590-95e0821d5903";}
]; ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking # 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 # (the default) this is the recommended approach. When using systemd-networkd it's

View file

@ -4,8 +4,8 @@
lib, lib,
... ...
}: { }: {
# machine specific options
host = { host = {
# machine specific options
enable-speech = true; enable-speech = true;
nvim = { nvim = {
enable-lsp = true; enable-lsp = true;

View file

@ -5,11 +5,11 @@
... ...
}: { }: {
programs.kitty = { programs.kitty = {
enable=true; enable = true;
font={ font = {
package=pkgs.fira-code-nerdfont; package = pkgs.fira-code-nerdfont;
name="Fira Code"; name = "Fira Code";
}; };
theme="Gruvbox Dark"; theme = "Gruvbox Dark";
}; };
} }

View file

@ -28,7 +28,7 @@
BreakBeforeBinaryOperators: NonAssignment BreakBeforeBinaryOperators: NonAssignment
... ...
''; '';
"work/.clang-format" = lib.mkIf config.host.git.workProfile.enable{ "work/.clang-format" = lib.mkIf config.host.git.workProfile.enable {
text = '' text = ''
--- ---
#this syncronizes with settings used by neovims treesitters so that the lsp formatting and treesitter formatting do not fight eatch other. #this syncronizes with settings used by neovims treesitters so that the lsp formatting and treesitter formatting do not fight eatch other.