cleanup base system
This commit is contained in:
parent
69851a8833
commit
aee3ec88c4
@ -3,10 +3,6 @@
|
|||||||
system.stateVersion = "23.11";
|
system.stateVersion = "23.11";
|
||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
gc = {
|
|
||||||
automatic = true;
|
|
||||||
options = "--delete-older-than 7d";
|
|
||||||
};
|
|
||||||
extraOptions = ''
|
extraOptions = ''
|
||||||
experimental-features = nix-command flakes
|
experimental-features = nix-command flakes
|
||||||
'';
|
'';
|
||||||
@ -20,12 +16,6 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
kernel = {
|
|
||||||
sysctl = {
|
|
||||||
"fs.inotify.max_user_watches" = 100000;
|
|
||||||
"fs.inotify.max_queued_events" = 100000;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
loader = {
|
loader = {
|
||||||
systemd-boot.enable = true;
|
systemd-boot.enable = true;
|
||||||
efi.canTouchEfiVariables = true;
|
efi.canTouchEfiVariables = true;
|
||||||
@ -54,45 +44,26 @@
|
|||||||
|
|
||||||
environment = {
|
environment = {
|
||||||
systemPackages = with pkgs; [
|
systemPackages = with pkgs; [
|
||||||
acpi
|
|
||||||
binutils
|
|
||||||
bun
|
|
||||||
cmatrix
|
cmatrix
|
||||||
coreutils-full
|
coreutils-full
|
||||||
cryptsetup
|
cryptsetup
|
||||||
dig
|
dig
|
||||||
fd
|
fd
|
||||||
file
|
file
|
||||||
gcc13
|
|
||||||
git
|
git
|
||||||
glibc
|
glibc
|
||||||
gnumake
|
gnumake
|
||||||
home-manager
|
|
||||||
jq
|
jq
|
||||||
libgccjit
|
|
||||||
mlocate
|
mlocate
|
||||||
moreutils
|
moreutils
|
||||||
nix-prefetch-github
|
|
||||||
nodejs_20
|
|
||||||
ntfs3g
|
ntfs3g
|
||||||
openssl
|
openssl
|
||||||
python311
|
|
||||||
srm
|
srm
|
||||||
unzip
|
unzip
|
||||||
vim
|
vim
|
||||||
wf-recorder
|
|
||||||
wget
|
|
||||||
zip
|
zip
|
||||||
];
|
];
|
||||||
variables = {
|
|
||||||
EDITOR = "nvim";
|
|
||||||
};
|
|
||||||
shells = with pkgs; [ zsh nushell ];
|
shells = with pkgs; [ zsh nushell ];
|
||||||
etc = {
|
|
||||||
"xdg/user-dirs.conf".text = ''
|
|
||||||
enabled=True
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
@ -108,14 +79,12 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
blockFakenews = true;
|
blockFakenews = true;
|
||||||
blockGambling = true;
|
blockGambling = true;
|
||||||
# blockSocial = true;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
zsh.enable = true;
|
zsh.enable = true;
|
||||||
nix-ld.enable = true;
|
nix-ld.enable = true;
|
||||||
wshowkeys.enable = true;
|
|
||||||
adb.enable = true;
|
adb.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -147,39 +116,10 @@
|
|||||||
xserver.videoDrivers = [ "nouveau" ];
|
xserver.videoDrivers = [ "nouveau" ];
|
||||||
dbus.enable = true;
|
dbus.enable = true;
|
||||||
flatpak.enable = true;
|
flatpak.enable = true;
|
||||||
ratbagd.enable = true;
|
|
||||||
postgresql.enable = true;
|
|
||||||
upower.enable = true;
|
|
||||||
i2pd = {
|
|
||||||
enable = true;
|
|
||||||
proto.httpProxy.enable = true;
|
|
||||||
};
|
|
||||||
pipewire = {
|
pipewire = {
|
||||||
enable = true;
|
enable = true;
|
||||||
alsa.enable = true;
|
alsa.enable = true;
|
||||||
pulse.enable = true;
|
pulse.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd = {
|
|
||||||
user.services = {
|
|
||||||
polkit-gnome-authentication-agent-1 = {
|
|
||||||
description = "polkit-gnome-authentication-agent-1";
|
|
||||||
wantedBy = [ "graphical-session.target" ];
|
|
||||||
wants = [ "graphical-session.target" ];
|
|
||||||
after = [ "graphical-session.target" ];
|
|
||||||
serviceConfig = {
|
|
||||||
Type = "simple";
|
|
||||||
ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
|
|
||||||
Restart = "on-failure";
|
|
||||||
RestartSec = 1;
|
|
||||||
TimeoutStopSec = 10;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
virtualisation = {
|
|
||||||
waydroid.enable = true;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user