2021-12-18 22:07:27 +01:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
./users
|
|
|
|
];
|
|
|
|
|
|
|
|
networking.domain = "pvv.ntnu.no";
|
2021-12-18 22:24:22 +01:00
|
|
|
networking.useDHCP = false;
|
2021-12-18 22:07:27 +01:00
|
|
|
|
|
|
|
time.timeZone = "Europe/Oslo";
|
|
|
|
|
|
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
|
|
console = {
|
|
|
|
font = "Lat2-Terminus16";
|
|
|
|
keyMap = "no";
|
|
|
|
};
|
|
|
|
|
2022-12-09 02:55:18 +01:00
|
|
|
system.autoUpgrade = {
|
|
|
|
enable = true;
|
|
|
|
flake = "git+https://git.pvv.ntnu.no/Drift/pvv-nixos-config.git?ref=main";
|
|
|
|
flags = [
|
|
|
|
"--update-input" "nixpkgs"
|
|
|
|
"--no-write-lock-file"
|
|
|
|
];
|
|
|
|
};
|
2022-04-02 00:57:53 +02:00
|
|
|
nix.gc.automatic = true;
|
|
|
|
|
2022-12-07 10:02:56 +01:00
|
|
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
|
|
|
2021-12-18 22:07:27 +01:00
|
|
|
environment.systemPackages = with pkgs; [
|
2022-09-08 17:49:33 +02:00
|
|
|
file
|
2021-12-18 22:07:27 +01:00
|
|
|
git
|
2022-09-08 17:49:33 +02:00
|
|
|
htop
|
2021-12-18 22:07:27 +01:00
|
|
|
nano
|
|
|
|
tmux
|
2022-09-08 17:49:33 +02:00
|
|
|
vim
|
|
|
|
wget
|
|
|
|
|
2021-12-18 22:07:27 +01:00
|
|
|
kitty.terminfo
|
|
|
|
];
|
|
|
|
|
2022-04-02 01:52:13 +02:00
|
|
|
users.groups."drift".name = "drift";
|
|
|
|
|
2022-12-07 10:07:32 +01:00
|
|
|
services.openssh = {
|
|
|
|
enable = true;
|
|
|
|
permitRootLogin = "yes";
|
|
|
|
extraConfig = ''
|
|
|
|
PubkeyAcceptedAlgorithms=+ssh-rsa
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2021-12-18 22:07:27 +01:00
|
|
|
|
|
|
|
}
|