nixos_PC/jry-thinkpad/configuration.nix

48 lines
1.2 KiB
Nix
Raw Normal View History

2024-08-24 12:54:21 +02:00
{ config, lib, pkgs, ... }:
{
imports = [
../shared/variables.nix
../shared/cli_packages.nix
../shared/desktop_environment/kde_plasma/plasma.nix
../shared/desktop_environment/packages.nix
../shared/keyboard.nix
../shared/sound.nix
../shared/networkmanager.nix
../shared/printing.nix
../shared/hibernation.nix
./home_manager.nix
];
swapDevices = [ {
device = "/swapfile";
size = 16*1024;
} ];
variables.username = "jry";
variables.homedir = "/home/${config.variables.username}/";
variables.flakedir = "${config.variables.homedir}/Nextcloud/configfiles/nix/PC/";
variables.swapsize = 16*1024;
variables.resumeOffset = 4685824; # Found using `sudo filefrag -v /swapfile | awk '{ if($1=="0:"){print $4} }'`
# Select internationalisation properties.
# i18n.defaultLocale = "en_US.UTF-8";
# console = {
# font = "Lat2-Terminus16";
# keyMap = "us";
# useXkbConfig = true; # use xkb.options in tty.
# };
users.users."${config.variables.username}" = {
uid = 1000;
isNormalUser = true;
extraGroups = [
"wheel"
"networkmanager"
];
packages = with pkgs; [];
};
}
# vim: tabstop=2 softtabstop=2