updated core/packages.nix

This commit is contained in:
serenity-F 2024-12-27 15:31:11 +10:00
parent d498da7aa2
commit b40001db80

View file

@ -4,23 +4,25 @@
imports = [ ]; imports = [ ];
## Activation Scripts
## - these run after using `sudo nixos-rebuild switch`
system.activationScripts.diff = { system.activationScripts.diff = {
supportsDryActivation = true; supportsDryActivation = true; # prints diff of the store
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"
''; # also prints a cute message
}; };
## 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
## [START - Stolen code, no clue how it works :3 ]
overlays = [ overlays = [
## to use overlays exported from other flakes: ## to use overlays exported from other flakes:
#neovim-nightly-overlay.overlays.default #neovim-nightly-overlay.overlays.default
@ -32,65 +34,38 @@
#}); #});
#}) #})
]; ];
}; };
## This will add each flake input as a registry ## System-level Programs
## To make nix3 commands consistent with your flake
#nix.registry = (lib.mapAttrs (_: flake: { inherit flake; }))
# ((lib.filterAttrs (_: lib.isType "flake")) inputs);
## This will additionally add your inputs to the system's legacy channels
## Making legacy nix commands consistent as well, awesome!
#nix.nixPath = [ "/etc/nix/path" ];
#environment.etc = lib.mapAttrs' (name: value: {
# name = "nix/path/${name}";
# value.source = value.flake;
#}) config.nix.registry;
## [END - Stolen code, mostly understand from here again]
programs = { programs = {
neovim = { enable = true; }; # Neovim declared here too, just in case
## Neovim declared here too, just in case fish = { enable = true; }; # A catgirl's favourite shell - NEEDS OWN NIX MODULE
neovim = { enable = true; }; git = { enable = true; }; # version control
nh = { # NixOS CLI helper
## A catgirl's favourite shell - NEEDS OWN NIX MODULE
fish = { enable = true; };
## Added here in case the user level declaration
## is wonky with nvim editor?
git = { enable = true; };
## NixOS CLI helper
nh = {
enable = true; enable = true;
flake = "/home/serenity/flakes/nixdots"; flake = "/home/serenity/flakes/nixdots";
}; };
gnupg.agent = { # For handling encryption keys
## For handling encryption keys
gnupg.agent = {
enable = true; enable = true;
enableSSHSupport = true; enableSSHSupport = true;
#pinentryPackage = [ ]; #pinentryPackage = [ ];
}; };
}; };
environment = { environment = {
## Install a stub ELF loader to print an informative ## Environment Variables
## error message in the event that a user attempts variables = { # sets neovim to default editor in other apps
## to run an ELF binary not compiled for NixOS. EDITOR = "nvim";
VISUAL = "nvim";
SYSTEMD_EDITOR = "nvim";
};
# Install a stub ELF loader to print an informative
# 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;
variables = { ## System-level Packages
## Wei have switched to neovim
## full-time, sorry Micro. <3
EDITOR = "neovim";
VISUAL = "neovim";
SYSTEMD_EDITOR = "neovim";
};
## All COMMON system-level packages declared here
systemPackages = with pkgs; [ systemPackages = with pkgs; [
## Nix specific tools ## Nix specific tools
@ -135,10 +110,6 @@
android-tools # Commands for interfacing with android devices android-tools # Commands for interfacing with android devices
smartmontools # Tools for monitoring HDD health smartmontools # Tools for monitoring HDD health
magic-wormhole # Direct file sharing magic-wormhole # Direct file sharing
gay # dw abt it
blahaj # dw abt this either
]; ];
}; };