nixos: system revamp

This commit is contained in:
lsoriano-mcm
2025-06-28 21:15:22 -05:00
parent 37e982c983
commit bdab858be2
12 changed files with 75 additions and 2 deletions
+9
View File
@@ -0,0 +1,9 @@
{...}: {
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
}
+9
View File
@@ -0,0 +1,9 @@
{myConfig, ...}: {
hardware = {
logitech.wireless.enable = myConfig.linux.logitech-hardware.enable;
bluetooth = {
enable = true;
powerOnBoot = true;
};
};
}
+4
View File
@@ -0,0 +1,4 @@
{myConfig, ...}: {
i18n.defaultLocale = "en_US.UTF-8";
time.timeZone = "${myConfig.general.Timezone}";
}
+4
View File
@@ -0,0 +1,4 @@
{myConfig, ...}: {
networking.hostName = "${myConfig.general.Hostname}";
networking.networkmanager.enable = true;
}
+16
View File
@@ -0,0 +1,16 @@
{pkgs, ...}: {
programs.bash = {
interactiveShellInit = ''
if [[ $(${pkgs.procps}/bin/ps --no-header --pid=$PPID --format=comm) != "fish" && -z ''${BASH_EXECUTION_STRING} ]]
then
shopt -q login_shell && LOGIN_OPTION='--login' || LOGIN_OPTION=""
exec ${pkgs.fish}/bin/fish $LOGIN_OPTION
fi
'';
};
programs = {
zsh.enable = true;
fish.enable = true;
};
}
+8
View File
@@ -0,0 +1,8 @@
{...}: {
services = {
openssh.enable = true;
libinput.enable = true;
blueman.enable = true;
printing.enable = true;
};
}
+6
View File
@@ -0,0 +1,6 @@
{...}: {
console = {
font = "Lat2-Terminus16";
useXkbConfig = true;
};
}