summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hosts/laptop/configuration.nix5
-rw-r--r--modules/common.nix8
-rw-r--r--modules/home/christian.nix9
3 files changed, 22 insertions, 0 deletions
diff --git a/hosts/laptop/configuration.nix b/hosts/laptop/configuration.nix
index 2ac3ce0..a2030fe 100644
--- a/hosts/laptop/configuration.nix
+++ b/hosts/laptop/configuration.nix
@@ -40,6 +40,11 @@
hibernate = "systemctl hibernate";
};
+ programs.fish.shellAliases = {
+ battery = "echo (math (cat /sys/class/power_supply/BAT0/charge_now) * 100 / (cat /sys/class/power_supply/BAT0/charge_full))%";
+ hibernate = "systemctl hibernate";
+ };
+
services.keyd = {
enable = true;
keyboards.default = {
diff --git a/modules/common.nix b/modules/common.nix
index 3e14abb..56cc186 100644
--- a/modules/common.nix
+++ b/modules/common.nix
@@ -40,8 +40,11 @@
services.xserver.xkb.layout = "us";
# User
+ programs.fish.enable = true;
+
users.users.christian = {
isNormalUser = true;
+ shell = pkgs.fish;
extraGroups = [
"wheel"
"video"
@@ -73,6 +76,11 @@
dry-rebuild = "nix build ~/.config/nixos#nixosConfigurations.$(hostname).config.system.build.toplevel --no-link";
};
+ programs.fish.shellAliases = {
+ rebuild = "sudo nixos-rebuild switch --flake ~/.config/nixos";
+ dry-rebuild = "nix build ~/.config/nixos#nixosConfigurations.(hostname).config.system.build.toplevel --no-link";
+ };
+
programs.neovim = {
enable = true;
defaultEditor = true;
diff --git a/modules/home/christian.nix b/modules/home/christian.nix
index bae5e90..a0907ab 100644
--- a/modules/home/christian.nix
+++ b/modules/home/christian.nix
@@ -41,6 +41,15 @@
programs.bash.enable = true;
+ programs.fish = {
+ enable = true;
+ };
+
+ programs.zoxide = {
+ enable = true;
+ enableFishIntegration = true;
+ };
+
programs.ssh = {
enable = true;
enableDefaultConfig = false;