misc small changes

This commit is contained in:
Gerg-L 2023-08-13 09:18:15 -04:00
parent e6b2482344
commit 67ea731529
6 changed files with 9 additions and 3 deletions

View file

@ -60,6 +60,7 @@
statix statix
alejandra alejandra
nix-index nix-index
element-desktop
; ;
inherit (nvim-flake.packages.${pkgs.system}) neovim; inherit (nvim-flake.packages.${pkgs.system}) neovim;
lint = pkgs.writeShellScriptBin "lint" '' lint = pkgs.writeShellScriptBin "lint" ''

View file

@ -16,7 +16,6 @@
}; };
bootConfig = { bootConfig = {
disable = true; disable = true;
stage2patch.disable = true;
}; };
}; };
imports = [ imports = [

View file

@ -56,7 +56,7 @@ in {
++ [ ++ [
{ {
networking.hostName = name; networking.hostName = name;
nixpkgs = {inherit system;}; nixpkgs.hostPlatform = system;
} }
]; ];
} }

View file

@ -39,6 +39,12 @@ _: {
i18n.defaultLocale = "en_US.UTF-8"; i18n.defaultLocale = "en_US.UTF-8";
#time settings #time settings
time.timeZone = "America/New_York"; time.timeZone = "America/New_York";
# For`info` command.
documentation.info.enable = false;
# NixOS manual and such.
documentation.nixos.enable = false;
programs.command-not-found.enable = false;
}; };
_file = ./misc.nix; _file = ./misc.nix;
} }

View file

@ -8,7 +8,7 @@ inputs: {
# #
let let
alias = inputs // {nixpkgs = inputs.unstable;}; alias = inputs // {nixpkgs = inputs.unstable;};
flakes = lib.filterAttrs (_: v: v._type == "flake") alias; flakes = lib.filterAttrs (_: lib.isType "flake") alias;
in { in {
nix.nixPath = lib.mapAttrsToList (x: _: "${x}=flake:${x}") flakes; nix.nixPath = lib.mapAttrsToList (x: _: "${x}=flake:${x}") flakes;
nix.registry = lib.mapAttrs (_: flake: {inherit flake;}) flakes; nix.registry = lib.mapAttrs (_: flake: {inherit flake;}) flakes;