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
|
|
|
|
|
|
|
|
./modules/browser/firefox.nix
|
|
|
|
./modules/dev
|
|
|
|
./modules/graphics/aseprite.nix
|
|
|
|
./modules/graphics/gimp.nix
|
2019-10-27 12:28:17 -07:00
|
|
|
./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:28:17 -07:00
|
|
|
#
|
|
|
|
./modules/services/syncthing
|
|
|
|
|
2019-08-06 10:56:54 -07:00
|
|
|
# Themes
|
|
|
|
./themes/pianocat
|
|
|
|
];
|
|
|
|
|
|
|
|
networking.hostName = "shiro";
|
|
|
|
networking.wireless.enable = true;
|
|
|
|
|
|
|
|
# Optimize power use
|
|
|
|
environment.systemPackages = [ pkgs.powertop pkgs.acpi ];
|
|
|
|
services.tlp.enable = true;
|
|
|
|
powerManagement.powertop.enable = true;
|
|
|
|
|
|
|
|
# Monitor backlight control
|
|
|
|
programs.light.enable = true;
|
|
|
|
|
|
|
|
# Encrypted /home
|
|
|
|
boot.initrd.luks.devices = [
|
|
|
|
{
|
|
|
|
name = "home";
|
|
|
|
device = "/dev/nvme0n1p8";
|
|
|
|
preLVM = true;
|
|
|
|
allowDiscards = true;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
}
|