forked from Shinonome/dots-hyprland
organized
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
{
|
||||
imports = [
|
||||
./desktop/desktop.nix
|
||||
./terminal/terminal.nix
|
||||
];
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
{
|
||||
inputs,
|
||||
self,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./desktop.nix
|
||||
];
|
||||
}
|
||||
@@ -32,9 +32,6 @@ in {
|
||||
};
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
imports = lib.optionals cfg.simpleStarship [
|
||||
../terminal/simple-starship.nix
|
||||
];
|
||||
# programs.hyprland = {
|
||||
# enable = true;
|
||||
# package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
inputs,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit
|
||||
(lib)
|
||||
mkIf
|
||||
mkOption
|
||||
types
|
||||
;
|
||||
cfg = config.programs.illogical-impulse;
|
||||
in {
|
||||
options = {
|
||||
programs.illogical-impulse = {
|
||||
settings = {
|
||||
simpleStarship = {
|
||||
enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = ''
|
||||
Uses Pure starship.
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
imports = lib.mkIf cfg.settings.simpleStarship [
|
||||
./simple-starship.nix
|
||||
];
|
||||
config = mkIf cfg.enable {
|
||||
home.file = {
|
||||
".config/starship.toml" = mkIf (!cfg.simpleStarship) {
|
||||
source = builtins.path {path = ../../.config/starship.toml;};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user