helm/configuration.shiro.nix

63 lines
1.3 KiB
Nix
Raw Normal View History

2019-08-06 10:56:54 -07:00
# Shiro -- my laptop
{ config, lib, pkgs, ... }:
let nixos-hardware = builtins.fetchTarball https://github.com/NixOS/nixos-hardware/archive/master.tar.gz;
in {
imports = [
./. # import common settings
# Hardware specific
"${nixos-hardware}/dell/xps/13-9370"
./modules/desktop/bspwm.nix
2019-12-03 21:10:51 -08:00
./modules/audio/spotify.nix
2019-08-06 10:56:54 -07:00
./modules/browser/firefox.nix
./modules/dev
./modules/graphics/aseprite.nix
./modules/graphics/gimp.nix
./modules/editors/emacs.nix
./modules/editors/vim.nix
2019-08-06 10:56:54 -07:00
./modules/shell/direnv.nix
./modules/shell/git.nix
./modules/shell/gnupg.nix
./modules/shell/pass.nix
./modules/shell/zsh.nix
# ./modules/video/obs.nix
#
2019-10-27 12:31:08 -07:00
./modules/services/syncthing.nix
2019-08-06 10:56:54 -07:00
# Themes
./themes/aquanaut
2019-08-06 10:56:54 -07:00
];
time.timeZone = "America/Toronto";
# time.timeZone = "Europe/Copenhagen";
2019-08-06 10:56:54 -07:00
networking.hostName = "shiro";
networking.wireless.enable = true;
# Optimize power use
2020-01-03 03:40:31 -08:00
environment.systemPackages = [ pkgs.acpi ];
2019-08-06 10:56:54 -07:00
services.tlp.enable = true;
2020-01-03 03:40:31 -08:00
powerManagement = {
powertop.enable = true;
cpuFreqGovernor = "ondemand";
};
2019-08-06 10:56:54 -07:00
# Monitor backlight control
programs.light.enable = true;
# Encrypted /home
boot.initrd.luks.devices = [
{
name = "home";
device = "/dev/nvme0n1p8";
preLVM = true;
allowDiscards = true;
}
];
}