nixos-config/hosts/mashu.nix

76 lines
1.7 KiB
Nix
Raw Normal View History

{ config, lib, pkgs, inputs, ... }:
2021-09-04 11:49:33 +00:00
2021-11-04 14:11:46 +00:00
{
imports = with inputs.nixos-hardware.nixosModules; [
common-cpu-intel common-pc-ssd microsoft-surface
];
2021-09-04 11:49:33 +00:00
fileSystems = {
"/" = {
2021-09-04 18:16:58 +00:00
device = "/dev/disk/by-label/root";
2021-09-04 11:49:33 +00:00
fsType = "btrfs";
};
"/boot" = {
2021-09-04 18:16:58 +00:00
device = "/dev/disk/by-label/boot";
2021-09-04 11:49:33 +00:00
fsType = "vfat";
2021-09-04 18:16:58 +00:00
};
2021-09-04 11:49:33 +00:00
};
swapDevices = [
2021-09-04 18:16:58 +00:00
{
device = "/dev/disk/by-label/swap";
}
2021-09-04 11:49:33 +00:00
];
2021-11-04 14:11:46 +00:00
2021-12-06 20:50:40 +00:00
programs.phosh.enable = true;
2022-02-25 21:21:56 +00:00
environment.systemPackages = with pkgs; [
rnote
];
2021-11-04 14:11:46 +00:00
ptw = {
programs = {
mpv.enable = true;
tmux.enable = true;
zsh.enable = true;
git.enable = true;
gnome-terminal.enable = true;
firefox.enable = true;
2021-11-04 22:51:03 +00:00
xournalpp.enable = true;
2021-11-15 22:40:52 +00:00
alacritty.enable = true;
2021-11-04 14:11:46 +00:00
# TODO: Nextcloud client
2022-03-21 14:28:13 +00:00
plasma.enable = true;
plasma.mobile = true;
2021-11-04 14:11:46 +00:00
};
services = {
2021-12-06 20:50:40 +00:00
gnome.enable = true;
2021-11-04 14:11:46 +00:00
};
system = {
i18n.enable = true;
singleUser = "alexander";
hostName = "mashu";
wireless = true;
primaryInterface = "wlp1s0";
2021-11-04 14:11:46 +00:00
offloading.offload.enable = true;
};
hardware = {
mobile.enable = true;
surface.enable = true;
};
};
2021-12-06 20:50:40 +00:00
2021-11-04 14:11:46 +00:00
boot = {
kernelParams = [ "mem_sleep_default=deep" "kernel.nmi_watchdog=0" "vm.dirty_writeback_centisecs=1500" ];
extraModprobeConfig = ''
2021-09-06 20:51:29 +00:00
options i915 enable_fbc=1 enable_rc6=1 modeset=1
options snd_hda_intel power_save=1
options snd_ac97_codec power_save=1
options iwlwifi power_save=Y
options iwldvm force_cam=N
2021-09-04 11:49:33 +00:00
'';
2021-11-04 14:11:46 +00:00
initrd = {
availableKernelModules = [ "xhci_pci" "nvme" "usbhid" ];
kernelModules = [ "kvm-intel" ];
2021-09-04 11:49:33 +00:00
};
2021-11-04 14:11:46 +00:00
};
2021-09-04 11:49:33 +00:00
}