nix-config

My personal nixos and home-manager configuration
Log | Files | Refs | README

xinit.nix (413B)


      1 { config, pkgs, lib, ... }:
      2 
      3 with lib;
      4 
      5 {
      6   options.xinit = {
      7     enable = mkEnableOption ".xinitrc file";
      8 
      9     config = mkOption {
     10       type = types.str;
     11       default = "";
     12       example = ''
     13         . ~/.xprofile
     14 
     15         exec bspwm
     16       '';
     17       description = "Contents of the ~/.xinitrc file";
     18     };
     19   };
     20 
     21   config = mkIf config.xinit.enable {
     22     home.file.".xinitrc".text = config.xinit.config;
     23   };
     24 }