Compare commits
7 commits
de8c6e1327
...
9b150da119
Author | SHA1 | Date | |
---|---|---|---|
9b150da119 | |||
e928ecd667 | |||
471766ef64 | |||
443cf97123 | |||
d1a386edf5 | |||
9ea0aa1abe | |||
65aba3cb3c |
4 changed files with 69 additions and 0 deletions
|
@ -35,6 +35,7 @@
|
||||||
(import ../../modules/programs/emacs.nix {})
|
(import ../../modules/programs/emacs.nix {})
|
||||||
../../modules/programs/fonts.nix
|
../../modules/programs/fonts.nix
|
||||||
../../modules/programs/desktop.nix
|
../../modules/programs/desktop.nix
|
||||||
|
../../modules/programs/games.nix
|
||||||
];
|
];
|
||||||
home.username = "nathan";
|
home.username = "nathan";
|
||||||
home.homeDirectory = "/home/nathan/";
|
home.homeDirectory = "/home/nathan/";
|
||||||
|
@ -59,6 +60,14 @@
|
||||||
Service.ExecStart = lib.mkForce "${pkgs.syncthingtray}/bin/syncthingtray --wait";
|
Service.ExecStart = lib.mkForce "${pkgs.syncthingtray}/bin/syncthingtray --wait";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
# Stylus note taking
|
||||||
|
xournalpp
|
||||||
|
rnote
|
||||||
|
# System monitoring
|
||||||
|
nvtopPackages.full
|
||||||
|
];
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
];
|
];
|
||||||
|
|
14
home-manager/modules/programs/games.nix
Normal file
14
home-manager/modules/programs/games.nix
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
inputs',
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
# Minecraft
|
||||||
|
prismlauncher
|
||||||
|
zulu
|
||||||
|
glfw3-minecraft
|
||||||
|
];
|
||||||
|
}
|
|
@ -154,11 +154,52 @@
|
||||||
# List packages installed in system profile. To search, run:
|
# List packages installed in system profile. To search, run:
|
||||||
# $ nix search wget
|
# $ nix search wget
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
# Touch stuff
|
||||||
libinput
|
libinput
|
||||||
maliit-keyboard
|
maliit-keyboard
|
||||||
dconf-editor
|
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
|
# Some programs need SUID wrappers, can be configured further or are
|
||||||
# started in user sessions.
|
# started in user sessions.
|
||||||
# programs.mtr.enable = true;
|
# programs.mtr.enable = true;
|
||||||
|
|
|
@ -31,6 +31,11 @@
|
||||||
imports = [
|
imports = [
|
||||||
# Hardware support
|
# Hardware support
|
||||||
inputs.nixos-hardware.nixosModules.microsoft-surface-common
|
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
|
# Our modules
|
||||||
(import ../../modules/base.nix {inherit inputs;})
|
(import ../../modules/base.nix {inherit inputs;})
|
||||||
(import ./configuration.nix)
|
(import ./configuration.nix)
|
||||||
|
|
Loading…
Add table
Reference in a new issue