too much rewriting at once... (bad idea)

This commit is contained in:
Schrottkatze 2025-03-27 20:48:56 +01:00
parent 056661f6f8
commit 2390273f53
Signed by: schrottkatze
SSH key fingerprint: SHA256:FPOYVeBy3QP20FEM42uWF1Wa/Qhlk+L3S2+Wuau/Auo
12 changed files with 48 additions and 74 deletions

View file

@ -12,29 +12,10 @@
with lib;
with builtins; {
imports = [lix-module.nixosModules.default];
nix = {
extraOptions = ''
experimental-features = nix-command flakes
keep-outputs = true
keep-derivations = true
'';
};
nixpkgs = {
config = {
allowUnfree = true;
permittedInsecurePackages = [
"electron-27.3.11"
"nodejs-16.20.0"
];
};
overlays = [rs-programs niri.overlays.niri];
};
environment = {
systemPackages = with pkgs; [
overskride
pulsemixer
htmlq
@ -88,18 +69,14 @@ with builtins; {
];
};
networking = {
networkmanager = {
enable = true;
};
};
hardware.graphics.enable = true;
services = {
systemd-lock-handler.enable = true;
openssh = {
enable = true;
# settings.PasswordAuthentication = false;
# settings.KbdInteractiveAuthentication = false;
settings.PasswordAuthentication = false;
settings.KbdInteractiveAuthentication = false;
};
};
@ -116,31 +93,11 @@ with builtins; {
hardware.gpgSmartcards.enable = true;
time.timeZone = "Europe/Berlin";
home-manager.users.jade = {
nixosConfig,
pkgs,
...
}: {
home.sessionVariables.TZ = nixosConfig.time.timeZone;
};
nixpkgs.config.packageOverrides = pkgs: {
sudo = pkgs.sudo.override {withInsults = true;};
};
security.sudo.extraConfig = "Defaults insults";
boot.kernel.sysctl."vm.max_map_count" = 2147483642;
hardware = {
uinput.enable = true;
bluetooth.enable = true;
# keyboard.uhk.enable = true;
};
services.avahi = {
enable = true;
};
security.rtkit.enable = true;
@ -154,12 +111,4 @@ with builtins; {
enable = true;
algorithm = "zstd";
};
users.defaultUserShell = pkgs.nushell;
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 60d";
};
}

View file

@ -1,12 +1,7 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{
config,
pkgs,
lib,
...
}: {
{pkgs, ...}: {
nixpkgs.config.permittedInsecurePackages = [
"electron-25.9.0"
"electron-27.3.11"
@ -46,7 +41,6 @@
boot.binfmt.emulatedSystems = ["aarch64-linux"];
hardware.bluetooth.enable = true;
services.blueman.enable = true;
environment.systemPackages = [

View file

@ -47,7 +47,6 @@
gnome.gnome-keyring.enable = true;
};
hardware = {
bluetooth.enable = true;
keyboard.uhk.enable = true;
enableRedistributableFirmware = true;
};

View file

@ -7,6 +7,7 @@
./net
./input
./media
./nix.nix
./graphics.nix
];
}

View file

@ -23,11 +23,6 @@ with lib; {
};
services.illum.enable = true;
services.avahi = {
enable = true;
nssmdns4 = true;
openFirewall = true;
};
services.smartd = {
enable = true;
notifications.test = true;

View file

@ -11,10 +11,8 @@
};
};
environment.systemPackages = with pkgs; [
pavucontrol
volumeicon
playerctl
pulsemixer
helvum
];
}

View file

@ -1,4 +1,5 @@
{...}: {
time.timeZone = "Europe/Berlin";
i18n.extraLocaleSettings = {
LC_ADDRESS = "de_DE.UTF-8";
LC_IDENTIFICATION = "de_DE.UTF-8";

View file

@ -1,3 +0,0 @@
{...}: {
hardware.graphics.enable = true;
}

View file

@ -5,7 +5,9 @@
./eduroam.nix
./dispatchers
];
networking.networkmanager.enable = true;
networking.networkmanager.wifi.backend = "wpa_supplicant";
systemd.services."NetworkManager-wait-online".enable = false;
services.mullvad-vpn.enable = true;
home-manager.users.jade = {pkgs, ...}: {

29
modules/nix.nix Normal file
View file

@ -0,0 +1,29 @@
{
rs-programs,
niri,
...
}: {
nix = {
extraOptions = ''
experimental-features = nix-command flakes
keep-outputs = true
keep-derivations = true
'';
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 60d";
};
};
nixpkgs = {
config = {
allowUnfree = true;
permittedInsecurePackages = [
"electron-27.3.11"
"nodejs-16.20.0"
];
};
overlays = [rs-programs niri.overlays.niri];
};
}

View file

@ -1,4 +1,4 @@
{...}: {
{pkgs, ...}: {
imports = [
./helix.nix
./nu.nix
@ -7,6 +7,7 @@
./git.nix
./mprocs.nix
./btop.nix
./sudo.nix
];
programs.mosh.enable = true;
programs.bat.enable = true;
@ -14,4 +15,6 @@
programs.carapace.enable = true;
programs.direnv.enable = true;
};
users.defaultUserShell = pkgs.nushell;
}

6
modules/shell/sudo.nix Normal file
View file

@ -0,0 +1,6 @@
{...}: {
nixpkgs.config.packageOverrides = pkgs: {
sudo = pkgs.sudo.override {withInsults = true;};
};
security.sudo.extraConfig = "Defaults insults";
}