refactoring

This commit is contained in:
ISnortPennies 2022-08-11 00:10:27 -04:00
parent 2b7d2bf54e
commit 90f4fe847a
9 changed files with 25 additions and 6 deletions

View file

@ -1,7 +1,6 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
{ {
system.stateVersion = "22.11"; system.stateVersion = "22.11";
boot.kernelPackages = pkgs.linuxPackages_latest;
environment = { environment = {
defaultPackages = []; defaultPackages = [];
binsh = "${pkgs.dash}/bin/dash"; binsh = "${pkgs.dash}/bin/dash";

View file

@ -53,7 +53,6 @@
inherit system pkgs; inherit system pkgs;
modules = [ modules = [
./configuration.nix ./configuration.nix
./hardware-configuration.nix
./systems/laptop.nix ./systems/laptop.nix
]; ];
}; };
@ -61,7 +60,6 @@
inherit system pkgs; inherit system pkgs;
modules = [ modules = [
./configuration.nix ./configuration.nix
./hardware-configuration.nix
./systems/desktop.nix ./systems/desktop.nix
]; ];
}; };

View file

@ -0,0 +1 @@
#empty

View file

@ -0,0 +1,3 @@
{
"SKIP_HOST_UPDATE": true
}

View file

@ -15,12 +15,15 @@
vim-nix vim-nix
vim-polyglot vim-polyglot
vim-smoothie vim-smoothie
nvim-tree-lua
nvim-web-devicons
tokyonight-nvim tokyonight-nvim
rainbow rainbow
indentLine indentLine
undotree undotree
]; ];
extraConfig = '' extraConfig = ''
:lua require("nvim-tree").setup()
set tabstop=2 set tabstop=2
set expandtab set expandtab
set shiftwidth=2 set shiftwidth=2

View file

@ -1,4 +1,5 @@
{ {
hardware.enableRedistributableFirmware = true;
boot = { boot = {
blacklistedKernelModules = [ "nouveau" "lbm-nouveau" "pcspkr" ]; blacklistedKernelModules = [ "nouveau" "lbm-nouveau" "pcspkr" ];
kernelParams = [ "fbcon=nodefer" "bgrt_disable" "quiet" "splash" ]; kernelParams = [ "fbcon=nodefer" "bgrt_disable" "quiet" "splash" ];

View file

@ -16,7 +16,7 @@ environment.systemPackages = with pkgs; [
alsa-utils alsa-utils
btrfs-progs #for external harddrive btrfs-progs #for external harddrive
#user/gui #user/gui
discord (discord.override { nss = nss_latest; })
spotify-tray spotify-tray
vlc vlc
bitwarden bitwarden

View file

@ -16,7 +16,7 @@
../modules/zsh.nix ../modules/zsh.nix
]; ];
networking.hostName = "gerg-desktop"; networking.hostName = "gerg-desktop";
boot.kernelPackages = pkgs.linuxPackages_latest;
hardware.cpu.amd.updateMicrocode = true; hardware.cpu.amd.updateMicrocode = true;
#end important stuff #end important stuff
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
@ -31,5 +31,19 @@
extraGroups = [ "wheel" "audio" "networkmanager" "kvm" "libvirtd" ]; extraGroups = [ "wheel" "audio" "networkmanager" "kvm" "libvirtd" ];
}; };
}; };
boot = {
initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "uas" "sd_mod" ];
kernelModules = [ "kvm-amd" ];
};
fileSystems = {
"/" ={
device = "/dev/disk/by-uuid/f0f46e34-874f-4052-855c-38c88bd7987a";
fsType = "ext4";
};
"/boot" = {
device = "/dev/disk/by-uuid/5F00-1D91";
fsType = "vfat";
};
};
} }

View file

@ -14,7 +14,7 @@
../modules/zsh.nix ../modules/zsh.nix
]; ];
networking.hostName = "gerg-laptop"; networking.hostName = "gerg-laptop";
boot.kernelPackages = pkgs.linuxPackages_5_18;
hardware.cpu.amd.updateMicrocode = true; hardware.cpu.amd.updateMicrocode = true;
# end important stuff # end important stuff