updated packages.nix & related

This commit is contained in:
serenity-F 2025-03-14 15:58:47 +10:00
parent d4532db5b7
commit 5ac7e5e08d
2 changed files with 31 additions and 15 deletions

View file

@ -16,8 +16,7 @@
}; };
services = { services = {
## Enabling flatpak in case i need it
#flatpak.enable = true;
## ratbagd for gaming mouse config ## ratbagd for gaming mouse config
ratbagd.enable = true; ratbagd.enable = true;
}; };

View file

@ -1,4 +1,4 @@
{ pkgs, ... }: { pkgs, flakeDir, ... }:
{ {
@ -7,22 +7,25 @@
## Activation Scripts ## Activation Scripts
## - these run after using `sudo nixos-rebuild switch` ## - these run after using `sudo nixos-rebuild switch`
system.activationScripts.diff = { system.activationScripts.diff = {
supportsDryActivation = true; # prints diff of the store supportsDryActivation = true;
## Prints diff of the nix store and a cute message if rebuild successful
text = '' text = ''
${pkgs.nvd}/bin/nvd --nix-bin-dir=${pkgs.nix}/bin diff \ ${pkgs.nvd}/bin/nvd --nix-bin-dir=${pkgs.nix}/bin diff \
/run/current-system "$systemConfig" /run/current-system "$systemConfig"
echo "Rebuild completed successfully <3" echo "Rebuild completed successfully <3"
''; # also prints a cute message '';
}; };
## Nixpkgs Settings ## Nixpkgs Settings
nixpkgs = { nixpkgs = {
config = { config = {
allowUnfree = true; allowUnfree = true;
## Place insecure packages here ## Place insecure packages here
permittedInsecurePackages = [ "olm-3.2.16" ]; permittedInsecurePackages = [ "olm-3.2.16" ];
}; };
## Overlays - BROKEN FOR NOW ## Overlays - BROKEN FOR NOW
overlays = [ overlays = [
## to use overlays exported from other flakes: ## to use overlays exported from other flakes:
@ -39,20 +42,34 @@
## System-level Programs ## System-level Programs
programs = { programs = {
git = { enable = true; }; # Mandatory version control
fish = { enable = true; }; # A catgirls favourite shell
neovim = { enable = true; }; # Neovim declared here too, just in case neovim = { enable = true; }; # Neovim declared here too, just in case
fish = { enable = true; }; # A catgirl's favourite shell - NEEDS OWN NIX MODULE
git = { enable = true; }; # version control ## NixOS CLI helper
nh = { # NixOS CLI helper nh = {
enable = true; enable = true;
flake = "/home/serenity/flakes/nixdots"; flake = "${flakeDir}";
}; };
gnupg.agent = { # For handling encryption keys
## For handling encryption keys
gnupg.agent = {
enable = true; enable = true;
enableSSHSupport = true; enableSSHSupport = true;
#pinentryPackage = [ ]; #pinentryPackage = [ ];
}; };
## For running unpackaged binaries
nix-ld = {
enable = true;
#libraries = with pkgs; [ ];
};
}; };
## Flatpak, just in case
services = { flatpak.enable = true; };
environment = { environment = {
## Environment Variables ## Environment Variables
@ -61,9 +78,10 @@
VISUAL = "nvim"; VISUAL = "nvim";
SYSTEMD_EDITOR = "nvim"; SYSTEMD_EDITOR = "nvim";
}; };
# Install a stub ELF loader to print an informative
# error message in the event that a user attempts ## Install a stub ELF loader to print an informative
# to run an ELF binary not compiled for NixOS. ## error message in the event that a user attempts
## to run an ELF binary not compiled for NixOS.
stub-ld.enable = true; stub-ld.enable = true;
## System-level Packages ## System-level Packages
@ -81,7 +99,6 @@
exfatprogs # ExFAT filesystem exfatprogs # ExFAT filesystem
btrfs-progs # BTRFS filesystem btrfs-progs # BTRFS filesystem
ntfs3g # NTFS filesystem ntfs3g # NTFS filesystem
#scrounge-ntfs # NTFS data recovery
## CLI tools & utilities ## CLI tools & utilities
fd # Find, but faster fd # Find, but faster