kardorf: fix i3 config file path option
This commit is contained in:
parent
bed82ccb1e
commit
24b079937c
@ -33,10 +33,7 @@ config, ... }: {
|
|||||||
neovim.enable = true;
|
neovim.enable = true;
|
||||||
alacritty.enable = true;
|
alacritty.enable = true;
|
||||||
emacs.enable = true;
|
emacs.enable = true;
|
||||||
i3 = {
|
i3 = { enable = true; };
|
||||||
enable = true;
|
|
||||||
config-file = ../../../modules/home/i3/i3/config-kardorf;
|
|
||||||
};
|
|
||||||
rofi.enable = true;
|
rofi.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -16,16 +16,13 @@ virtual
|
|||||||
systems, # An attribute map of your defined hosts.
|
systems, # An attribute map of your defined hosts.
|
||||||
|
|
||||||
# All other arguments come from the module system.
|
# All other arguments come from the module system.
|
||||||
config, ... }:
|
config, host, ... }:
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
let cfg = config.modules.i3;
|
let cfg = config.modules.i3;
|
||||||
in {
|
in {
|
||||||
options.modules.i3 = {
|
options.modules.i3 = { enable = mkOption { default = false; }; };
|
||||||
enable = mkOption { default = false; };
|
|
||||||
config-file = mkOption { default = ./i3/config; };
|
|
||||||
};
|
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
programs = { i3status-rust = { enable = true; }; };
|
programs = { i3status-rust = { enable = true; }; };
|
||||||
@ -33,7 +30,10 @@ in {
|
|||||||
xsession.windowManager.i3 = { enable = true; };
|
xsession.windowManager.i3 = { enable = true; };
|
||||||
|
|
||||||
# Overwrite default home-manager config file
|
# Overwrite default home-manager config file
|
||||||
xdg.configFile."i3/config".source = lib.mkForce cfg.config-file;
|
xdg.configFile."i3/config".source = lib.mkForce (if host == "kardorf" then
|
||||||
|
./i3/config-kardorf
|
||||||
|
else
|
||||||
|
lib.mkForce ./i3/config);
|
||||||
|
|
||||||
home.file = {
|
home.file = {
|
||||||
".config/i3/scripts" = {
|
".config/i3/scripts" = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user