move foot to module, and disable it.
This commit is contained in:
parent
49f3d01d1e
commit
71078e81a1
5 changed files with 27 additions and 9 deletions
|
|
@ -10,7 +10,6 @@
|
||||||
imports = [
|
imports = [
|
||||||
./starship
|
./starship
|
||||||
./firefox.nix
|
./firefox.nix
|
||||||
./foot
|
|
||||||
./niri
|
./niri
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
@ -25,6 +24,7 @@
|
||||||
fish.enable = true;
|
fish.enable = true;
|
||||||
bash.enable = true;
|
bash.enable = true;
|
||||||
ghostty.enable = true;
|
ghostty.enable = true;
|
||||||
|
foot.enable = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
xdg.userDirs = {
|
xdg.userDirs = {
|
||||||
|
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
||||||
{ config, ... }:
|
|
||||||
{
|
|
||||||
programs.foot = {
|
|
||||||
enable = true;
|
|
||||||
server.enable = true;
|
|
||||||
};
|
|
||||||
xdg.configFile."foot/foot.ini".source = (config.lib.file.mkOutOfStoreSymlink ./foot.ini);
|
|
||||||
}
|
|
||||||
|
|
@ -11,6 +11,7 @@
|
||||||
./git.nix
|
./git.nix
|
||||||
./shell
|
./shell
|
||||||
./ghostty.nix
|
./ghostty.nix
|
||||||
|
./foot
|
||||||
];
|
];
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
|
|
|
||||||
25
home/modules/foot/default.nix
Normal file
25
home/modules/foot/default.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
{ config, lib, ... }:
|
||||||
|
let
|
||||||
|
cfg = config.youthlic.programs.foot;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options = {
|
||||||
|
youthlic.programs.foot = {
|
||||||
|
enable = lib.mkOption {
|
||||||
|
type = lib.types.bool;
|
||||||
|
default = true;
|
||||||
|
example = false;
|
||||||
|
description = ''
|
||||||
|
whether use foot terminal
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
programs.foot = {
|
||||||
|
enable = true;
|
||||||
|
server.enable = true;
|
||||||
|
settings = builtins.fromINI (builtins.readFile ./foot.ini);
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue