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