This commit is contained in:
caandt 2024-10-28 15:27:14 -05:00
parent 98239d82c7
commit b1d8d4eec2
2 changed files with 46 additions and 8 deletions

View file

@ -1,6 +1,10 @@
{lib, ...}: {
{
pkgs,
lib,
...
}: {
imports = [
../common
../../system
./hardware-configuration.nix
];
@ -11,13 +15,21 @@
deviceSection = ''Option "TearFree" "true"'';
};
hardware.nvidia.open = false;
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
"nvidia-x11"
"nvidia-settings"
];
nixpkgs.config.allowUnfree = true;
users.users.caandt = {
isNormalUser = true;
extraGroups = ["wheel"];
};
environment.systemPackages = [pkgs.nvtopPackages.nvidia];
services.openssh = {
enable = true;
ports = [22];
settings = {
PasswordAuthentication = true;
AllowUsers = null;
UseDns = true;
X11Forwarding = false;
PermitRootLogin = "no";
};
};
}

View file

@ -1,7 +1,33 @@
{...}: {
{
config,
pkgs,
...
}: {
imports = [
../../../../user
];
home.packages = with pkgs; [
sshfs
graphviz
(symlinkJoin {
name = "pyenv";
paths = [pyenv];
buildInputs = [makeWrapper];
postBuild = ''
wrapProgram $out/bin/pyenv \
--set PYENV_ROOT "${config.home.homeDirectory}/.local/pyenv" \
--set CPPFLAGS "-I${pkgs.zlib.dev}/include -I${pkgs.libffi.dev}/include -I${pkgs.readline.dev}/include -I${pkgs.bzip2.dev}/include -I${pkgs.openssl.dev}/include" \
--set CXXFLAGS "-I${pkgs.zlib.dev}/include -I${pkgs.libffi.dev}/include -I${pkgs.readline.dev}/include -I${pkgs.bzip2.dev}/include -I${pkgs.openssl.dev}/include" \
--set CFLAGS "-I${pkgs.openssl.dev}/include" \
--set LDFLAGS "-L${pkgs.zlib.out}/lib -L${pkgs.libffi.out}/lib -L${pkgs.readline.out}/lib -L${pkgs.bzip2.out}/lib -L${pkgs.openssl.out}/lib" \
--set CONFIGURE_OPTS "-with-openssl=${pkgs.openssl.dev}" \
--set PYENV_VIRTUALENV_DISABLE_PROMPT "1"
'';
})
];
xresources.properties."Xft.dpi" = 110;
home.username = "caandt";
}