host: Use nixos-hardware

- Remove iptsd. It is packaged upstream
This commit is contained in:
2022-01-06 14:15:28 +01:00
parent 9c3d6b0de4
commit f72a872dff
7 changed files with 122 additions and 181 deletions

View File

@@ -1,6 +1,10 @@
{ config, lib, pkgs, ... }:
{ config, lib, pkgs, inputs, ... }:
{
imports = with inputs.nixos-hardware.nixosModules; [
common-cpu-intel common-pc-ssd microsoft-surface
];
fileSystems = {
"/" = {
device = "/dev/disk/by-label/root";

View File

@@ -1,6 +1,10 @@
{ config, lib, pkgs, ... }:
{ config, lib, pkgs, inputs, ... }:
{
imports = with inputs.nixos-hardware.nixosModules; [
common-cpu-amd common-gpu-amd common-pc-ssd
];
fileSystems = {
"/" = {
device = "/dev/disk/by-label/root";
@@ -28,8 +32,8 @@
trackma # Custom package
anime-dl # Custom package
thunderbird
multimc-wrapped # Custom package
nwg-launchers
#multimc-wrapped # Custom package
#nwg-launchers
gnome-podcasts
cantata
newsflash
@@ -55,7 +59,7 @@
};
xournalpp.enable = true;
zsh.enable = true;
plasma.enable = true;
#plasma.enable = true;
};
services = {
gamemode.enable = true;
@@ -143,11 +147,14 @@
"kvm.report_ignored_msrs=N"
"fbcon=rotate:3"
"quiet"
"nopti"
"nospectre_v2"
"nospec"
"clocksource=tsc"
"tsc=reliable"
];
#extraModulePackages = [ pkgs.linuxPackages_xanmod.vendor-reset ];
extraModulePackages = [ pkgs.linuxPackages_zen.vendor-reset ];
#extraModulePackages = [ pkgs.linuxPackages.vendor-reset ];
# NOTE: A regression appears to have happend between 5.10 and 5.12