47 lines
1,023 B
Nix
47 lines
1,023 B
Nix
# vim: tabstop=2 shiftwidth=2 expandtab
|
|
{ pkgs, ... }: {
|
|
imports = [
|
|
./hardware-configuration.nix
|
|
./sourcehut.nix
|
|
];
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
];
|
|
|
|
networking.firewall = {
|
|
enable = true;
|
|
allowedTCPPorts = [ 22 80 443 ];
|
|
allowedUDPPorts = [ 22 80 443 ];
|
|
};
|
|
|
|
programs.git = {
|
|
enable = true;
|
|
config = {
|
|
user = {
|
|
email = "khais.colin@gmail.com";
|
|
name = "Khaïs COLIN";
|
|
};
|
|
core.editor = "nvim";
|
|
};
|
|
};
|
|
|
|
programs.neovim = {
|
|
enable = true;
|
|
defaultEditor = true;
|
|
vimAlias = true;
|
|
viAlias = true;
|
|
configure = {
|
|
customRC = ''
|
|
set modeline
|
|
'';
|
|
};
|
|
};
|
|
|
|
boot.tmp.cleanOnBoot = true;
|
|
zramSwap.enable = true;
|
|
networking.hostName = "quasar";
|
|
networking.domain = "";
|
|
services.openssh.enable = true;
|
|
users.users.root.openssh.authorizedKeys.keys = [''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKQNIDqvhcfLKIDJybVI0o32CSDZpBXxjRxXj6OVQ93E khais@nixos'' ];
|
|
system.stateVersion = "23.11";
|
|
}
|