global/nix: clean up
This commit is contained in:
parent
70896aa969
commit
0af29f32bc
1 changed files with 16 additions and 16 deletions
|
@ -1,5 +1,7 @@
|
||||||
{ config, channel, inputs, pkgs, lib, self, ... }:
|
{ config, inputs, pkgs, lib, ... }:
|
||||||
with lib;
|
let
|
||||||
|
inherit (lib) mkIf mkDefault filterAttrs mapAttrs';
|
||||||
|
in
|
||||||
{
|
{
|
||||||
nix = {
|
nix = {
|
||||||
package = pkgs.nixVersions.latest;
|
package = pkgs.nixVersions.latest;
|
||||||
|
@ -78,6 +80,7 @@ with lib;
|
||||||
nix-melt
|
nix-melt
|
||||||
nix-output-monitor
|
nix-output-monitor
|
||||||
nix-tree
|
nix-tree
|
||||||
|
nixfmt-rfc-style
|
||||||
nixpkgs-fmt
|
nixpkgs-fmt
|
||||||
nvd
|
nvd
|
||||||
|
|
||||||
|
@ -92,20 +95,17 @@ with lib;
|
||||||
];
|
];
|
||||||
|
|
||||||
environment = {
|
environment = {
|
||||||
shellAliases =
|
shellAliases = {
|
||||||
let ifSudo = mkIf config.security.sudo.enable;
|
# nix
|
||||||
in
|
n = "nix";
|
||||||
{
|
ns = "n search --no-update-lock-file";
|
||||||
# nix
|
nf = "n flake";
|
||||||
n = "nix";
|
nepl = "n repl '<nixpkgs>'";
|
||||||
ns = "n search --no-update-lock-file";
|
srch = "ns nixpkgs";
|
||||||
nf = "n flake";
|
mn = ''
|
||||||
nepl = "n repl '<nixpkgs>'";
|
manix "" | grep '^# ' | sed 's/^# \(.*\) (.*/\1/;s/ (.*//;s/^# //' | sk --preview="manix '{}'" | xargs manix
|
||||||
srch = "ns nixpkgs";
|
'';
|
||||||
mn = ''
|
};
|
||||||
manix "" | grep '^# ' | sed 's/^# \(.*\) (.*/\1/;s/ (.*//;s/^# //' | sk --preview="manix '{}'" | xargs manix
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
users.users.remotebuild = {
|
users.users.remotebuild = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue