re-order configuration

This commit is contained in:
Fabian Montero 2024-12-02 14:57:33 -06:00
parent 33ab479e22
commit 1add39aae0
Signed by: fabian
GPG key ID: 1FFAC35E1798174F
3 changed files with 40 additions and 34 deletions

View file

@ -11,10 +11,12 @@ in {
enable = mkEnableOption "graphics settings"; enable = mkEnableOption "graphics settings";
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
services.xserver = { services = {
xserver = {
enable = true; enable = true;
xkb.layout = "us"; #TODO xkb.layout = "us"; #TODO
displayManager.startx.enable = true; #TODO maybe crear un modulo para ly? displayManager.startx.enable = true; #TODO maybe crear un modulo para ly?
};
libinput.enable = true; libinput.enable = true;
}; };

View file

@ -22,24 +22,26 @@
androidSupport.enable = true; androidSupport.enable = true;
}; };
# Use the systemd-boot EFI boot loader. boot = {
boot.loader.systemd-boot.enable = true; loader = {
boot.loader.efi.canTouchEfiVariables = true; systemd-boot.enable = true;
boot.tmp.useTmpfs = true; efi.canTouchEfiVariables = true;
boot.kernelPackages = pkgs.linuxPackages_latest; };
tmp.useTmpfs = true;
kernelPackages = pkgs.linuxPackages_latest;
};
networking.hostName = "posixlycorrect"; networking = {
networking.networkmanager.enable = true; hostName = "posixlycorrect";
networkmanager.enable = true;
# Set your time zone.
time.timeZone = "America/Costa_Rica";
# The global useDHCP flag is deprecated, therefore explicitly set to false here. # The global useDHCP flag is deprecated, therefore explicitly set to false here.
# Per-interface useDHCP will be mandatory in the future, so this generated config # Per-interface useDHCP will be mandatory in the future, so this generated config
# replicates the default behaviour. # replicates the default behaviour.
networking.useDHCP = false; useDHCP = false;
networking.interfaces.enp7s0.useDHCP = true; interfaces.enp7s0.useDHCP = true;
networking.interfaces.wlp6s0.useDHCP = true; interfaces.wlp6s0.useDHCP = true;
};
# Select internationalisation properties. # Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8"; i18n.defaultLocale = "en_US.UTF-8";
@ -54,4 +56,6 @@
}; };
groups.fabian.gid = 1002; groups.fabian.gid = 1002;
}; };
time.timeZone = "America/Costa_Rica";
} }

View file

@ -17,6 +17,20 @@ with lib; {
baseline.enable = true; baseline.enable = true;
}; };
networking.hostName = "vps";
users = {
users.fabian = {
isNormalUser = true;
uid = 1000;
group = "fabian";
shell = pkgs.zsh;
extraGroups = ["users" "wheel" "networkmanager" "dialout" "libvirtd"];
openssh.authorizedKeys.keyFiles = [public_files/pki/fabian.ssh];
};
groups.fabian.gid = 1000;
};
services.openssh = { services.openssh = {
settings.PasswordAuthentication = false; settings.PasswordAuthentication = false;
}; };
@ -36,20 +50,6 @@ with lib; {
}; };
}; };
networking.hostName = "vps";
users = {
users.fabian = {
isNormalUser = true;
uid = 1000;
group = "fabian";
shell = pkgs.zsh;
extraGroups = ["users" "wheel" "networkmanager" "dialout" "libvirtd"];
openssh.authorizedKeys.keyFiles = [public_files/pki/fabian.ssh];
};
groups.fabian.gid = 1000;
};
systemd.extraConfig = '' systemd.extraConfig = ''
DefaultTimeoutStartSec=900s DefaultTimeoutStartSec=900s
''; '';