Add extra shell aliases to simplify updating

This commit is contained in:
Evie Litherland-Smith 2023-07-17 06:37:40 +01:00
parent dfb28153c8
commit 1c96dbb703

View file

@ -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 = "";