nix in vscode and reformatting files

This commit is contained in:
CDaut 2024-04-18 10:15:25 +02:00
parent e1ac2a9a09
commit 361d0c8df8
Signed by: clara
GPG key ID: 223391B52FAD4463
6 changed files with 18 additions and 13 deletions

View file

@ -7,7 +7,7 @@
]; ];
# Bootloader. # Bootloader.
boot.loader = { boot.loader = {
efi.canTouchEfiVariables = true; efi.canTouchEfiVariables = true;
grub = { grub = {
enable = true; enable = true;
@ -17,7 +17,7 @@
}; };
}; };
boot.initrd.kernelModules = ["amdgpu"]; boot.initrd.kernelModules = [ "amdgpu" ];
services.hardware.bolt.enable = true; services.hardware.bolt.enable = true;
@ -55,7 +55,7 @@
defaultSession = "none+i3"; defaultSession = "none+i3";
setupCommands = '' setupCommands = ''
${pkgs.xorg.xrandr}/bin/xrandr --output eDP-1 --mode 3840x2160; ${pkgs.xorg.xrandr}/bin/xrandr --output eDP-1 --mode 3840x2160;
''; '';
}; };
windowManager.i3 = { windowManager.i3 = {
@ -70,7 +70,7 @@
desktopManager.wallpaper.mode = "fill"; desktopManager.wallpaper.mode = "fill";
}; };
imports = [ imports = [
./programm_configs/yubikey-gpg.nix ./programm_configs/yubikey-gpg.nix
]; ];

View file

@ -5,7 +5,8 @@
{ {
imports = imports =
[ (modulesPath + "/installer/scan/not-detected.nix") [
(modulesPath + "/installer/scan/not-detected.nix")
]; ];
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "usbhid" "sd_mod" "sdhci_pci" ]; boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "usbhid" "sd_mod" "sdhci_pci" ];
@ -14,14 +15,16 @@
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems."/" = fileSystems."/" =
{ device = "/dev/disk/by-uuid/9acc939a-f9d8-4e3b-a3b2-a90752de8ce7"; {
device = "/dev/disk/by-uuid/9acc939a-f9d8-4e3b-a3b2-a90752de8ce7";
fsType = "ext4"; fsType = "ext4";
}; };
boot.initrd.luks.devices."luks-38517f01-1bef-4603-bcfe-8c66124dc32a".device = "/dev/disk/by-uuid/38517f01-1bef-4603-bcfe-8c66124dc32a"; boot.initrd.luks.devices."luks-38517f01-1bef-4603-bcfe-8c66124dc32a".device = "/dev/disk/by-uuid/38517f01-1bef-4603-bcfe-8c66124dc32a";
fileSystems."/boot" = fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/F0FA-6F3D"; {
device = "/dev/disk/by-uuid/F0FA-6F3D";
fsType = "vfat"; fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ]; options = [ "fmask=0022" "dmask=0022" ];
}; };

View file

@ -47,6 +47,7 @@ in
signal-desktop signal-desktop
redshift redshift
nextcloud-client nextcloud-client
nixpkgs-fmt
]; ];
# dotfiles # dotfiles

View file

@ -1,7 +1,7 @@
{pkgs, ...}: { { pkgs, ... }: {
programs.git = { programs.git = {
enable = true; enable = true;
userName = "CDaut"; userName = "CDaut";
userEmail = "git@cdaut.de"; userEmail = "git@cdaut.de";
signing = { signing = {
signByDefault = true; signByDefault = true;

View file

@ -6,6 +6,7 @@
extensions = with pkgs.vscode-extensions; [ extensions = with pkgs.vscode-extensions; [
bbenoist.nix bbenoist.nix
james-yu.latex-workshop james-yu.latex-workshop
jnoortheen.nix-ide
]; ];
}; };
} }