mirror of
https://github.com/Ascyii/nixos.git
synced 2026-01-01 14:54:26 -05:00
auto up 01:53:18 up 0:06, 2 users, load average: 0.90, 0.66, 0.33 auto up 01:59:32 up 0:01, 2 users, load average: 0.71, 0.35, 0.13 auto up 14:23:31 up 3:05, 2 users, load average: 0.68, 0.71, 0.72 auto up 11:42:06 up 1:56, 2 users, load average: 0.03, 0.13, 0.17 auto up 22:33:03 up 0:49, 2 users, load average: 0.27, 0.65, 0.85 auto up 21:17:45 up 0:54, 2 users, load average: 2.57, 2.26, 1.66 auto up 22:35:16 up 2:12, 2 users, load average: 1.32, 1.67, 1.83
78 lines
1.8 KiB
Nix
78 lines
1.8 KiB
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
# Basic services
|
|
services.locate.enable = true;
|
|
services.openssh.enable = true;
|
|
|
|
hardware.enableAllFirmware = true;
|
|
|
|
services = {
|
|
udisks2.enable = true;
|
|
gvfs.enable = true;
|
|
};
|
|
|
|
security.polkit.enable = true;
|
|
security.pam.services.login.enableGnomeKeyring = true;
|
|
services.gnome.gnome-keyring.enable = true;
|
|
#security.pam.enableEcryptfs = true;
|
|
|
|
security.polkit.extraConfig = ''
|
|
polkit.addRule(function(action, subject) {
|
|
if (action.id == "org.freedesktop.udisks2.filesystem-mount-system" &&
|
|
subject.isInGroup("wheel")) {
|
|
return polkit.Result.YES;
|
|
}
|
|
});
|
|
'';
|
|
|
|
# Nix fun
|
|
nixpkgs.config.allowUnfree = true;
|
|
nix.settings.experimental-features = [ "flakes" "nix-command" ];
|
|
|
|
programs.gnupg.agent = {
|
|
enable = true;
|
|
pinentryPackage = with pkgs; pinentry-all;
|
|
enableSSHSupport = true;
|
|
};
|
|
|
|
time.timeZone = "Europe/Berlin";
|
|
programs.nix-ld.enable = true; # Linking support
|
|
|
|
# For local domains in link locals and other goods
|
|
services.avahi.enable = true;
|
|
services.avahi.nssmdns4 = true;
|
|
|
|
environment = {
|
|
systemPackages = with pkgs; [ yazi tmux git starship zoxide rsync xorg.libX11.dev rclone neovim alacritty gtk4.dev ];
|
|
};
|
|
|
|
nix.optimise.automatic = true;
|
|
|
|
nix.gc = {
|
|
automatic = true;
|
|
dates = "weekly";
|
|
options = "--delete-older-than 14d"; # Two weeks cache then forget
|
|
};
|
|
|
|
networking = { networkmanager = { enable = true; }; };
|
|
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
console = {
|
|
font = "Lat2-Terminus16";
|
|
keyMap = "us";
|
|
};
|
|
|
|
programs.zsh = {
|
|
enable = true;
|
|
autosuggestions.enable = true;
|
|
ohMyZsh = {
|
|
enable = true;
|
|
plugins =
|
|
[ "history-substring-search" "git" "zoxide" "vi-mode" "systemadmin" ];
|
|
};
|
|
};
|
|
|
|
programs.ydotool.enable = true;
|
|
}
|