tidying in core/
This commit is contained in:
parent
6b02c9ebfd
commit
bb4c184ffb
8 changed files with 92 additions and 168 deletions
|
|
@ -2,29 +2,26 @@
|
|||
|
||||
{
|
||||
|
||||
imports = [
|
||||
];
|
||||
imports = [ ];
|
||||
|
||||
nixpkgs = {
|
||||
|
||||
config = {
|
||||
allowUnfree = true;
|
||||
## Place insecure packages here
|
||||
permittedInsecurePackages = [
|
||||
"olm-3.2.16"
|
||||
];
|
||||
permittedInsecurePackages = [ "olm-3.2.16" ];
|
||||
};
|
||||
|
||||
## [START - Stolen code, no clue how it works :3 ]
|
||||
## [START - Stolen code, no clue how it works :3 ]
|
||||
overlays = [
|
||||
## to use overlays exported from other flakes:
|
||||
#neovim-nightly-overlay.overlays.default
|
||||
|
||||
## or define it inline, for example:
|
||||
#(final: prev: {
|
||||
#hi = final.hello.overrideAttrs (oldAttrs: {
|
||||
#patches = [ ./change-hello-to-hi.patch ];
|
||||
#});
|
||||
#hi = final.hello.overrideAttrs (oldAttrs: {
|
||||
#patches = [ ./change-hello-to-hi.patch ];
|
||||
#});
|
||||
#})
|
||||
];
|
||||
|
||||
|
|
@ -32,36 +29,28 @@
|
|||
|
||||
## This will add each flake input as a registry
|
||||
## To make nix3 commands consistent with your flake
|
||||
nix.registry = (lib.mapAttrs (_: flake: {inherit flake;})) ((lib.filterAttrs (_: lib.isType "flake")) inputs);
|
||||
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;
|
||||
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 = {
|
||||
|
||||
## Neovim declared here too, just in case
|
||||
neovim = {
|
||||
enable = true;
|
||||
};
|
||||
neovim = { enable = true; };
|
||||
|
||||
## A catgirl's favourite shell - NEEDS OWN NIX MODULE
|
||||
fish = {
|
||||
enable = true;
|
||||
};
|
||||
fish = { enable = true; };
|
||||
|
||||
## Added here in case the user level declaration
|
||||
## is wonky with nvim editor?
|
||||
git = {
|
||||
enable = true;
|
||||
};
|
||||
git = { enable = true; };
|
||||
|
||||
## NixOS CLI helper
|
||||
nh = {
|
||||
|
|
@ -78,80 +67,67 @@
|
|||
|
||||
};
|
||||
|
||||
## Wei have switched to neovim
|
||||
## full-time, sorry Micro. <3
|
||||
environment.variables = {
|
||||
EDITOR = "neovim";
|
||||
VISUAL = "neovim";
|
||||
SYSTEMD_EDITOR = "neovim";
|
||||
environment = {
|
||||
|
||||
## 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;
|
||||
|
||||
variables = {
|
||||
## 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; [
|
||||
|
||||
## Nix specific tools
|
||||
nix-tree # Dependency tree viewer for nix store
|
||||
nix-init # Generate nix packages from URLs
|
||||
nix-index # Database for nixpkgs
|
||||
nix-output-monitor # Shows extra information on nix commands
|
||||
|
||||
## Filsesystem utilities
|
||||
ddrutility # Set of tools for HDD rescure
|
||||
exfatprogs # ExFAT filesystem
|
||||
btrfs-progs # BTRFS filesystem
|
||||
ntfs3g # NTFS filesystem
|
||||
scrounge-ntfs # NTFS data recovery
|
||||
|
||||
## CLI tools & utilities
|
||||
fd # Find, but faster
|
||||
bc # Calculator
|
||||
zip # What it says on the tin
|
||||
btop # System metrics and process viewer
|
||||
tldr # Simpler manual pages
|
||||
wget # Retrieves files over HTTP, HTTPS, and FTP
|
||||
curl # Pulls data from a URL
|
||||
bash # Terminal shell
|
||||
file # Shows type of files
|
||||
tree # Tree view of directory structure
|
||||
unzip # What it says on the tin
|
||||
gnupg # Create encryption keys
|
||||
s-tui # Metrics and stress testing
|
||||
udiskie # Disk automount
|
||||
busybox # Utilities
|
||||
ripgrep # Searches files for a given input
|
||||
killall # Kills all
|
||||
usbutils # USB utils
|
||||
pciutils # PCI utils
|
||||
moreutils # Woah, even more utils
|
||||
libsecret # Library for storing and retrieving secrets
|
||||
git-crypt # Transparent file encryption in git
|
||||
undervolt # Utility to change CPU settings
|
||||
android-tools # Commands for interfacing with android devices
|
||||
smartmontools # Tools for monitoring HDD health
|
||||
magic-wormhole # Direct file sharing
|
||||
|
||||
];
|
||||
|
||||
};
|
||||
|
||||
## 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.
|
||||
environment.stub-ld.enable = true;
|
||||
|
||||
## All COMMON system-level packages declared here
|
||||
environment.systemPackages = with pkgs; [
|
||||
|
||||
########
|
||||
## Needed for that graphical config manager, suspect that the
|
||||
## whole inputs.nix- yaddah yaddah is unnecessary.
|
||||
## and look, -we- don't need a graphical config editor, but
|
||||
## the end goal here is to make a system environment that could
|
||||
## theoretically pass off as a complete linux distribution.
|
||||
## So there needs to be -some- way for users who are unwilling
|
||||
## to use a terminal and are more comfortable with a GUI.
|
||||
#inputs.nixos-conf-editor.packages.${system}.nixos-conf-editor
|
||||
#nixos-conf-editor
|
||||
## Disabling this for now. Eats disk space, and it's useless until
|
||||
## wei make a single "control" module using 'let bindings' anyway.
|
||||
########
|
||||
|
||||
## Nix specific tools
|
||||
nix-tree # Dependency tree viewer for nix store
|
||||
nix-init # Generate nix packages from URLs
|
||||
#nix-index # Database for nixpkgs
|
||||
#nixpkgs-review # Review nixpkgs PRs
|
||||
nix-output-monitor # Shows extra information on nix commands
|
||||
|
||||
## Filsesystem utilities
|
||||
#xfsprogs # XFS filesystem
|
||||
ddrutility #Set of tools for HDD rescure
|
||||
exfatprogs # ExFAT filesystem
|
||||
btrfs-progs # BTRFS filesystem
|
||||
ntfs3g # NTFS filesystem
|
||||
#ntfs2btrfs # Converts NTFS to BTRFS
|
||||
scrounge-ntfs # NTFS data recovery
|
||||
|
||||
## CLI tools & utilities
|
||||
fd # Find, but faster
|
||||
bc # Calculator
|
||||
zip # What it says on the tin
|
||||
btop # System metrics and process viewer
|
||||
tldr # Simpler manual pages
|
||||
wget # Retrieves files over HTTP, HTTPS, and FTP
|
||||
curl # Pulls data from a URL
|
||||
bash # Terminal shell
|
||||
file # Shows type of files
|
||||
tree # Tree view of directory structure
|
||||
unzip # What it says on the tin
|
||||
gnupg # Create encryption keys
|
||||
s-tui # Metrics and stress testing
|
||||
udiskie # Disk automount
|
||||
busybox # Utilities
|
||||
ripgrep # Searches files for a given input
|
||||
killall # Kills all
|
||||
usbutils # USB utils
|
||||
pciutils # PCI utils
|
||||
moreutils # Woah, even more utils
|
||||
libsecret # Library for storing and retrieving secrets
|
||||
git-crypt # Transparent file encryption in git
|
||||
undervolt # Utility to change CPU settings
|
||||
android-tools # Commands for interfacing with android devices
|
||||
smartmontools # Tools for monitoring HDD health
|
||||
magic-wormhole # Direct file sharing
|
||||
|
||||
];
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue