feat: fish module

This commit is contained in:
Artur Manuel 2024-10-16 08:55:04 +01:00
commit 9bb12ee272
3 changed files with 28 additions and 8 deletions

View file

@ -0,0 +1,5 @@
{...}: {
imports = [
./fish.nix
];
}

21
computers/shared/fish.nix Normal file
View file

@ -0,0 +1,21 @@
{
config,
lib,
...
}: let
cfg = config.alqueva.fish;
in {
options.alqueva.fish = {
enable = lib.mkEnableOption "fish";
};
config = lib.mkIf cfg.enable {
programs.fish = {
vendor = {
functions.enable = true;
config.enable = true;
completions.enable = true;
};
enable = true;
};
};
}

View file

@ -11,8 +11,10 @@
extraModules
++ [
../computers/${host}
inputs.self.nixosModules.default
({config, ...}: {
config = {
alqueva.fish.enable = true;
nix = {
settings.extra-experimental-features = [
"nix-command"
@ -23,14 +25,6 @@
dates = "weekly";
};
};
programs.fish = {
vendor = {
functions.enable = true;
config.enable = true;
completions.enable = true;
};
enable = true;
};
users = {
users.${user} = {
isNormalUser = true;