cleaned up drastically

This commit is contained in:
biscuit
2025-05-21 12:20:32 -05:00
parent cd734937c0
commit 30ecca57ba
24 changed files with 71 additions and 98 deletions
+2 -4
View File
@@ -2,11 +2,7 @@
hostname = "nixos";
username = "biscuit";
timezone = "America/Chicago";
# VPN
vpnEnable = true;
# Unfree Softwares
allowUnfree = true;
shellAliases = {
@@ -15,4 +11,6 @@
hupd = "home-manager switch --flake ~/Nixos/#desktop";
agu = "pkill gjs & ags run ~/Nixos/pkgs/ags/biscuit/app.ts &";
};
touchpadSupport = false;
}
+1 -1
View File
@@ -2,7 +2,7 @@
imports = [
../system/wayland.nix
../system/sound.nix
../system/print.nix
../system/misc.nix
../system/browser.nix
../system/font.nix
../system/theme.nix
+1 -13
View File
@@ -5,19 +5,7 @@
}: {
imports =
[
../system/bootloader.nix
../system/firewall.nix
../system/locale.nix
../system/network.nix
../system/term.nix
../system/development.nix
# ../system/proxy.nix
# ../system/recovery.nix # only supports non-flake conf
../system/ssh.nix
../system/timezone.nix
# ../system/touchpad.nix
../system/users.nix
../system/tools.nix
../system/default.nix
]
++ lib.optionals (vpnEnable == true) [
../system/vpn.nix
-4
View File
@@ -1,4 +0,0 @@
{ ... }: {
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
}
+64
View File
@@ -0,0 +1,64 @@
{
pkgs,
hostname,
timezone,
touchpadSupport,
...
}: {
environment.systemPackages = with pkgs; [
gcc
python3
cargo
rustc
btop
tldr
];
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
i18n.defaultLocale = "en_US.UTF-8";
console = {
font = "Lat2-Terminus16";
useXkbConfig = true; # use xkb.options in tty.
};
networking.hostName = "${hostname}";
networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
time.timeZone = "${timezone}";
services = {
openssh.enable = true;
libinput.enable = touchpadSupport;
};
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 = {
fish.enable = true;
zsh.enable = true;
};
# 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";
# Copy the NixOS configuration file and link it from the resulting system
# (/run/current-system/configuration.nix). This is useful in case you
# accidentally delete configuration.nix.
# ONLY WORKS non-flake
# system.copySystemConfiguration = true;
}
+3
View File
@@ -0,0 +1,3 @@
{...}: {
printing.enable = true;
}
-8
View File
@@ -1,8 +0,0 @@
{pkgs, ...}: {
environment.systemPackages = with pkgs; [
gcc
python3
cargo
rustc
];
}
-7
View File
@@ -1,7 +0,0 @@
{ ... }: {
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
}
-9
View File
@@ -1,9 +0,0 @@
{ ... }: {
i18n.defaultLocale = "en_US.UTF-8";
console = {
font = "Lat2-Terminus16";
# keyMap = "us";
useXkbConfig = true; # use xkb.options in tty.
};
}
-6
View File
@@ -1,6 +0,0 @@
{pkgs, hostname, ...}: {
networking.hostName = "${hostname}";
# Pick only one of the below networking options.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
}
-5
View File
@@ -1,5 +0,0 @@
{ ... }: {
services = {
printing.enable = true;
};
}
-5
View File
@@ -1,5 +0,0 @@
{ ... }: {
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
}
-6
View File
@@ -1,6 +0,0 @@
{ ... }: {
# Copy the NixOS configuration file and link it from the resulting system
# (/run/current-system/configuration.nix). This is useful in case you
# accidentally delete configuration.nix.
system.copySystemConfiguration = true;
}
-3
View File
@@ -1,3 +0,0 @@
{ ... }: {
services.openssh.enable = true;
}
-14
View File
@@ -1,14 +0,0 @@
{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;
programs.fish.enable = true;
}
-3
View File
@@ -1,3 +0,0 @@
{timezone, ... }: {
time.timeZone = "${timezone}";
}
-6
View File
@@ -1,6 +0,0 @@
{pkgs, ...}: {
environment.systemPackages = with pkgs; [
btop
tldr
];
}
-4
View File
@@ -1,4 +0,0 @@
{ ... }: {
# Enable touchpad support (enabled default in most desktopManager).
services.libinput.enable = true;
}