Compare commits

...

7 commits

4 changed files with 69 additions and 0 deletions

View file

@ -35,6 +35,7 @@
(import ../../modules/programs/emacs.nix {})
../../modules/programs/fonts.nix
../../modules/programs/desktop.nix
../../modules/programs/games.nix
];
home.username = "nathan";
home.homeDirectory = "/home/nathan/";
@ -59,6 +60,14 @@
Service.ExecStart = lib.mkForce "${pkgs.syncthingtray}/bin/syncthingtray --wait";
};
};
home.packages = with pkgs; [
# Stylus note taking
xournalpp
rnote
# System monitoring
nvtopPackages.full
];
}
)
];

View file

@ -0,0 +1,14 @@
{
config,
lib,
pkgs,
inputs',
...
}: {
home.packages = with pkgs; [
# Minecraft
prismlauncher
zulu
glfw3-minecraft
];
}

View file

@ -154,11 +154,52 @@
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
# Touch stuff
libinput
maliit-keyboard
dconf-editor
surface-control
];
# Setup iptsd for touch and stylus support
services.iptsd = {
enable = true;
config.Touchscreen = {
DisableOnPalm = true;
DisableOnStylus = true;
};
};
# And thermald
services.thermald = {
enable = true;
};
# Other power saving goodies
hardware.enableAllFirmware = true;
services.tlp = {
enable = true;
settings = {
CPU_SCALING_GOVERNOR_ON_AC = "performance";
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
CPU_ENERGY_PERF_POLICY_ON_BAT = "power";
CPU_ENERGY_PERF_POLICY_ON_AC = "performance";
};
};
powerManagement.enable = true;
services.power-profiles-daemon.enable = false;
services.cpupower-gui.enable = true;
# Nvidia gpu setup
hardware.nvidia = {
open = true;
prime = {
intelBusId = "PCI:0:2:0";
nvidiaBusId = "PCI:2:0:0";
};
};
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# programs.mtr.enable = true;

View file

@ -31,6 +31,11 @@
imports = [
# Hardware support
inputs.nixos-hardware.nixosModules.microsoft-surface-common
inputs.nixos-hardware.nixosModules.common-pc
inputs.nixos-hardware.nixosModules.common-pc-laptop
inputs.nixos-hardware.nixosModules.common-pc-laptop-ssd
inputs.nixos-hardware.nixosModules.common-cpu-intel
inputs.nixos-hardware.nixosModules.common-gpu-nvidia
# Our modules
(import ../../modules/base.nix {inherit inputs;})
(import ./configuration.nix)