mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-23 00:34:24 +01:00
c517b25312
This was more annoying than not due to having to re-establish an internet connection every time the lid was closed. Other advantages include the possibility to use the computer while closed.
42 lines
674 B
Nix
42 lines
674 B
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
imports = [
|
|
./user
|
|
];
|
|
|
|
# locale
|
|
i18n.defaultLocale = "ja_JP.UTF-8";
|
|
i18n.supportedLocales =
|
|
[ "ja_JP.UTF-8/UTF-8" "en_US.UTF-8/UTF-8" "fr_FR.UTF-8/UTF-8" ];
|
|
|
|
# nix
|
|
nix = {
|
|
package = pkgs.nixFlakes;
|
|
settings = {
|
|
experimental-features = [ "nix-command" "flakes" ];
|
|
};
|
|
};
|
|
|
|
# home-manager
|
|
home-manager = {
|
|
useGlobalPkgs = true;
|
|
useUserPackages = true;
|
|
|
|
sharedModules = [{
|
|
home.stateVersion = "22.11";
|
|
}];
|
|
};
|
|
|
|
# systemd
|
|
systemd.extraConfig = ''
|
|
DefaultTimeoutStopSec=10s
|
|
'';
|
|
|
|
# logind
|
|
services.logind.lidSwitch = "ignore";
|
|
|
|
# timezone
|
|
time.timeZone = "America/New_York";
|
|
}
|