Add extra shell aliases to simplify updating
This commit is contained in:
parent
dfb28153c8
commit
1c96dbb703
|
@ -1,4 +1,6 @@
|
|||
{pkgs, ...}: {
|
||||
{pkgs, ...}: let
|
||||
flakeURL = "git+https://git.xenia.me.uk/xenia/nixos.git?ref=main";
|
||||
in {
|
||||
nix = {
|
||||
settings.experimental-features = ["nix-command" "flakes"];
|
||||
gc = {
|
||||
|
@ -13,7 +15,22 @@
|
|||
};
|
||||
system.autoUpgrade = {
|
||||
enable = true;
|
||||
flake = "git+https://git.xenia.me.uk/xenia/nixos.git?ref=main";
|
||||
flake = flakeURL;
|
||||
};
|
||||
environment = {
|
||||
localBinInPath = true;
|
||||
shellAliases = {
|
||||
ll = "ls -laF";
|
||||
lg = "lazygit";
|
||||
gg = "nvim +Neogit";
|
||||
nv = "neovide --multigrid --maximized";
|
||||
nixos-upgrade = "sudo nixos-rebuild switch --flake ${flakeURL}";
|
||||
home-manager-switch = "${pkgs.home-manager}/bin/home-manager switch --flake ${flakeURL}";
|
||||
};
|
||||
systemPackages = with pkgs; [
|
||||
gnumake
|
||||
distrobox
|
||||
];
|
||||
};
|
||||
networking.networkmanager.enable = true;
|
||||
services.power-profiles-daemon.enable = true;
|
||||
|
@ -52,19 +69,6 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
environment.systemPackages = with pkgs; [
|
||||
gnumake
|
||||
distrobox
|
||||
];
|
||||
environment = {
|
||||
localBinInPath = true;
|
||||
shellAliases = {
|
||||
ll = "ls -laF";
|
||||
lg = "lazygit";
|
||||
gg = "nvim +Neogit";
|
||||
nv = "neovide --multigrid --maximized";
|
||||
};
|
||||
};
|
||||
services.xserver = {
|
||||
layout = "gb";
|
||||
xkbVariant = "";
|
||||
|
|
Loading…
Reference in a new issue