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
+3 -1
View File
@@ -7,7 +7,9 @@
}: {
imports = [
inputs.sops-nix.nixosModules.sops
# Include the results of the hardware scan.
./hardware-configuration.nix
../../modules/linuxDev.nix
../../modules/system.nix
];
environment.systemPackages = with pkgs; [];
+1 -1
View File
@@ -5,7 +5,7 @@
...
}: {
imports = [
../../modules/dev.nix
../../modules/macosDev.nix
inputs.sops-nix.darwinModules.sops
];
# List packages installed in system profile. To search by name, run:
+7
View File
@@ -0,0 +1,7 @@
{...}: {
imports = [
../system/dev/tools.nix
../system/dev/python.nix
../system/dev/linux.nix
];
}
+8
View File
@@ -1,4 +1,12 @@
{...}: {
imports = [
../system/users.nix
../system/hardware.nix
../system/locale.nix
../system/network.nix
../system/programs.nix
../system/services.nix
../system/tty.nix
../system/firewall.nix
];
}
+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;
};
}