Files
nixos/hosts/myself/default.nix
T

77 lines
1.2 KiB
Nix
Raw Normal View History

2023-12-12 16:25:58 -06:00
{ config, pkgs, lib, ... }:
{
2024-02-27 14:40:35 -06:00
imports = [
2023-12-12 16:32:24 -06:00
./hardware-configuration.nix
2023-12-12 20:44:53 -06:00
./git.nix
2024-02-27 14:40:35 -06:00
./matrix.nix
2023-12-12 16:32:24 -06:00
];
2023-12-12 16:25:58 -06:00
2023-12-12 16:32:24 -06:00
environment.systemPackages = with pkgs; [
git
2024-01-17 12:37:08 -06:00
packer
2023-12-12 16:32:24 -06:00
(python3.withPackages (p: with p; [ pip virtualenv ]))
tmux
tree
vim
xonsh
2024-01-17 12:37:08 -06:00
xorriso
2023-12-12 16:32:24 -06:00
];
2023-12-12 23:22:29 -06:00
greg.tailscale.enable = true;
2023-12-12 16:32:24 -06:00
services = {
openssh.enable = true;
};
networking = {
hostName = "myself";
useDHCP = false;
defaultGateway = {
address = " 10.42.1.1";
interface = "enp38s0";
};
interfaces.enp38s0 = {
ipv4.addresses = [ {
address = "10.42.1.6";
prefixLength = 16;
} ];
};
nameservers = [
"10.42.1.5"
];
};
users = {
users = {
greg = {
extraGroups = [
"kvm"
"sudo"
"vboxusers"
"wheel"
];
isNormalUser = true;
};
};
};
system.stateVersion = lib.mkForce "24.05";
boot = {
extraModprobeConfig = "options kvm_amd nested=1 vboxdrv";
supportedFilesystems = [ "ntfs" ];
loader = {
efi = {
canTouchEfiVariables = true;
efiSysMountPoint = "/boot";
};
systemd-boot = {
enable = true;
configurationLimit = 10;
};
};
};
nixpkgs.config = {
allowUnfree = true;
permittedInsecurePackages = [
"nodejs-16.20.2"
];
};
2023-12-12 16:25:58 -06:00
}