2023-02-10 07:46:37 +01:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: let
|
2023-01-31 09:38:11 +01:00
|
|
|
mainUser = "winston";
|
2023-02-10 07:46:37 +01:00
|
|
|
in {
|
2023-03-02 17:14:11 +01:00
|
|
|
imports = [
|
|
|
|
./hardware.nix
|
|
|
|
../common/linux
|
|
|
|
];
|
2023-01-31 09:38:11 +01:00
|
|
|
|
|
|
|
boot = {
|
2023-03-10 02:49:49 +01:00
|
|
|
kernelPackages = pkgs.linuxPackages_6_2;
|
|
|
|
kernelParams = ["quiet" "splash"];
|
2023-01-31 09:38:11 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
hardware = {
|
|
|
|
bluetooth.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
networking = {
|
2023-02-11 04:58:34 +01:00
|
|
|
hostName = "futomaki";
|
2023-01-31 09:38:11 +01:00
|
|
|
networkmanager.enable = true;
|
|
|
|
firewall.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
time.timeZone = "Europe/Vienna";
|
|
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
|
|
|
2023-02-10 07:46:37 +01:00
|
|
|
services = {
|
2023-01-31 09:38:11 +01:00
|
|
|
blueman.enable = true;
|
|
|
|
openssh.enable = true;
|
|
|
|
pcscd.enable = true;
|
|
|
|
};
|
|
|
|
|
2023-02-11 04:58:34 +01:00
|
|
|
virtualisation.docker.enable = true;
|
2023-03-17 03:47:27 +01:00
|
|
|
virtualisation.libvirtd.enable = true;
|
2023-02-11 04:58:34 +01:00
|
|
|
|
2023-01-31 09:38:11 +01:00
|
|
|
users.users."${mainUser}" = {
|
2023-03-17 03:47:27 +01:00
|
|
|
extraGroups = ["docker" "libvirtd" "wheel"];
|
2023-01-31 09:38:11 +01:00
|
|
|
isNormalUser = true;
|
2023-02-10 07:46:37 +01:00
|
|
|
openssh.authorizedKeys.keys = ["ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILm0O46zW/XfVOSwz0okRWYeOAg+wCVkCtCAoVTpZsOh"];
|
2023-01-31 09:38:11 +01:00
|
|
|
shell = pkgs.zsh;
|
|
|
|
};
|
|
|
|
|
2023-02-11 04:58:34 +01:00
|
|
|
system.stateVersion = "22.11";
|
2023-03-16 13:02:58 +01:00
|
|
|
|
|
|
|
programs = {
|
|
|
|
steam = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.unstable.steam.override {
|
|
|
|
extraPkgs = pkgs: with pkgs; [gamemode mangohud];
|
|
|
|
extraLibraries = pkgs:
|
|
|
|
with config.hardware.opengl;
|
|
|
|
if pkgs.hostPlatform.is64bit
|
|
|
|
then [package] ++ extraPackages
|
|
|
|
else [package32] ++ extraPackages32;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
gamemode = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
custom = {
|
|
|
|
start = "${pkgs.libnotify}/bin/notify-send 'GameMode started'";
|
|
|
|
end = "${pkgs.libnotify}/bin/notify-send 'GameMode ended'";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2023-01-31 09:38:11 +01:00
|
|
|
}
|