nixcfg/hosts/rustboro/default.nix
Aly Raffauf 5cae43ef51
add 'laptopMode' option and user config (#92)
* aly: special sway and hyprland configs for mauville

* add 'laptopMode' option and config

* nixfmt
2024-08-19 21:40:31 -04:00

57 lines
1.1 KiB
Nix

# Lenovo Thinkpad T440p with a Core i5 4210M, 16GB RAM, 512GB SSD.
{
config,
lib,
self,
...
}: {
imports = [
../common
./disko.nix
./home.nix
./secrets.nix
./stylix.nix
self.inputs.nixhw.nixosModules.thinkpad-t440p
];
boot.loader = {
efi.canTouchEfiVariables = true;
systemd-boot.enable = true;
};
environment.variables = {
FLAKE = "https://flakehub.com/f/alyraffauf/nixcfg/*.tar.gz";
GDK_SCALE = "1.25";
};
networking.hostName = "rustboro";
system.stateVersion = "24.05";
zramSwap.memoryPercent = 100;
ar = {
apps.firefox.enable = true;
desktop = {
greetd = {
enable = true;
autologin = "aly";
session = lib.getExe config.programs.sway.package;
};
sway.enable = true;
};
laptopMode = true;
users.aly = {
enable = true;
password = "$y$j9T$VdtiEyMOegHpcUwgmCVFD0$K8Ne6.zk//VJNq2zxVQ0xE0Wg3LohvAQd3Xm9aXdM15";
syncthing = {
enable = true;
certFile = config.age.secrets.syncthingCert.path;
keyFile = config.age.secrets.syncthingKey.path;
};
};
};
}