feat: fish module
This commit is contained in:
parent
6afaf00bba
commit
9bb12ee272
3 changed files with 28 additions and 8 deletions
5
computers/shared/default.nix
Normal file
5
computers/shared/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{...}: {
|
||||||
|
imports = [
|
||||||
|
./fish.nix
|
||||||
|
];
|
||||||
|
}
|
21
computers/shared/fish.nix
Normal file
21
computers/shared/fish.nix
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -11,8 +11,10 @@
|
||||||
extraModules
|
extraModules
|
||||||
++ [
|
++ [
|
||||||
../computers/${host}
|
../computers/${host}
|
||||||
|
inputs.self.nixosModules.default
|
||||||
({config, ...}: {
|
({config, ...}: {
|
||||||
config = {
|
config = {
|
||||||
|
alqueva.fish.enable = true;
|
||||||
nix = {
|
nix = {
|
||||||
settings.extra-experimental-features = [
|
settings.extra-experimental-features = [
|
||||||
"nix-command"
|
"nix-command"
|
||||||
|
@ -23,14 +25,6 @@
|
||||||
dates = "weekly";
|
dates = "weekly";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
programs.fish = {
|
|
||||||
vendor = {
|
|
||||||
functions.enable = true;
|
|
||||||
config.enable = true;
|
|
||||||
completions.enable = true;
|
|
||||||
};
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
users = {
|
users = {
|
||||||
users.${user} = {
|
users.${user} = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue