81 lines
2.2 KiB
Nix
81 lines
2.2 KiB
Nix
{ inputs, config, pkgs, lib, ... }: {
|
|
imports = [ ./hw.nix ];
|
|
|
|
# Generated by nixos-infect
|
|
boot.tmp.cleanOnBoot = true;
|
|
zramSwap.enable = true;
|
|
networking.hostName = "chaewon-nixos-ash-1";
|
|
networking.domain = "";
|
|
services.openssh.enable = true;
|
|
users.users.root.openssh.authorizedKeys.keys = [''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBGpnPYxrYnmtFaf591Q80FQPb01dqTwlH58V6uRa7Fi'' ];
|
|
|
|
# Generated by nixos-infect
|
|
networking = {
|
|
nameservers = [ "8.8.8.8" ];
|
|
defaultGateway = "172.31.1.1";
|
|
defaultGateway6 = {
|
|
address = "fe80::1";
|
|
interface = "eth0";
|
|
};
|
|
dhcpcd.enable = false;
|
|
usePredictableInterfaceNames = lib.mkForce false;
|
|
interfaces = {
|
|
eth0 = {
|
|
ipv4.addresses = [{
|
|
address = "178.156.207.225";
|
|
prefixLength = 32;
|
|
}];
|
|
ipv6.addresses = [
|
|
{
|
|
address = "2a01:4ff:f0:7ccc::1";
|
|
prefixLength = 64;
|
|
}
|
|
{
|
|
address = "fe80::9000:6ff:fe59:7a8b";
|
|
prefixLength = 64;
|
|
}
|
|
];
|
|
ipv4.routes = [{
|
|
address = "172.31.1.1";
|
|
prefixLength = 32;
|
|
}];
|
|
ipv6.routes = [{
|
|
address = "fe80::1";
|
|
prefixLength = 128;
|
|
}];
|
|
};
|
|
|
|
};
|
|
};
|
|
services.udev.extraRules = ''
|
|
ATTR{address}=="92:00:06:59:7a:8b", NAME="eth0"
|
|
'';
|
|
|
|
# Select internationalisation properties.
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
i18n.extraLocaleSettings = {
|
|
LC_ADDRESS = "en_US.UTF-8";
|
|
LC_IDENTIFICATION = "en_US.UTF-8";
|
|
LC_MEASUREMENT = "en_US.UTF-8";
|
|
LC_MONETARY = "en_US.UTF-8";
|
|
LC_NAME = "en_US.UTF-8";
|
|
LC_NUMERIC = "en_US.UTF-8";
|
|
LC_PAPER = "en_US.UTF-8";
|
|
LC_TELEPHONE = "en_US.UTF-8";
|
|
LC_TIME = "en_US.UTF-8";
|
|
};
|
|
|
|
users.users.priime = {
|
|
isNormalUser = true;
|
|
description = "Lucas";
|
|
extraGroups = [ "wheel" "docker" ];
|
|
packages = with pkgs; [ ];
|
|
shell = pkgs.fish;
|
|
openssh.authorizedKeys.keys = [''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBGpnPYxrYnmtFaf591Q80FQPb01dqTwlH58V6uRa7Fi''];
|
|
};
|
|
|
|
programs.fish.enable = true;
|
|
|
|
system.stateVersion = "23.11";
|
|
home-manager.users.priime = { pkgs, ... }: { imports = [ ./home.nix ]; };
|
|
}
|