home: start migrating i3 configs - not finished
This commit is contained in:
parent
fd6cd027fc
commit
fe6a8acb12
@ -15,6 +15,8 @@
|
||||
topgrade.enable = true;
|
||||
neovim.enable = true;
|
||||
alacritty.enable = true;
|
||||
# i3.enable = true;
|
||||
# rofi.enable = true;
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
@ -78,6 +80,8 @@
|
||||
VISUAL = "nvim";
|
||||
};
|
||||
|
||||
home.file = { ".profile".source = ../i3/.profile; };
|
||||
|
||||
# Let Home Manager install and manage itself.
|
||||
programs.home-manager.enable = true;
|
||||
}
|
||||
|
24
home-manager/modules/i3.nix
Normal file
24
home-manager/modules/i3.nix
Normal file
@ -0,0 +1,24 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let cfg = config.modules.i3;
|
||||
in {
|
||||
options.modules.i3 = { enable = mkOption { default = false; }; };
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
xsession.windowManager.i3 = { enable = true; };
|
||||
programs = { i3status-rust = { enable = true; }; };
|
||||
|
||||
home.file = {
|
||||
".config/i3" = {
|
||||
source = ../../i3/i3;
|
||||
recursive = true;
|
||||
};
|
||||
".config/i3status-rust/config.toml".source =
|
||||
../../i3/i3status-rust/config.toml;
|
||||
};
|
||||
|
||||
home.file = { ".profile".source = ../../i3/.profile; };
|
||||
};
|
||||
}
|
16
home-manager/modules/rofi.nix
Normal file
16
home-manager/modules/rofi.nix
Normal file
@ -0,0 +1,16 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let cfg = config.modules.rofi;
|
||||
in {
|
||||
options.modules.rofi = { enable = mkOption { default = false; }; };
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs.rofi = { enable = true; };
|
||||
|
||||
home.file = {
|
||||
".config/rofi/config.rasi".source = ../../i3/rofi/config.rasi;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user