forked from fabian/nix_config
modularize gui
This commit is contained in:
parent
61eb9ed8c5
commit
bcd049b8c5
13 changed files with 202 additions and 89 deletions
16
home/modules/gui/startx.nix
Normal file
16
home/modules/gui/startx.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib; {
|
||||
config = mkIf config.local.gui.enable {
|
||||
home.file.".xinitrc".source = let
|
||||
content = ''
|
||||
exec ~/.xsession
|
||||
'';
|
||||
in
|
||||
pkgs.writeShellScript "xinitrc" content;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue