igor: Update configuration

This commit is contained in:
Alexander Kobjolke 2024-11-27 23:48:35 +01:00
parent d0c2f61177
commit c30db4076b

View file

@ -1,4 +1,8 @@
{ config, inputs, lib, pkgs, ... }: {
inputs,
pkgs,
...
}:
{ {
imports = [ imports = [
@ -12,54 +16,61 @@
./disko-config.nix ./disko-config.nix
]; ];
networking = let extIface = "ens3"; config.networking =
in { let
hostName = "igor"; extIface = "ens3";
domain = "failco.de"; in
wireless.enable = false; {
useDHCP = false; hostName = "igor";
enableIPv6 = false; domain = "failco.de";
interfaces.${extIface} = { wireless.enable = false;
ipv4.addresses = [{ useDHCP = false;
address = "192.168.0.2"; enableIPv6 = false;
prefixLength = 24; interfaces.${extIface} = {
}]; ipv4.addresses = [
}; {
defaultGateway = "192.168.0.1"; address = "192.168.0.2";
nameservers = [ "1.1.1.1" "8.8.8.8" ]; prefixLength = 24;
firewall = { }
allowedTCPPorts = [ 22 80 443 ]; ];
allowedUDPPorts = [ ]; };
}; defaultGateway = "192.168.0.1";
}; nameservers = [
"192.168.0.1"
"1.1.1.1"
"8.8.8.8"
];
security.sudo = { firewall.enable = true;
};
config.security.sudo = {
enable = true; enable = true;
execWheelOnly = true; execWheelOnly = true;
}; };
# Select internationalization properties. # Select internationalization properties.
i18n.defaultLocale = "en_US.UTF-8"; config.i18n.defaultLocale = "en_US.UTF-8";
console = { config.console = {
font = "Lat2-Terminus16"; font = "Lat2-Terminus16";
keyMap = "dvorak"; keyMap = "dvorak";
}; };
# Define a user account. Don't forget to set a password with passwd. # Define a user account. Don't forget to set a password with passwd.
users.users.me = { config.users.users.alex = {
isNormalUser = true; isNormalUser = true;
extraGroups = [ "wheel" ]; # Enable sudo for the user. extraGroups = [ "wheel" ]; # Enable sudo for the user.
shell = pkgs.zsh; shell = pkgs.zsh;
}; };
programs.neovim = { config.programs.neovim = {
enable = true; enable = true;
defaultEditor = true; defaultEditor = true;
viAlias = true; viAlias = true;
vimAlias = true; vimAlias = true;
}; };
programs.zsh.enable = true; config.programs.zsh.enable = true;
system.stateVersion = "23.11"; config.system.stateVersion = "24.05";
} }