This commit is contained in:
fqbn207
2024-12-15 01:59:48 +01:00
parent a89f1960fd
commit a9880669c0
6 changed files with 104 additions and 27 deletions

View File

@ -16,7 +16,20 @@
"nix-command" "nix-command"
"flakes" "flakes"
]; ];
boot.loader.systemd-boot.enable = true;
boot = {
loader = {
systemd-boot = {
enable = true;
};
grub = {
enable = false;
device = "/dev/sda";
useOSProber = true;
};
};
supportedFilesystems = [ "ntfs" ];
};
networking = { networking = {
hostName = "poggers"; hostName = "poggers";
@ -122,6 +135,9 @@
slurp slurp
feh feh
gnumake gnumake
flameshot
tree
gdb
# cli # cli
neofetch neofetch
@ -142,10 +158,15 @@
gccgo14 gccgo14
go go
nixd nixd
arduino-cli
arduino-ide
arduino-language-server
dotnet-sdk
# misc # misc
cava cava
discord discord
pacman
]; ];
@ -179,6 +200,12 @@
] ]
++ builtins.filter lib.attrsets.isDerivation (builtins.attrValues pkgs.nerd-fonts); ++ builtins.filter lib.attrsets.isDerivation (builtins.attrValues pkgs.nerd-fonts);
}; };
environment.etc = {
"makepkg.conf".source = "${pkgs.pacman}/etc/makepkg.conf";
"pacman.conf".source = ./modules/raw/pacman.conf;
};
system.stateVersion = "unstable"; system.stateVersion = "unstable";
} }

View File

@ -1,39 +1,52 @@
# 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, ... }: {
config,
lib,
pkgs,
modulesPath,
...
}:
{ {
imports = imports = [
[ (modulesPath + "/installer/scan/not-detected.nix") (modulesPath + "/installer/scan/not-detected.nix")
]; ];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ]; boot.initrd.availableKernelModules = [
"nvme"
"xhci_pci"
"ahci"
"usb_storage"
"usbhid"
"sd_mod"
];
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/270c565f-b130-4f83-831e-c56b36b2ec83"; device = "/dev/disk/by-uuid/270c565f-b130-4f83-831e-c56b36b2ec83";
fsType = "ext4"; fsType = "ext4";
}; };
fileSystems."/boot" = fileSystems."/boot" = {
{ device = "/dev/disk/by-uuid/C7A8-3E74"; device = "/dev/disk/by-uuid/C7A8-3E74";
fsType = "vfat"; fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ]; options = [
}; "fmask=0022"
"dmask=0022"
];
};
fileSystems."/media/STUFF" = {
device = "/dev/disk/by-label/STUFF";
fsType = "ntfs";
};
swapDevices = [ ]; swapDevices = [ ];
# 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
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true; networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp6s0.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp5s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
} }

View File

@ -7,7 +7,6 @@
{ {
imports = [ imports = [
./nix/user.nix ./nix/user.nix
./nix/qutebrowser.nix
./nix/nvim/default.nix ./nix/nvim/default.nix
./nix/hypr/default.nix ./nix/hypr/default.nix
./nix/bspwm/default.nix ./nix/bspwm/default.nix

View File

@ -15,11 +15,21 @@
enable = true; enable = true;
inlayHints = true; inlayHints = true;
servers = { servers = {
csharp_ls = {
enable = true;
autostart = true;
};
bashls = {
enable = true;
autostart = true;
};
html = { html = {
enable = true; enable = true;
autostart = true;
}; };
lua_ls = { lua_ls = {
enable = true; enable = true;
autostart = true;
}; };
nixd = { nixd = {
enable = true; enable = true;
@ -34,12 +44,15 @@
}; };
asm_lsp = { asm_lsp = {
enable = true; enable = true;
autostart = true;
}; };
pyright = { pyright = {
enable = true; enable = true;
autostart = true;
}; };
gopls = { gopls = {
enable = true; enable = true;
autostart = true;
}; };
rust_analyzer = { rust_analyzer = {
enable = true; enable = true;
@ -51,6 +64,14 @@
enable = true; enable = true;
autostart = true; autostart = true;
}; };
omnisharp = {
enable = true;
autostart = true;
};
arduino_language_server = {
enable = true;
autostart = true;
};
}; };
}; };
}; };

View File

@ -35,8 +35,8 @@
}; };
git = { git = {
enable = true; enable = true;
userName = "meml0rz"; userName = "fqbn207";
userEmail = "meml0rz"; userEmail = "fqbn207";
}; };
tmux = { tmux = {
enable = true; enable = true;

17
modules/raw/pacman.conf Normal file
View File

@ -0,0 +1,17 @@
[options]
HoldPkg = pacman glibc
Architecture = auto
UseSyslog
Color
ILoveCandy
CheckSpace
VerbosePkgLists
ParallelDownloads = 5
SigLevel = Never
LocalFileSigLevel = Optional
[dkp-libs]
Server = https://pkg.devkitpro.org/packages
[dkp-linux]
Server = https://pkg.devkitpro.org/packages/linux/$arch/